Skip to content

Blog

One coding agent for every step makes reviews blind and CI expensive

When one model plans, writes and reviews, bugs slip through and CI bills climb. This setup sends every step to the model that suits it, splits reviews across model families and moves fast checks onto the local machine.

Written by

Coding agent setup

Published: 28 November 2026 15 min read

Three questions from the same week

In a single week, different engineering teams asked me three questions that looked unrelated on the surface. One team wanted to know how to cover security, code quality and other review aspects with separate agents. A second team wondered why Gemini 4 Neon caught so few real bugs as a code reviewer compared to Codex. And a small team wanted a way out of climbing GitHub Actions bills now that agents trigger so many pipelines.

All three answers live in the same setup. Three harnesses run on my machine, and every step goes to the model that suits it. Another model family reviews the code that was written, and deeper review aspects run separately. Fast checks run locally in Git hooks and the path check, so CI focuses on building and deploying.

This article walks through the full flow from task intake to deploy, as I run it on my Mac and as we use it at hackers&wizards across our repositories and client work.

The whole flow in one picture

Before unpacking the roles and rules, it helps to see the whole chain at once. Work moves through fixed handoffs and two check levels. The path check is the repository’s check for the changed paths. The full gate runs every step, including the build and the checks over the built site, and runs once, when a push deploys.

A development job runs from the main session through the planner and checklist to implementation, path check, commit and cross-model review with up to three returns and one Fable root-cause attempt. A reverted row ends as fail and counts toward “all rows pass or fail”, after which the push runs the full gate in pre-push when it deploys, then CI.

Figure 1: From task to shipped code across main session, planner, implementer, review, path check, full gate and CI.

The main session takes a task, lets the planner write a JSON checklist, and hands each row to Sol or Neon. After the implementer passes the path check and commits its row, another model family reviews the diff, returning blocking findings up to three times before Fable gets one root-cause attempt. Once every row is pass or fail and the path check is green on the last commit, the work is pushed, and the pre-push hook runs the full gate once if that push deploys.

Who does what

I run exactly three harnesses on my machine, one per model family: Claude Code, Codex CLI and Google’s Antigravity CLI (agy).

Who does what
Role Harness and model When
Main session Claude Code, Claude Opus 5.5 (medium) Dialogue, rules, briefs, source checks, push
Planner (large) Claude Code, Claude Fable 5.2 (high) Two or more epics, root cause after three returns
Planner (small) Claude Code, Claude Opus 5.5 (high) Single-epic jobs
Implementer (exact spec) Codex CLI, GPT-6.2 Sol (medium) Exact spec, edge cases, current APIs
Browser steps Codex CLI, GPT-6.2 Sol (medium) Browser steps a skill hands off
Implementer (open task) Antigravity CLI (agy), Gemini 4 Neon (high) Open specs, design, hill climbing, bug sweeps
Writer and web research Antigravity CLI (agy), Gemini 4 Neon (high) Human-facing prose, public web research
Reviewer Different model family Code, rule compliance, long documents

Fable has its own usage limit, so the main session stays on Opus medium and saves Fable high for planning two or more epics (an epic is a part of the job that ships on its own) and for stuck root causes. The main session hands implementation over. Claude Code subagents work alongside it as colleagues with their own memory, inheriting its model.

Task shape picks the implementer. Sol at medium takes exact specs, edge cases, hostile input and current APIs, while Neon at high takes open specs, design, hill climbing and bug sweeps. Each backs the other up as fallback, followed by Opus medium. In my use, Opus is strongest on repository questions, rules, agents, memory and house voice. Neon handles long context well, but its knowledge of current APIs is older and it is weaker on hostile input and short tasks. Sol handles specs and edge cases well, while struggling on summaries.

One job, end to end

The session that takes a development job runs it to its end along a JSON checklist, with no other session coordinating it. The planner (Fable on two or more epics, otherwise Opus high) writes the checklist with six fixed fields, where check is a command or an observable result. Only this session edits status. Here is an example with two rows:

[
  {
    "id": "api-pagination",
    "task": "Add cursor pagination to /v1/events",
    "check": "bun test src/api/events.test.ts",
    "implementer": "codex-sol",
    "depends_on": [],
    "status": "open"
  },
  {
    "id": "pre-push-runtime",
    "task": "Speed up the pre-push check",
    "check": "time bun run check --changed",
    "implementer": "agy-neon",
    "depends_on": ["api-pagination"],
    "status": "open"
  }
]

