Agent Roles and Specialisations
Give each agent a narrow role (planner, coder, critic, executor) and they perform better than a generalist.
Why Specialisation Helps
A focused agent with a tight prompt and a small tool set beats a generalist with everything. Reasons:
- Prompts can be longer/more specific per role
- Tool descriptions cleaner (fewer options to confuse model)
- Easier to debug and evaluate
- Each agent can use a different model size
Common Roles
- Planner — breaks tasks into steps
- Researcher — gathers information
- Coder — writes code
- Reviewer / Critic — finds flaws
- Editor — polishes output
- Executor — runs commands / tools