nazax.com

Multi-Agent Claude Code Workflow: How We Build Software

NAZAX · Last updated

This is our multi-agent Claude Code workflow: how NAZAX plans, builds, checks, reviews and ships software when AI coding agents do most of the typing and people stay on the decisions. One planning agent splits the work, builder agents each take a piece in their own git worktree, a different model reviews every change, and nothing merges until CI, the review and a local try all pass on the same commit. The sections below describe each part in plain terms, and the linked articles go deeper on four of them.

One hub plans and dispatches

The hub is a single long-running agent session. It reads the repository and the open pull requests, splits the goal into stages named for what they achieve, and hands each independent piece to a builder with a written brief. A brief says why the change is needed, what done looks like, which area of the code it covers, and what the builder must not do: push, merge, or widen its own scope. We run at most four builders at once, which keeps both the laptop and the hub’s attention manageable. The hub does not build features itself. Its job is to plan, dispatch, try the results and decide. We describe the pattern step by step in the Claude Code orchestrator pattern.

Builders work in their own worktrees

Every builder gets its own git worktree and branch, so two agents never edit the same checkout. The hub names shared files in the briefs, so two builders do not touch the same file at the same time. A builder commits in small steps, runs only the checks for what it touched, and stops. The practical details are in running Claude Code agents in git worktrees.

Cheap models check, stronger models build and review

We sort work by what a mistake costs. Running a test suite and returning a pass/fail table is mechanical, so a small, fast model (Haiku) does it. Building a change takes judgement, so a mid-tier model (Sonnet) at high effort does that. Hard design calls and reviews of risky changes go to the strongest model (Opus). A red check moves one step up: a stronger model reruns it, compares it with the base branch and writes a minimal repro. If that fails, the strongest model looks. After that, a person does.

We do not switch a running session’s model to run a check. The prompt cache is per model, so the next turn would re-read the whole conversation at full price, and a weaker model would be left holding the design context. Which model for which job covers the routing in detail.

A different model reviews every change

The model that wrote a change never reviews it. A reviewer from another model reads the diff against the brief and records its verdict against the exact commit it read: clean, or a list of findings. Authors tend to defend their own reasoning, and a second model is less likely to share that blind spot. Our notes on this are in the code review agent for Claude Code.

Every change is tried on localhost before it merges

Each change runs on localhost from its own worktree, and an agent tries it: opens the page, follows the steps, checks the console for errors and runs scripted flows in a headless browser. The result is recorded against the commit, and any new commit needs a new try. The person does not have to be the tester.

Locally we run only what the change touches. CI runs the full build and the full test suite on a quiet machine. In one measurement on a large repository in November 2026, CI took 15 minutes, but finished code waited one to two and a half hours for local full builds and test suites on an overloaded laptop, each run three times and one after another. Our aim now is under 30 minutes from finished code to merged.

Changes ship in batches through one exit

Builders never push. Finished changes land on one shared branch, and a single shipping agent is the only route to CI. It opens one pull request for a batch, which is due when three changes have landed or the first has waited 30 minutes. It tries exactly what will ship, waits for CI and merges. A risky change goes alone, as a batch of one.

A merge needs three things on the same commit: CI is green, the review is clean and the try passed. If a commit changes after any of them, that check no longer counts. Merges are rebase merges, so the history keeps one logical change per commit.

The laptop’s memory is guarded

Many agent sessions share one 16 GB laptop, so memory is a resource we manage. A dev server starts only when a script confirms that 2 GB would stay free after its expected peak, counting the growth still to come in servers already running. One preview of our apps can take up to 2.5 GB even with its heap capped. Heavy checks such as type checks, tests and builds wait on the same gate, for four minutes at most, and then run anyway. On a busy machine we defer to CI instead of blocking.

Housekeeping follows from that. Agents stop their own servers when they finish, and they never use broad kill commands such as pkill node. They kill by process ID or port, so they do not take down a sibling session.

An approval stays with a person

On client work, merging to production, publishing, and creating or revoking credentials need a yes from a person, given in the session that will do the work. An approval relayed from another agent session does not count, and the permission check refuses it. When a step needs approval, the agent asks in one line and waits. Committing locally is always fine, and so is the shipping agent opening a pull request once quick checks pass.

What this means for a client

  • Evidence with every change. Each change arrives with a CI result, a review by a second model and a recorded try on the same commit.
  • Small changes land quickly. Our aim is under 30 minutes from finished code to merged, because the checks overlap and cheap models do the mechanical part.
  • Nothing reaches your production by itself. A person approves each release, and you can be that person.
  • It fits your pipeline. We can work in your repository with your CI, and we agree the definition of done and the release rules at the start.
  • What it needs from you. A repository with tests and CI makes the method work well. Without them, we start by adding them.

Write to [email protected] with what you want to build, and we will tell you whether this method fits.

Built this way

Our open projects are built with this method: hypr-tiling, a tiling layout engine for React; debugsy, a React debugging toolkit; motion, a TypeScript animation library; doodl, a browser drawing studio; and the React UI kits harbuz, kavun and dynia.

Questions

How long from finished code to merged?

Our aim is under 30 minutes from finished code to merged. The checks overlap: CI, the review by a second model and the localhost try run at the same time, and cheap models do the mechanical work. A merge needs all three to pass on the same commit, so a failed check adds time.

Which models do you use?

We use Claude models by job. A small, fast model (Haiku) runs checks, a mid-tier model (Sonnet) at high effort builds, and the strongest model (Opus) handles hard calls and reviews of risky changes. Every change is reviewed by a different model than the one that wrote it.

Do you work with client teams?

Yes. We can work in your repository with your CI, and we agree the definition of done and the release rules at the start. The method works best where tests and CI already exist; without them, we start by adding them. Write to [email protected] with what you want to build.