/mow: multi-agent orchestration for AI coding agents
in Multi-agent orchestration
One AI chat building a dozen todos runs out of context and forgets its own decisions, and a dozen fresh chats each rediscover the plan and edit the same files.
- What is mow?
- What does a lane agent get?
- How does mow decide what runs in parallel?
- What happens during /mow go?
- What do the gates catch?
- How is a lane kept from running forever?
- Where does a human step in?
- What does a run cost?
- Where does mow lose?
- Summary
mow gives each agent only the context its todo needs, and settles who owns which file while planning, not at merge time.
Every mechanism below is shown in one real run, site-hardening, which added security scans, a rate limit, a latency budget and tracing to this site on 13-OCT-2026. It ran 6 of 8 lanes and 2 of 4 waves in 2:02:03 of chat time, for $41.68 at list prices; waves 3 and 4 had not started by 31-OCT-2026. The figures are drawn from its tracker.
| Tool | Used for |
|---|---|
| Claude Code | the orchestrating chat and its subagents |
| git worktrees | one checkout per lane |
Python, taskman.mow |
the gate scripts that refuse |
| taskman | the board of todos and decisions |
tracker.json |
one state file per run |
What is mow?
mow (Multi Agent Orchestration Workflow) is a skill that turns a finished plan into one brief per todo, groups the briefs into waves, and runs each wave as parallel subagents with a review gate after it. It has no runtime: it drives the host's subagents and git, and scripts hold the checks an agent might forget. The accent arrow is the gate's findings going back to the lanes.
/mow plan writes the briefs and a wave map, /mow ready grills the plan one question at a time, /mow go runs the waves, and /mow list shows active runs. Plan runs in the old chat, where the unwritten decisions live; after it everything is on disk, so go runs anywhere. In the ai-wow repo, 120 plans have a dispatch folder and 114 are shipped, from 389 brief files (counted 2026-11-03).
What does a lane agent get?
Its brief and nothing else, so a decision left out gets made again, maybe the other way. /mow plan refuses to write the folder until every brief passes a thin-brief check:
| Section | Passes when | Refused when |
|---|---|---|
| Goal | a concrete done-state | an echo of the todo title |
| Context & decisions | two facts a blind agent needs | "see plan", "see chat" |
| Files in scope | real paths owned, plus tests it will break | empty, "TBD", "the backend" |
| Do NOT | a real scope trap | "don't break things" |
| Acceptance check | a SHALL line, a GIVEN/WHEN/THEN case, a command | "tests pass" |
| QA contract | a failing test first for a bug, a screenshot for UI | missing on a code lane |
Site-hardening had 8 briefs of 81 to 123 lines. Part of lane C's, the rate limit:
- Mechanism and numbers are settled (d#18, operator grill Q1): the module above,
one zone per_ip, key {remote_host}, events 120, window 1m.
- There is no proxy in front of Caddy, so {remote_host} is the client IP.
Do not trust X-Forwarded-For (anyone can send it).
## Do NOT
- Do not add an app-level limiter (slowapi or similar) or a Python dependency.
Each line closes a choice. Briefs cite decisions by id; a script expands them into one hydrated-specs.md. A thin brief is worse than none: the lane follows it to the letter.
How does mow decide what runs in parallel?
From the briefs' file lists, before anything runs: two lanes editing one file make a conflict that stops the wave. Two todos share a wave only when their files don't overlap and neither needs the other's output; otherwise they share a lane or go in consecutive waves. Destructive work, or work outside the repo, runs in the foreground with me.
Yellow landed after a fix round; grey has not started. Wave 1's four lanes own disjoint files. F waits for wave 2 because it edits deploy.yml after A and C; G's live check needs F deployed; Z documents the rest.
Preflight also stops on overlap with any other active run's owned files. A lane releases its files once its wave lands.
What happens during /mow go?
Preflight, then each wave in turn; no wave starts until the last one landed and passed review.
- Preflight refuses an ungrilled plan, a thin brief, a file owned twice, or an uncleared wait on another run.
- The wave's lanes build in parallel, each in its own worktree, and the wave lands as one commit.
- Reviewers in a separate context read the whole landed wave.
- Clear with more waves to go: the next wave starts. Clear after the last wave: go to step 6. A Critical: step 5.
- A fix round closes the finding and is reviewed again. After a third failed round on one finding, the run stops for me.
- Ship-check judges every requirement, and close-out refuses the shipped flip until the verdict, the action report and the tracker are complete.
Each lane builds in its own git worktree. Reviewers who wrote none of it read the whole landed wave, since only they see the seams. Lanes never commit. land_ merges them, checks every path against the wave's owned files, and commits exactly those. It used to leave them uncommitted, and another session's sync committed a whole unreviewed wave under its own name (What happens when two agent sessions share a checkout).
- 21:31 site-hardening, waves 1 and 2, wave 1: lanes A, B, C and D build until 21:48; gate until 22:20, 3 review calls and 1 fix call.
- 22:20 site-hardening, waves 1 and 2, wave 2: lanes E and F build until 22:35; gate until 23:32, 4 review calls and 2 fix calls.
Each row is a lane: build, then review and fix-round bars, with agent minutes and tokens. Building took 17 of wave 1's 49 minutes. Wave 2's lanes built in 15 minutes; the gate and two fix rounds took 57 more. Every event goes into the tracker as it happens, so another chat can resume the run.
What do the gates catch?
Seams: each lane tests its part against its own idea of the others. Five checkpoints stand before "shipped"; two are scripts, three are agents.
| Checkpoint | When | Stops |
|---|---|---|
| preflight | before wave 1 | an ungrilled plan, a thin brief, a file owned twice, overlap with another run |
| verification | each wave | a lane with no verification record or an unmet QA item |
| review gate | each wave | stack reviewers, plus security when prompts or tools changed |
| ship-check | last wave | any plan requirement unmet |
| close-out | shipped flip | a missing or stale verdict, a skeletal report; no --force |
A Critical is fixed and re-reviewed before the next wave; warnings go onto one checklist task. Reviewers run at the top model tier: one weaker than the builder passes everything. Every gate, with its source, is on the mow docs page.
Site-hardening's gates found no Critical. Wave 1 had 7 warnings, one fix round, and 1 warning left; wave 2 had 3 and two fix rounds, and its last re-review closed both warnings still open. Wave 2's latency lane, E, took seven agent calls in 1:12:19, and each review found something the call before had left:
| Call | Found or did |
|---|---|
| 1. Builder | a k6 load test with a latency budget, seen failing first |
| 2. Backend review | the test measured a site with 1 post |
| 3. Security review | traces sent each visitor's IP, browser and full query string |
| 4. Fix round 1 | stripped those, tested at 20 posts; 3 speed fixes took home p95 from 575-745 ms to 21-29 ms |
| 5. Re-review | the new cache raced: 500 errors under concurrent requests |
| 6. Fix round 2 | closed the race; every new test guard mutation-checked |
| 7. Re-review | closed; then 25 of 25 runs on Linux |
The speed fix made the race; a gate that only re-checked the first findings would have shipped it. A test written with its fix shares its blind spot, so each guard is checked by breaking the code and watching it go red (A guard you never saw fire isn't a guard). The same run, for a reader new to agent teams: Supervisor agents catch what worker agents miss.
How is a lane kept from running forever?
With a turn cap per agent type. Claude Code has no time or token limit per subagent, only maxTurns, so the harness sets it from measured runs (2026-10-05):
| Agent type | Runs | p50 | p99 | Max | Cap |
|---|---|---|---|---|---|
| tdd-builder | 427 | 48 | 212 | 272 | 320 |
| backend-reviewer | 129 | 11 | 51 | 69 | 80 |
| llm-sec-review | 43 | 12 | 46 | 46 | 70 |
The cap is the larger of the longest run and 1.5 × p99, rounded up to ten. No measured run would have been cut. A capped lane has no verification record, so the gate refuses it. It gets one resume with a fresh cap; capped again, it goes to a narrower lane or to me. A hook refuses the 4th identical failing call.
Where does a human step in?
At five fixed points, for trade-offs and accounts the agents can't hold:
- The grill, in
/mow ready. Site-hardening's wrote 7 decisions and 7 requirements before any lane ran. - Foreground lanes, like G's cloud routine.
- A merge conflict: the ownership check failed, so no agent resolves it.
- A third failed fix round on one finding.
- A lane capped twice.
The build log gets a line each time I correct, unblock, decide or rescue. The run that built this site has 9: 7 decisions, one correction, one design change. The other four runs have none yet, so the runs page shows "-", not a 0 that looks like a count.
What does a run cost?
Checking cost more than building. The five runs behind this site cost $169.22 at API list prices, priced from their session logs:
| Phase | Cost | Share |
|---|---|---|
| Plan (the chat before wave 1) | $1.02 | 0.6% |
| Build lanes | $49.29 | 29.1% |
| Review | $45.44 | 26.9% |
| Fix rounds | $23.21 | 13.7% |
| Coordinate (the orchestrating chat after wave 1) | $50.25 | 29.7% |
A run cost $19.45 to $49.36. Site-hardening's rework, fix cost over build cost, was 80%, the highest of the five; the lowest was 19%. Coordination costs as much as building; my unmeasured guess is the orchestrator re-reading briefs and findings each wave. The review share bought the trace leak and the cache race.
Where does mow lose?
mow is expensive and intricate. The skill is 1,878 lines across six files; its gate package is 28 Python modules and 9,267 lines (counted 2026-11-03). On 8 October several open defects sat in the gates themselves, so a run could stop itself. The limits below are from that date.
| Limit | What it costs |
|---|---|
| Wave maps are often serial | a shared deploy file forces lanes apart; the speed-up is below the lane count |
| Worktrees aren't full environments | no virtualenv or ignored env files; in one project every lane test errored at import while lanes still reported coverage |
| Turn caps are per agent type | a docs lane and a multi-module build share one 320-turn cap |
| Overlap is checked per repo | two runs in different repos editing one shared file aren't caught |
| Claude Code first | Cursor has no worktree isolation, so lanes share one tree |
One-file work skips mow. Briefs, a grill and two reviewers per wave pay only when several todos would collide.
Summary
- A lane agent knows only its brief. Put decisions, file ownership and scope traps in it; refuse a brief that says "see plan".
- Decide parallelism from file sets. When two todos touch one file, run them in order.
- Gate the whole wave and re-review every fix. In site-hardening the gate found a privacy leak, and the re-review found the race the fix made.
- Expect checking to cost more than building: 41% against 29% over five runs.
- Start with 3 to 5 todos and a review gate after each wave, before any parallel lanes. I'd do this first: the gate caught the defects.
- Add the thin-brief check next, as a script that refuses to write the briefs.
- Log every time you step in, so your time sits next to the token cost.