Section650

Writing

TopicAI
Reading7 min

How to Build a Trusted AI Agent Team: Roles, a Manager Agent and Earned Autonomy

Give each agent one job, let a manager agent plan and escalate without approving its own work, let CI decide what passes, and widen autonomy only where the record supports it.

By Ka Lun Chan · AI / Leadership

How do you build an AI agent team you can trust?

Trust the structure more than the agents. Give each agent one narrow job, put a manager agent in charge of planning and tracking that never approves its own output, let tests and CI decide what passes, and keep a person on the decisions that carry real risk. Autonomy grows only where the record shows it’s safe.

I use Claude Code and Codex, and once agents are useful the real question becomes how much to let them do on their own. The answer I keep landing on is the one I’d give about a human team. You trust a new team once the work is split clearly, someone checks it, and the checks have a track record. Talent alone doesn’t get you there.

Fig. 757-1 The roles on a trusted agent team, and what each one is not allowed to do
RoleJobNever allowed to
Manager agentTurns a goal into small tasks with acceptance criteria, assigns them, tracks status, escalatesWrite the code it later checks, or mark its own work done
Builder agentsEach takes one thin task with only the context that task needsMerge, or change the acceptance tests
VerifierRuns tests, type checks, lint and security scans against the specEdit the code it is verifying
Reviewer agentReviews design and risk from a different model or a fresh contextBe the session that wrote the code
HumanWrites or approves the spec, owns high-risk merges, sets how much autonomy each tier getsRead every line of a dependency bump

The last column matters most. A team is trustworthy when whoever writes the code, whatever checks it and whoever approves it are never the same.

Why do reading every line and trusting the agent both fail?

Reading every line doesn’t scale and gives less assurance than it seems to, and letting an agent check its own work repeats its blind spots.

A LeadDev Research survey of 377 engineers, sponsored by CodeRabbit, found 45% of organizations now name code review as their biggest delivery bottleneck, and half say pull requests per developer rose at least 25% after adopting AI tools. 82% said developers still manually review most or all AI-written code, yet seven in ten said they don’t fully understand the AI code they approve, and only 18% said reviewers regularly have enough context to judge architectural impact. That’s a lot of reading for not much understanding.

The same survey found 47% of teams rely on the agents that wrote the code to review it. Paul Nashawaty of Efficiently Connected told VentureBeat he wouldn’t rely on the agent that generated the code as the final validator. I agree. I covered where human review still earns its time in code review in the AI era, so this post stays on how to organize the agents.

What roles does a trusted agent team need?

A manager, builders, a verifier, an independent reviewer and a human. Separation holds it together: no role approves work it produced.

Separation matters because agents fail in correlated ways. Christo Zietsman’s paper on specifications as a quality gate argues that without an executable spec, the generating agent and the reviewing agent reason from the same artefact, so they tend to miss the same things. His results are early and directional. Even Martin Monperrus, whose position paper argues agents can take over most review, concedes that generation and review blind spots may be correlated and recommends reviewing with more than one model.

In practice the reviewer runs on a different model, or at least in a fresh context with only the diff and the spec. That’s the idea behind the Claude and Codex review workflow. The verifier is the most important role and the least clever one. Tests, type checks, linters and security scanners don’t share a model’s blind spots, and they give the same answer every time.

What management skills does a manager agent need?

The ones I look for in a human lead: break work into pieces someone can finish, define done before work starts, match oversight to risk, escalate instead of guessing, keep status where everyone can see it, and fix the system when the same mistake comes back.

I treat a vague goal as a risk, and that applies to agents even more than to people. A person asks a clarifying question. An agent fills the gap with something plausible. So the manager agent’s first job is turning a goal into tasks small enough that one builder can finish one and a check can prove it.

Break work into thin tasks

Each task should be a thin vertical slice with its own definition of done, small enough to review in one sitting. If the manager can’t write an acceptance test for a task, the task isn’t ready to assign.

Write acceptance criteria before the code

A person writes or approves the criteria before any builder starts. Zietsman cites an industrial study by Wang and colleagues where grounding the AI reviewer in human-written specifications raised developers’ adoption of its suggestions by 90.9% over a baseline reviewer. That figure measures how often developers accepted the suggestions rather than how many defects were caught, but it points the same way: review against a spec beats review against the code alone.

Sort every task by risk

The manager tags each task with a risk tier when it creates it, so the path to merge is settled before anyone is tempted to rush. The tiers are below.

Escalate instead of guessing

Good escalation triggers are concrete: the same check fails twice, the spec doesn’t answer a question, the change touches a protected path, or the task runs past its time or cost budget. The software factory post uses a three-attempt limit before a person gets the ticket, and a hard stop like that keeps a stuck agent from burning a day.

Keep status in a shared record

