Run a five-role coding agent team with verification gates on a large repo

Kewton ran a PM, lead, worker, reviewer and judge team of Claude Code and Codex sessions on a 468k-line codebase and closed 33 issues across three releases in four days.

Done withClaude CodeCodexinGitHub· Nov 24, 2026

What they did

Kewton builds CommandMate, a tool for driving several coding CLI sessions, and used it to build itself. Sessions get one of five roles. A PM agent turns requests into briefs and manages the GitHub milestone. A development lead splits work into non-overlapping file tracks and sends each issue to a worker in its own git worktree. A reviewer reads diffs without write access, and separate judge sessions run acceptance tests on the merged branch before a release. Each worker task carries a YAML contract listing allowed files and required checks, and a verify file in the repo, outside the worker's allowed files, runs lint, type checks and tests and returns an exit code that decides whether the work is done. Claude Code and Codex review each other's output, and cheaper plans handle well-specified issues.

How it went

Over three sprints from November 19 to 22, the team closed 33 issues across three releases with no forced merges, and judges passed 34 of 36, 44 of 46, and 40 of 40 acceptance checks. In one case Codex reviewed a Claude-written change to the role definitions and found 12 problems, 3 of them blockers. The third sprint planned 22 issues, overloaded the local test runner, and rolled 9 issues forward. Most of the 63 verify failures came from dirty environments and scope checks, not code errors.

Worth knowing

Tests were the bottleneck, not code: the local test gate averaged about 43 minutes a run, so sprints are now capped to about one day of gate capacity. The author makes the tool, and says the numbers were pulled from repo logs with AI help and then checked by hand. Without real tests the agents will mark broken work as finished.

Try it

With Claude Code· 4 parts to fill in

Act as the development lead for [repository]. Take the open issues in milestone [milestone name] and split them into tracks that touch non-overlapping files. For each track, write a short contract listing the goal, the acceptance criteria, the files the worker may change, and the checks that must pass ([lint, typecheck, test commands]). Assign each track to a worker session in its own git worktree and have a different model, [second agent], review each diff read-only. Treat a task as done only when the checks pass and changed files stay inside the contract. If a task fails verification twice, stop it and report to me instead of retrying. Do not merge anything without my approval.

Square brackets are the parts to fill in. The prompt is ours; the story is theirs.

Where they said it

Related