Next, splitting the jobs. Here the point is less speed than making sure the one who writes is not also the one who decides it is good.
Roles
Also called role specialisation, specialised agents
Give each agent one job with its own prompt, tools and check: one writes specs, one writes code, one tidies, one reviews. Each is told what not to do, so that each check stays with someone who did not write the code.
An agent asked to do everything cuts its own corners, and marks its own work. Roles put the corner and the check in different hands. Every role is also another handoff, another prompt to maintain and another bill.
“You're the reviewer on this, so don't edit anything. Run the code and report what fails, with output. Someone else will fix it. If everything passes, say so and stop.”