Each row runs the path check defined above, and the full gate runs once, in the pre-push hook of a push that deploys. One job moves through seven steps:

  1. The session hands each row whose depends_on entries are met to its assigned implementer, running independent rows side by side.
  2. The implementer satisfies check, passes the path check and commits. Numeric targets (path-check runtime, test runtime, mutation score, Lighthouse, token cost) run as a loop: change one thing, measure again, keep only on improvement.
  3. The session waits in one blocking call, then inspects the commits and the path check’s exit status without rerunning it.
  4. One reviewer from another model family reads the row’s diff and check result, re-reviewing after each return. Blocking findings return to the same implementer thread up to three times. The session or its subagent fixes a review finding itself when it is a few lines with no design choice.
  5. After three returns, Fable gets one try at root cause and fix, on single-epic jobs too. Sol reviews Fable’s fix, so the review stays outside the author’s model family. If it still fails, git revert rolls back and the row plus its dependents become fail.
  6. The job ends when every row is pass or fail and the path check is green on the last commit, or at a human blocker. Only then is the work pushed.
  7. Any finding raised in two rows, as well as any root cause Fable had to fix, goes to agent-feedback before the final report.

Reviews: another family, separate passes, independent checks

The first two practitioner questions come down to two habits: having another model family review code and splitting review passes by aspect. Everything a person reads or sees also gets an independent blind review.

Another model family reviews

Reviews follow a fixed pairing across model families:

Another model family reviews
Work Reviewer
Code written by Sol Opus
Code written by Neon or a Claude model Sol
Check against repo rules, or Neon text Opus
Long document written by Claude Neon

Opus reviews a row at high for larger changes and for security-relevant changes, otherwise at medium. Sol implements at medium and reviews Neon’s or Claude’s code at high. Where only the author’s model family remains available, a fresh session of that family reviews and the report states that exception explicitly.

Neon reviews only long Claude documents, never code and never security. That answers the team that tested Neon beside Codex as a code reviewer: I do not use Neon for code review. It works on open implementation, long context and writing, while Opus and Sol review code.

Separate passes per aspect

Each checklist row gets one cross-model reviewer, re-reviewing after each return. The deeper aspect passes run in the daily polish over recent commits, not per row: a comment sweep, /code-review high (correctness, quality, performance), /security-review and /simplify, plus module reviews by a model that wrote none of that code.

/simplify applies its own fixes. The other passes report findings that the session fixes or hands to an implementer. Each module reviewer reads a written list of failure modes in full before checking minimalism, design, coupling between modules, performance and security, edits no files and returns short findings with file path, line numbers and requested change to the session. A second pass then reviews the resulting diff. In client projects, the agents also read CodeRabbit comments on pull requests.

Independent review for human-facing work

Everything a person will read or see, such as a web page, slide deck or article, goes through an independent review where reviewers see neither the author nor which version is new. For text, a reviewer first restates what the text says in its own words before raising any finding, and the loop stops after two clean rounds in a row for long texts and after one for everything else.

Where checks run, and when CI should repeat them

The third practitioner question is about rising CI bills. I covered the underlying levels in detail in Verification levels. What matters most is the time order in which checks run.

Timeline of the six verification steps: session-start hook, path check before commit, pre-commit hook, pre-push hook running the full gate on a deploying push and the checks for the changed paths otherwise, CI, and daily polish and on-demand runs.

Figure 2: The six verification steps in time order, from session start through path check and pre-push to CI, polish and on-demand runs.

Every app repository we own pins one shared check package, @hackersandwizards/scaffolding (github.com/hackersandwizards/scaffolding (opens in a new tab)). It is public under the PolyForm Strict 1.0.0 licence: anyone may read it and use it non-commercially, without modifying or redistributing it. It brings the Git hooks, linter configuration and path selection (bench, a machine-setup repository rather than an app, keeps its own small pre-commit hook). Every configuration exception needs a written reason beside it. The check fails when the reason is blank or the exception no longer matches any code.

The six steps run in this order:

  1. Session start: Our own repositories run exactly one agent hook (mirrored across Claude Code, Codex and agy), which fetches main, fast-forwards and runs bun install --frozen-lockfile under a lock, with zero checks. We run no PreToolUse or PostToolUse hooks anywhere because harness hooks mostly hold agents up. All actual checks live in Git hooks and the path check.
  2. Before each commit: The agent chains the path check ahead of git commit with &&. A red result stops the commit, and nothing requires the full gate at every commit. Even a pin raise of the check package checks only the changed paths before its commit, leaving the full gate to run once on the deploying push.
  3. Commit: The pre-commit hook inspects staged files only (gitleaks, coupling, confidential terms, Prettier, ESLint and Oxlint syntax rules, Stylelint, ShellCheck and markdownlint). A licence check runs whenever bun.lock or package.json is staged.
  4. Push: The pre-push hook reads one line in package.json (scaffolding.deploy) that lists the branches whose push deploys, main in our repositories. On such a push it runs the full gate (bun run check) once: every step, including the build and the checks over the built site such as browser, link and crawl checks. Any other push runs the path check with --changed (typecheck, typed lint, dependency-cruiser cycles, layers, the tests related to the changed files and fixed-seed fast-check property tests). A changed config file, lockfile or workflow file, or the first push of a new branch, triggers all fast steps. Nothing is stored between runs, and commits made by hand go through the same hook.
  5. CI: GitHub CI installs, builds and deploys, and runs only what a deploy needs. On the website’s GitLab, the pages job waits for a manual start after a push, and a daily schedule builds, runs a Playwright smoke test against the artefact and publishes. GitLab also checks external links every week and applies Terraform when the infrastructure changes.
  6. Daily polish and on demand: Mutation testing with Stryker runs on demand and in polish. Deeper fast-check exploration with a fresh seed runs on demand only.

