agent has 4 distinct synonyms spread across 3 of its 6 senses. Each sense below keeps its own list, because a synonym belongs to a meaning and not to a word: swapping one sense's substitute into another sense's sentence is how a thesaurus makes writing worse. WordNet records no antonym for it — antonymy is a relation between word forms rather than concepts, so it is deliberately sparse.
Counts are distinct word forms across every sense. A synonym that appears under three senses is counted once here and shown three times below, under each sense it belongs to.
an active and efficient cause; capable of producing a certain effect
“their research uncovered new disease agents”
Synonyms, antonyms and the broader and narrower relations for agent come from Princeton University’s WordNet. Full sources and licences.
a representative who acts on behalf of other persons or organizations
a substance that exerts some force or effect
a businessman who buys or sells for another in exchange for a commission
any agent or representative of a federal agency or bureau
the semantic role of the animate entity that instigates or causes the happening denoted by the verb in the clause