An AI agent can write a feature in minutes. Three problems stay:
- Trust: a green test suite does not prove that the code does what I asked for.
- Review: a person cannot read a large branch in one go, and a branch that nobody reads is a risk.
- Time: a feature has many parts, and one agent builds one part at a time.
My pipeline answers these problems with four ideas:
- Plan in four levels. A feature becomes stories, a story becomes deliverables, and a deliverable becomes tasks. Each deliverable is small enough for a person to review in one go.
- Run independent parts at the same time. Each story and each deliverable names what it depends on. The pipeline starts every part that waits on nothing, and starts each other part when its prerequisites are done.
- Build each deliverable with one agent. One agent writes all the code of a deliverable, task by task. It keeps the whole context, and it does not wait for a reviewer.
- Review with many agents. At the end, a group of agents that did not write the code audits the branch. A finding counts only when an agent reproduces it.
This post shows how the parts fit together.
Start with the Shape of the Work
The pipeline cuts the work into four levels. Each level holds one or more items of the level below it. This example is a small command-line tool for .emod files, a text format for event models:
Feature emod: a text language for event models
│
├── Story US-001 Parse a minimal .emod file
│ │
│ ├── Deliverable 1 Parse the minimal file → one branch, one pull request
│ │ ├── Task Define AST types for the emod model → one commit
│ │ ├── Task Implement lexer for .emod tokens → one commit
│ │ └── Task Implement recursive-descent parser → one commit
│ │
│ └── Deliverable 2 Validate from the command line (depends on 1)
│ ├── Task Wire up CLI with root and validate subcommands
│ └── Task Produce structured parse errors with file, line, and description
│
├── Story US-002 Parse the trigger, view, automation and translation patterns
│ (depends on US-001)
│
└── Story US-003 Draw a model as an SVG diagram
(depends on US-001)
| Level | What it is | It becomes |
|---|---|---|
| Feature | a problem to solve, with numbered goals | many stories |
| Story | one need of one user, with acceptance criteria | many deliverables |
| Deliverable | a part of a story that a person can review in one go | one branch and one pull request |
| Task | one behaviour that a test can check | one commit |
The deliverable is the level that makes review possible. A story is the unit of value, but one story can need more code than a person can read in one pull request. The deliverable cuts the story into pull requests that a person can read.
A deliverable does not have to be visible to the user. Large groundwork, such as new event types, can be a deliverable of its own. Small groundwork goes into the deliverable of its first consumer.
Each story and each deliverable also names the items that it depends on, at its own level. These dependencies decide what runs at the same time.
One Entry Point for Each Level
I start the work at the level that matches its size. Each entry point is a Claude Code skill.
/propose-featureturns an open problem into a proposal. It sizes each option with real data, and I choose one./write-user-storyturns the feature into stories. Each story names its goals and the stories that it depends on./deliver-featuredelivers every story of a feature. It runs independent stories at the same time, and starts each other story when its prerequisites are done./deliver-storydelivers one story that is too big for one pull request. It runs independent deliverables at the same time, in waves./implementdelivers one deliverable, or a story that fits in one pull request.
The three delivery skills form layers. Each one calls the one below it, and at each level an agent plans the work:
Each entry point is also the way to continue. When a run stops, or a pull request merges, I run the same command again. It reads the state from the repository and starts from where the work stopped.
Run Independent Work at the Same Time
/deliver-feature and /deliver-story do not deliver one part after the other. They read the dependencies, and they start every part that is ready. In the example feature, the dependencies look like this:
US-002 and US-003 both depend only on US-001. Inside US-002, the four patterns do not depend on each other. So the work runs like this:
time ──────────────────────────────────────────────────────────▶
US-001 [ 1 Parse ]
[ 2 Validate ]
┆ US-001 is done
US-002 [ Trigger ]
[ View ]
[ Automation ]
[ Translation ]
US-003 [ Layout ]
[ SVG output ]
With a limit of 5 runs, five runs go at the same time after US-001 is done. Two levels of dependencies make that possible:
- Between stories: a story is ready when every story that it depends on is done.
/deliver-featureplans all ready stories at the same time, with one agent for each story. - Between deliverables: a deliverable is ready when every deliverable that it depends on is done. The plan of a story groups its deliverables in waves, and the deliverables of one wave run at the same time.
- Done: a part is done when it merges, or, in trunk mode, when it lands on the local default branch.
A limit caps the number of runs at the same time. The default is 2, because two runs and their audits can use a 5-hour usage window in about 3 hours. The other ready parts wait in a queue. The story that blocks the most other stories starts first.
Parts That Touch Each Other
Parallel work needs care where two parts meet. The pipeline handles three cases:
- Two stories plan to change the same files. The plan gate shows each such pair, and I decide which story goes first. A pair that runs at the same time gives a merge conflict.
- A run changes a type or a name that other parts use. The run tells the orchestrator. The orchestrator sends the change to each deliverable that it affects, in the same story or in another story, and records it in a decision log.
- A deliverable starts after its prerequisite. It reads the design changes of the prerequisite before it plans its tasks. So it builds on the design as it was built, not as it was planned.
workmux gives each deliverable a git worktree and a tmux window. My own session is the orchestrator:
tmux session
├── orchestrator /deliver-feature or /deliver-story: answers, sends changes, records decisions
├── us-002-trigger worktree + /implement
├── us-002-view worktree + /implement
├── us-002-automation worktree + /implement
└── us-003-layout worktree + /implement
A board in tmux, tmux-deliverables, shows each story, its deliverables, and what each one needs from me.
A Feature from Start to End
/deliver-feature repeats one loop until every story is done:
Each merge can make more stories ready, and the loop starts them. No file stores the state of a story. The pipeline reads the state each time from the plans, the branches and the worktrees, so the state is never out of date.
The work lands in one of two modes:
| Mode | Where the work goes | A dependent starts |
|---|---|---|
team, the default |
one branch and one pull request for each deliverable | after its prerequisite merges |
trunk |
the local default branch, when the run ends | after its prerequisite lands |
--unattended lets the work continue while I am away. With /deliver-story, I approve the plan before I leave, and the orchestrator starts each dependent when its prerequisite finishes. With /deliver-feature in trunk mode, the orchestrator also approves each plan, against the same checks that I use. A job every 30 minutes finds a run that stopped and starts it again. Nothing pushes. When I come back, I read the decision log and the commits before I push.
Why One Agent Writes the Code of a Deliverable
The parallel work happens across deliverables, not inside one. Inside a deliverable, one agent writes all the code.
A common design gives each step to its own agent. One agent designs the tests, one writes the code, one refactors it, and one reviews each task. In that design, the build takes most of the time. On one feature with many tasks, the build took 64% of the wall-clock time, and the review gave nearly all of the value.
The work on the tasks is serial, and it needs the whole context. Each new agent must build that context again. So in /implement, the main agent writes the code for every task itself:
Each task follows the same short loop. The agent writes the tests and sees them fail. It writes the code and sees the tests pass. Then a mutation test makes small changes to the code, and each change must make a test fail. A test that still passes with the wrong code proves nothing. The agent then commits the task, and the next task starts.
After the last task, the run checks itself from several sides:
- Full suite: all tests pass in the tree that holds the commits.
- Audit: agents that did not write the code look for defects. The next section shows how.
- Match the request: the agent reads my request again, word for word, and looks for what the branch does not deliver. The task list came from the request, and a task list can leave out part of it.
- Check the run: no work stays uncommitted, and the work of each task stays in one commit.
- Learn: the run writes down each lesson that applies beyond this branch.
Why Other Agents Review It
Review is the opposite of the build. It is parallel work, and a reviewer that did not write the code finds more. audit-implement sends the finished branch to several agents at the same time. Each agent looks through one lens:
- Semantic looks for wrong logic, edge cases, and gaps between the code and its intent. It always runs.
- Guidelines looks for breaks of the project conventions in Go, JavaScript, TypeScript and Elixir.
- Test integrity looks for a test that still passes after someone deletes the feature. It runs when a test file changed.
- Design judges the new types and names in Go and Elixir.
- Concurrency, performance and security run only when the scope agent finds a signal in the diff.
The refute step is the one that makes the audit useful. Each finding goes to a new agent, and that agent tries to prove the finding wrong. A finding about behaviour stays only when the agent reproduces it with a test that fails, a race run or a direct call. A finding about style must cite the rule and the line. So the findings that reach me are real, and the report also names what the audit did not check.
The agent that built the branch fixes the findings itself, because it has the context. Then the audit runs again on the files that changed.
Where I Still Decide
The pipeline stops for me at a small number of gates:
| Gate | What I decide |
|---|---|
| Proposal | which option to build |
| Stories | the stories, their goals and their order |
| Plan | the deliverables, their waves, their dependencies and their planned design |
| Scope | a task that asks for more or less than the request |
| Request mismatch | each gap between the branch and the request |
| Merge or push | when the code goes to the shared branch |
The plan gate is the most important one. A wrong boundary or a wrong dependency between deliverables costs one line to correct in the plan. After the pull requests exist, it costs a new cut of the work.
There is no gate on each task list. To build a version and look at it costs less than an argument about a task list. The audit judges the finished code against the request, so a wrong task list costs one short run.
Some tasks still need a pause. Each task carries two assessments from the plan:
- Certainty: how sure the plan is that the code already shows how to build the task.
- Blast radius: what a mistake in the task costs.
blast radius low blast radius high
certainty high build at full speed pause after the tests
certainty low pause after the tests pause after the tests
The two values answer different questions, so the plan keeps them apart. A task that I built twenty times before, against the payments ledger, has high certainty and a high blast radius. Only the blast radius is a reason to slow down. With --gears, a task in a pause cell stops after its tests fail and before its code exists. I read the tests and decide if they are enough.
Each Run Teaches the Next One
A run keeps a lesson only when it can name the mistake that the lesson prevents. The next run reads the lessons that match its story before it plans its tasks. When I correct a branch by hand, /learn-from-corrections turns my fixes into lessons, guideline entries or lint rules. The next run then does not make the same mistake.
My guidelines set one standard for names, tests, architecture, concurrency and performance. Every run reads them before it writes code, and every audit lens judges the diff against them. A finding then cites a rule, and the fix is clear. The most useful guideline is the one on caller patterns. It asks one question for each test: who is the caller, and what does the caller see?
What to Take from This
If you build a pipeline like this one, start with these rules:
- Cut the work by what a person can review, not only by what a user sees.
- Write down the dependencies between the parts.
- Start every part that waits on nothing, at the same time.
- Let one agent build each part, because the build needs the whole context.
- Let many agents review, because a reviewer that did not write the code finds more.
- Count a finding only when an agent reproduces it.
- Put the person at the plan, where a correction costs one line.