Working rule:

  • Fast checks that protect tight iteration stay local.
  • Slow suites and checks needing their own machine can run in CI.
  • The full gate runs once, on the push that deploys, not at every commit.

Local hooks are a convention the server does not enforce (Git allows --no-verify and web UI edits bypass them), so this holds only while every push comes from a checkout where bun install enabled hooks and rules forbid skipping them.

When CI should repeat checks after all

With several teams, pull requests or external contributors, local hooks cannot hold the boundary alone. Two real setups from our client work show both ends:

When CI should repeat checks after all
Aspect Multi-team client platform Proof of concept for the same client
Workflow Pull requests across several teams Trunk-based pushes straight to main
Local checks Pre-push runs related tests (Ruby specs, Vitest), deploy gate on manual-deploy branch Pre-commit and pre-push (full gate on main, changed check otherwise)
CI Shards full suite, skips draft PRs Repeats zero local checks
Path to production Dev deploys wait for green CI, QA and prod wait for humans Builds, deploys dev, smoke test and browser journeys, promotes to prod

Both setups fit the same rule of thumb: the more people and outside contributors push to a repository, the more checks belong back in CI. In a small team pushing from hooked checkouts, CI can focus on build, deploy and any check no local hook runs.

Guardrails and people

Claude Code runs in bypass mode, Codex runs with full access and zero approval prompts, and agy runs with always-proceed. Safety sits in the system around the agents instead: repository rules, Git hooks (pre-commit and pre-push), the path check, the full gate and the closed scope of every schedule file. We avoid PreToolUse and PostToolUse hooks in the harness because they mostly hold agents up. The multi-team client platform used to run nine such agent hooks (git guards against commits sweeping up another agent’s work, a cap on brief size, an attachment check on bug briefs, a guard against overwriting run records, and a context stop for subagents). They turned out counterproductive and were all removed; those expectations now stand as plain rule lines instead.

No person approves individual checklist rows. A person steps in to decide a blocker only a person can lift and to release every text that leaves the company, and in the multi-team client repository QA and production also wait for human reviewers.

How the setup learns

Rules and skills decay when corrections stay in closed chat threads, so lessons feed back into a fixed loop.

Feedback loop from the six triggers through the agent-feedback skill and the choice between a deterministic check in the shared check package or one rule line synced from the hub across 18 repositories.

Figure 3: How corrections and repeated failures flow through agent-feedback into the shared check package or into shared rules and skills synced from the hub across 18 repositories.

Six triggers invoke agent-feedback: my correction, a second identical failure in one session, a review finding in two checklist rows, a root cause Fable had to fix, daily polish and the weekly retro (which also grades whether the last retro’s fixes worked). After a correction, the agent finishes the result first, then edits only the single file that owns the behaviour, adding a reusable invariant rather than the concrete case.

The first question is always deterministic: can an existing linter or test catch this mistake reliably, and is it worth its upkeep? If yes, it becomes a linter rule (whose message states what to do instead) or a test inside the shared check package (@hackersandwizards/scaffolding), which every app repository pins. If not, it becomes one line in the owning file, never a new hook or check step. When one agent fails under a fleet rule, it gets a bound in its own file. When a second agent fails the same way, that bound moves up into the shared rule.

Every new line cites a person’s message or an observed failure in the commit. The shared rules and skills live in one hub, ~/.claude, and a sync copies 10 rules and 13 skills into 18 repositories, where all three harnesses read them. The shared check package for linters and tests travels separately, as a pinned dependency.

What runs while I am away

Alongside interactive work, four recurring coding schedules run in the background:

What runs while I am away
Schedule Cadence Does
update-bench Daily 05:30 Updates packages, pushes bench
polish Daily 06:00 Reviews recent commits, runs Stryker, updates dependencies
cleanup-bench Sundays 07:00 Trims caches and old logs within budget
retro Sundays 08:00 Audits transcripts, grades last retro, updates rules

