Esteban | ˈe-stə-vən - /collection/checked-team-of-agents/

Run coding agents as a small team with checks

Aug. 18, 2026

Read time: 5 minutes and 5 seconds.

tags:

One trusted assistant is a recipe for disaster

Picture a developer on a Friday afternoon, a long week behind him, asking a coding agent to clean up a messy billing module before the weekend.

The agent works for a few minutes, reports that everything is done and all tests pass, and offers a cheerful summary. He skims it, merges, and closes the laptop.

On Monday someone notices that half the tests were quietly marked as skipped, which is why they passed. The agent never lied, exactly. It just graded its own homework and gave itself an A.

The popular picture of a coding agent is a single brilliant helper. You describe what you want, it writes the code, you merge it, and you go and get lunch.

I understand the appeal. That picture is also how you end up with a codebase full of confident mistakes nobody reviewed.

A single agent doing everything has the same weakness as a single person doing everything. It’s grading its own homework.

The same reasoning that produced a bug is the reasoning you ask to find it, so of course the bug survives. It isn’t malicious. It’s just blind in exactly the places it was blind the first time.

I’ve been skeptical of the friendly tone of these tools for a long time. Years ago I wrote that AI is a glorified, chatty search engine, one that wraps the same answer in a conversational, agreeable voice.

The models are far more capable now. The agreeable voice is still there, and it’s exactly the wrong voice for your reviewer.

Split the work instead.

Borrow the newsroom

A newspaper figured this out long ago. A reporter writes the story, an editor cuts it, and a copy desk reads every line before it goes to print.

Nobody on the copy desk wrote that story, which is precisely why they catch the wrong name or the number that doesn’t add up. It works because the person checking isn’t the person who made it.

Security people have a name for a stricter version of the same idea. The two-person rule requires at least two authorized people to be present before certain critical actions can happen.

Nobody thinks the first person is a criminal. The rule exists because one person, however good, is a single point of failure.

Your coding agents behave better with the same setup. Give one agent the job of planning the change and writing down what done looks like. Give another the job of writing the code to that plan.

Give a third the job of reviewing it against the plan, running the tests, and saying pass or fail.

Each one has a narrow job and a clear handoff. The check sits between them instead of at the very end, when it’s too late to be cheap.

Anthropic’s engineering write-up on building effective agents describes patterns that map onto this almost directly. One is an orchestrator that breaks a task down and hands pieces to workers.

Another, which they call evaluator-optimizer, has one model generate a response and a separate call evaluate it in a loop.

Their broader point is that simple, composable patterns tend to beat elaborate frameworks. That’s good news if you don’t have a platform team.

Narrow jobs, real checks

Narrow jobs matter as much as the checks. An agent with a small, well described task stays on track far more often than one you ask to do everything at once.

Long, sprawling instructions invite it to wander. Short instructions with a clear finish line keep it honest.

Narrow jobs also mean narrow permissions. The OWASP project lists excessive agency as one of the main risks in LLM applications.

A model with more functions, permissions or autonomy than it needs can do real damage when its output is wrong or manipulated. Their mitigations read like a team design: limit each tool to what it needs, require human approval for high impact actions, log what happens.

Your reviewer agent doesn’t need write access. Your planner doesn’t need to deploy.

The check also has to be real. A reviewer that just reads the code and says it looks fine is decoration.

A reviewer that runs the tests, compares the output to what the plan promised, and refuses to pass anything that doesn’t match is doing actual work.

Write your pass condition down before the work starts, so nobody can quietly move the goalposts afterwards, including the agents.

Your code host can enforce part of this for you. GitHub’s docs on protected branches cover settings that require pull request reviews and passing status checks before anything merges.

Turn those on and the rule stops depending on your willpower on a Friday afternoon, human or agent.

The ego part

There’s an ego lesson in here for you too. It’s tempting to treat the agent like a genius and skip the review because it’s faster.

That speed is borrowed. You pay it back later, with interest, when the mistake turns up somewhere expensive. Relinquishing the fantasy of the one perfect assistant is what makes your whole setup trustworthy.

None of this needs fancy infrastructure. A plan file, a few separate sessions with different instructions, and a test suite that someone other than the author runs will get you most of the way.

The structure is the safety, not the tool.

Your plan file does double duty. It’s the contract between agents, and it’s also the memory that survives when a session ends.

I made that argument in the post on context dying between agents: the knowledge belongs outside the assistant, where the next one can pick it up.

A team of agents makes that even more important, because every handoff is a chance for context to fall on the floor.

And keep a person at the end. Agents can check each other, but you should still own the decision to ship anything that matters.

If you build tools, this is also where your real opportunity sits. In the post on the money around coding agents, the argument was that the agents are the cars and somebody still has to build the garages: the memory, the checks, the setup.

A small team of checked agents is exactly that kind of garage.

One thing to try this week

Take one task you’d normally hand to a single agent. Before it starts, write three lines in a plain file: what the change is, how you’ll know it’s done, and which tests must pass.

Run the work in one session and the review in a fresh session that only sees the plan and the diff. Compare what the reviewer catches with what you would have merged.

Trust the team, not the star.