I tell human teams to write decisions down. For agents it’s required, because no agent should depend on another agent’s memory. Tasks, owners, blockers and check results live in the issue tracker or a task file that every agent and person reads.

Turn repeat mistakes into checks

When a builder makes the same mistake twice, re-prompting it is the weak fix. The strong fix is a lint rule, a test or a clearer API that makes the mistake fail CI for every agent from then on. Lauren Tan makes this case well in her talk on my Watch List.

The manager must never approve the output of its own plan or loosen a test to get a task through. I measure a lead by the team that works without them, and the same test applies here. If everything stalls without the manager’s judgment, the checks are too thin.

How do you decide what an agent can merge without a person?

By risk and by evidence. Low-risk change types merge on green checks, everyday features get an agent review and a human skim, and anything touching architecture, security or money waits for a person.

  • Merge on green checks: dependency bumps, test additions, small refactors and copy changes, once the checks for that type have a clean record.
  • Agent review plus a human skim: features that follow patterns already in the codebase.
  • A person decides: architecture, authentication, payments, data migrations and anything where the right answer depends on requirements no agent has seen.

That split lines up with Monperrus’s paper, which says agents already review dependency bumps, refactors and test additions, and reserves human approval for long-lived architecture decisions, security-critical paths in regulated systems and changes that depend on requirements no agent was given. Qodo calls the general idea earned autonomy. Futurum’s write-up describes automation that expands where evidence supports it and contracts where risk rises, with paths like auth and payments permanently excluded from auto-approval.

All of this depends on the checks. TestMu AI’s report, covered by TechRadar, found only 41% of teams run automated checks on AI-written code before merging. A merge-on-green tier on top of thin checks is blind trust with extra steps. For how deep the checks should go by change type, see how much verification AI-generated code needs.

What keeps an agent team trustworthy as it grows?

Separate identities with the least access each role needs, CI rules agents can’t loosen, a log of every action, and checks you test as carefully as the code.

Give every agent its own credentials. Reviewers get read access, builders can push branches, and only the pipeline merges. Branch protection blocks anything that fails, and changes to tests or CI config need a person, because deleting an assertion is the fastest way for an agent to make a check pass. Log who did what, for which task and which checks ran, so a bad merge can be traced in minutes.

The checks need checking too. On this site, a build from a fresh worktree once ran without the production environment file, rendered different content and still passed validation. I wrote it up in the harness engineering post. The agent did nothing wrong. The gate wasn’t looking at the thing that broke. Every incident like that should either add a check or move a change type into a stricter tier.

Where should you start?

With one builder agent, solid CI and a person reviewing everything. Add each role only when the one before it is working.

  1. Run one builder agent behind your existing tests and branch protection, and review every change yourself.
  2. Add a separate reviewer on a different model once the checks catch most of what you used to catch by eye.
  3. Add a manager agent when you’re handing out more tasks than you can track by hand. That usually happens once you run agents in parallel worktrees with a tool like Orca.
  4. Write down which change types merge on green, then move that line when an incident or a long clean record says it’s in the wrong place.

The readiness checks for step one are in how to start an AI software factory. One caution on the numbers here: most come from surveys run or sponsored by companies that sell review and testing tools. They all point the same way, so I trust the direction more than the exact percentages.

Sources

Checked in November against the LeadDev Research survey as reported by SD Times, VentureBeat’s coverage of it, TechRadar’s coverage of TestMu AI’s report, preprints by Christo Zietsman and Martin Monperrus, and Futurum’s write-up of Qodo. The 90.9% figure is Wang and colleagues’ result as cited by Zietsman. The roles, tiers and recommendations are mine.

Short answers

How do you build an AI agent team you can trust?

Give each agent one narrow job, have a manager agent plan and track work without approving its own output, let tests and CI decide what passes, and keep a person on high-risk decisions. Widen autonomy only where the record shows it is safe.

What does a manager agent do?

It breaks a goal into thin tasks with acceptance criteria, assigns them to builder agents, tags each task by risk, keeps status in a shared record and escalates to a person when a check fails twice, the spec is unclear or a budget runs out. It never writes the code it checks.

Should the AI agent that wrote the code also review it?

No. The writing and reviewing agents tend to miss the same things when they reason from the same code. Use a different model or a fresh context for review, and rely on tests, type checks and security scans, which do not share a model’s blind spots.

Which changes can AI agents merge without a human?

Low-risk types such as dependency bumps, test additions, small refactors and copy changes, once the checks for that type have a clean record. Architecture, authentication, payments, data migrations and changes that depend on requirements no agent has seen should wait for a person.

Start with one agent and good checks

Pick one builder agent, put it behind tests you trust and review everything it does for a few weeks. Add a reviewer and a manager once the checks are carrying the load.

Tell me what you’re building