Every scheduled Claude session starts as a fresh T3 session straight on Claude Opus (medium), while the two bench schedules run on Codex Sol (medium). A Claude schedule hands its run to the colleague agent with its own role and memory that owns the work: polish and retro hand over to the software-engineering colleague at high effort. That handover happens for the colleague’s role and memory, with no cheaper starter model handing over to a stronger one anywhere in the setup. All four run in the project checkout with a closed list of what each may do (the two bench runs never use sudo, and no run sends a message) and report done, deferred or blocked.

The tools around it

I drive all three harnesses from T3 Code (opens in a new tab), running as a background service (t3 service install) so threads and schedules keep going when the window closes. Claude, Codex and Antigravity are enabled there, and Neon also runs directly in agy when needed. A parent thread hands work to another provider with its own model and effort, T3 Connect lets me follow and answer threads from my phone (with LAN off), and scheduled tasks run as fresh sessions in the checkout.

The session reaches Sol and Neon as child threads in T3 Code, or from the shell through codex exec and agy -p. The shared rules reach Codex and agy without copy-pasting: Codex reads CLAUDE.md as its project doc, agy reads AGENTS.md, and the skills folder is linked for both.

Underneath, github.com/hackersandwizards/bench (opens in a new tab) keeps an Apple Silicon Mac reproducible with install.sh and mise. Three environment variables from bench solve two daily problems with parallel agents: growing caches and mismatched context limits.

# Stop growing caches during agent runs
export NODE_DISABLE_COMPILE_CACHE=1        # recorded: 53 GB in two days
export BUN_RUNTIME_TRANSPILER_CACHE_PATH=0 # 20 to 40 GB a day

# Match agy's auto-compact window to Claude Code (400k tokens)
export AGY_CLI_AUTO_COMPACT_OVERRIDE=400K

What I have not measured

Two parts of this setup rest on daily judgement rather than measurements. First, I have not measured cost per development job across the three harnesses. Second, I have not run a controlled test of whether cross-family code review catches more real bugs than a fresh review by the same model family. Both are working assumptions from practice, not numbers.

Where to start

You do not need to build all of this in one weekend. Four steps in order put the core pieces in place:

  1. Separate author and reviewer first: add a second model family for review and split checks into separate passes for correctness, security and simplification.
  2. Move fast checks into local hooks: list every check in one repository, put formatting, syntax lint and secret scanning into pre-commit and path-selected typecheck plus unit tests into pre-push. Trim duplicate CI checks only once every push comes from a hooked checkout.
  3. Centralize instructions in one place: keep shared rules and skills in one Git repository synced across your repositories and harnesses, and turn every recurring correction into a linter rule, a test or one line in the owning rule.
  4. Add the cockpit and hygiene: once parallel threads become daily work, install T3 Code as a background service, set the Node and Bun cache variables and start with a daily polish schedule.

Repetitive checks, cache limits and standard review passes then live in Git hooks, path check, full gate and separate models instead of manual steps in every run.

Sources and limits

  • Industry report github.com

    T3 Code: README (opens in a new tab)

    Method and limits
    Method
    The project description of the open-source client for coding agents: providers, worktrees, scheduled tasks and voice input.
    Limits
    Project documentation. It describes features and measures nothing.

    2026-11-26 | Verified: 2026-11-28

  • Industry report antigravity.google

    Google Antigravity CLI (opens in a new tab)

    Method and limits
    Method
    The product page of the command line for Antigravity agents.
    Limits
    Vendor page. It describes the tool and measures nothing.

    2026-11-24 | Verified: 2026-11-28

  • Industry report code.claude.com

    Claude Code: Hooks (opens in a new tab)

    Method and limits
    Method
    The reference of the lifecycle events Claude Code attaches hooks to, such as SessionStart, PreToolUse and PostToolUse.
    Limits
    Reference documentation with no version on the page.

    2026 | Verified: 2026-11-28

  1. Your agents write code faster than your pipeline can check it Small agent tasks send every change through the same checks again. Verification keeps pace when each check runs at the level where it is cheap and no level repeats an earlier one. 7 min read
  2. Verification in a Software Factory When generating code gets cheap, a Factory's throughput depends on how well the system can establish that a change is acceptable, safe, and worth shipping. 3 min read
  3. Generic coding agents hit a limit, custom agents go past it Claude Code, Cursor and Gemini CLI are built for the average codebase. Teams that scale with agents move from better agents to more agents to custom agents built for their own domain. 3 min readShort post

All 16 posts on Coding agent setup

ClientsClient work

Test the constraint in your system

The Factory Readiness Assessment connects this research to your value stream, your data, and the next decision.

Training on this topic: Agentic Engineering for Developers and QA
See the assessment

Want to check one team first? The self-check: twelve yes or no questions, three minutes, instant result, no account. Take the self-check