Agentic software engineering·
Running the Unfork with Parallel Agents
Two versions of software diverged for five months, one developer merged them using parallel AI agents.
185agents in 36 sessions
An empirical field report on multi-agent governance and unattended delivery
Date: 2026-09-28, completed 2026-09-29
Status: Point-in-time study, written from the session transcripts after the convergence
(PR #236, merged 24 September), the S8 deploy (25 September) and the post-migration audit
(25–28 September). The migration check closed at 12:59 MT on 28 September
(chapter 20). Its remaining work was filed as GitHub
issues and is being worked in a follow-up wave of worktrees.
Chapter 21 is a snapshot of that wave at 16:57 MT on
29 September, while it was still running.
Provenance: Copied from the Rootstock repo (rootstock), branch
06-migration-documentation. The earlier unfork write-ups it builds on are alongside it in
../unfork/. Files in the Rootstock repo are cited as plain text; see
Names and links below.
Audience: readers of a case study on how one developer used many Claude Code sessions,
agent teams and subagents to merge two diverged repositories.
Short version: Executive summary.
Dual-layer harness study & forensic audit: Dual-Layer Harness Architecture & Forensic Corpus (Full Narrative · Verification Report).
Evidence Ledger & Architectural Blueprint: Transcript Evidence Ledger & Harness Architecture Specification · Forensic Transcript Findings · How the agents handed work to each other: two traced examples.
Diagrams: 21 PNGs in images/, one or more per chapter, built from images/diagrams/build.py (flow, state and swimlane diagrams) and images/diagrams/charts.py (charts drawn from data/*.json) and rendered by images/diagrams/render.py.
Names and links. This study and the write-ups in
../unfork/use code names: Orchard is the product, Scion the feature repo, Rootstock the cluster repo it was merged into, Grove the company and Almanac a client publication. Paths, branch names, identifiers and URLs were renamed to match, so some references will not resolve as written:
- The repos
FrostyTeeth/rootstockandFrostyTeeth/sciondo not exist under those names. The real repos are private. Their files are cited as plain text, for example “docs/plans/unfork-parallel-scopes.md(Rootstock)”.- Quoted agent messages in
data/keep some renamed PR and issue links, such asFrostyTeeth/rootstock/pull/236. They are left as transcript text.- Paths, branches and identifiers that contain
scion,rootstock,orchardorgrovediffer from the originals in the same way. Everything else is as it was.These links are renamed, not lost. The author keeps a private map from every renamed name, path and link back to the original, and can supply any file, line or PR the study refers to. Ask.
The unfork merged Scion (scion, the feature repo) into Rootstock
(rootstock, the Mac mini cluster repo). Its plan is
docs/plans/unfork-parallel-scopes.md (Rootstock). Two earlier
write-ups tell the story from the plan and the git history:
How the Unfork Was Planned and
What the Unfork Taught. This study goes one level
down, to the agents themselves: who ran where, what each was told, how they talked, and
when they stopped for a human. It quotes the transcripts directly: prompts, replies,
reasoning and tool calls.
The study has five parts:
-
Part I answers the six questions it was commissioned with.
-
Part II adds ten further perspectives:
- cost;
- the owner’s workload;
- rework;
- guards;
- the message network;
- plan fidelity;
- memory;
- parallelism;
- theory;
- security.
It also adds lifecycle diagrams for opening and closing agents and worktrees.
-
Part III covers the critical path and the Docker containers.
-
Part IV closes the story: how the migration check ended and handed off, and the follow-up issue wave that picked up the remaining work.
-
Part V compares how agent work was scoped, split and communicated across the unfork, the migration check and the follow-up wave.
Every chapter has been verified claim by claim against the transcripts, git and GitHub (How the claims were checked).
Part I · The six questions
| # | Question | Chapter |
|---|---|---|
| 1 | How many agents and subagents were used, and where and when? | 01 · Agents, where and when |
| 2 | How did the worktrees and agents coordinate and communicate, (a) when things went to plan, (b) when they didn’t? | 02 · Coordination |
| 3 | How was the plan made in the first place? | 03 · Making the plan |
| 4 | What changed as the project was developed? | 04 · What changed |
| 5 | When were subagents created, and what context was provided to them? | 05 · Subagent dispatch and context |
| 6 | What ran autonomously, when did agents stop for human input, and when did one agent decide in place of the human another agent wanted? | 06 · Autonomy and human input |
The answers in brief
- How many agents? Answer: 36 top-level sessions in 24 worktrees, and 185 agents under them. 90 of the 185 were named teammates, 95 were one-shot subagents, and 22 were spawned by other subagents. All ran on one iMac, on Opus. The coordinating worktree,
unfork-plan, spawned 68 of the 185. - How did the worktrees and agents coordinate and communicate? Answer: Files first, messages second. The coordinator agent acted as a switchboard, and the developer copy/pasted messages by hand between the two repos. Shared files where agents input their states.
- How was the plan made in the first place? Answer: The developer set the goal and the direction, custom skills framed the problem, and each session critiqued the plan ad hoc against its own repo’s code. The Scion session framed the problem and wrote revisions 1–3. The Rootstock session critiqued them against Rootstock’s real code and turned the prose into a registry of 32 scopes, 14 contracts and a mission generator. It found four defects in the plan that were then updated.
- What changed as the project was developed? Answer: The plan itself, the way agents were run, and who made decisions. The plan was reworked around the few serial steps, agents moved from interactive sessions to teammates under a coordinator, and the coordinator took over decisions the plan had left to the developer. Two owner defaults changed, three placeholder pipelines were retired, and a production-access rule was relaxed.
- When were subagents created, and what context was provided to them? Answer: When the work was suitable to split into separate pieces. Each subagent got a prompt, files it was told to read first, and messages from its lead while it ran. Prompts moved from long ones written for one agent to short ones that pointed at generated files, plus rules added after incidents. Five generations of prompt are quoted in full or in part.
- What ran autonomously, and when did agents stop for human input? Answer: Agents ran most of the work on their own, but not policy decisions, shared resources or
main. Agents asked the owner 52 questions. While the owner was away, the coordinator acted as steward and answered 23 of the 26 requests that agents had framed as the owner’s: “plan with Steve”, “Or is it a decision for Steve?”, a Clause 1 install, a data classification, ending an owner-level exemption. It recorded 3 for the owner, and six items went back to the owner in all. In one case a coordinator decision was lost in a restart, and when asked again the owner chose the opposite.
Addendum (28 September)
Every chapter now ends with an addendum on the migration check, 25–28 September, up to 11:58 MT on 28 September. The main points:
- The fix PRs merged and RAG works. The owner merged #269 and #270 at 11:47–11:48 MT. This corrects “still open” in chapters 9, 18 and 19. RAG went from 0 of 8 answers to 8 of 8, and keyword search from 12–16 s to 0.35–2.2 s.
- The check had 11 agents under one lead: five read-only streams, two fixers, two reviewers, a plan reviewer and a fork (chapter 1). Its 77 messages formed a pure star (chapter 11).
- Local reviews caught what PR-Agent didn’t. Two
heo:code-reviewerteammates, run just before the deploy, found a migration that would have stopped the web container. PR-Agent left no code suggestions. One defect, a Grafana mount point, escaped both and cost about 5 minutes of monitoring (chapter 9). - The lead decided for the owner three times:
- it answered two teammates’ requests for the owner’s go-ahead;
- it deployed the fixes before the owner merged them;
- it kept the merges and a new database credential for the owner (chapter 6).
- The owner’s part was small. It was two prompts, three merges and one standing rule,
which a hook steered into
CLAUDE.mdrather than memory (chapters 8 and 13). - Guards: there were three new blocks. One was a new type, the memory intercept. Two refusals were briefly routed around with Bash, which qualifies chapter 10’s “never bypassed” (chapter 10).
- The critical path is 142.3 hours to 11:58 MT, still 70% owner wait. The merge the owner was asked for took minutes, not a night (chapter 18).
Sources and counts: data/addendum-2026-09-28.json.
Checks: data/verification/addendum-2026-09-28.json.
Part II · New perspectives
| # | Perspective | Chapter | In one line |
|---|---|---|---|
| 7 | Cost, measured | 07 · Cost and tokens | About $950 at API list prices (an API-equivalent figure, not what the owner paid). Cache reads were 43% of it, and idle teammates re-writing their cache cost one dollar in eight. |
| 8 | The owner’s workload | 08 · Owner workload | 222 prompts in five working days: 28% were session mechanics and 22% new direction. A median 5.5 sessions were in flight whenever the owner typed. |
| 9 | Rework and escaped defects | 09 · Rework and defects | No reverts. 29% of scope commits came after the scope’s first landing, and 92 more commits went into the S7 gate and the review branches. The escaped defects were seams between Scion code and Rootstock cluster config. |
| 10 | Guards as governance | 10 · Guards and hooks | 84 blocked tool calls: 23 correct policy stops, 60 friction, and none that stopped real harm. No agent bypassed any of those 84. In the migration check, two other refusals were briefly routed around with Bash (addendum). |
| 11 | The message network | 11 · Message network | Hub and spoke, with one hub per stage. S-PLAN handled 36% of cross-session traffic, and without it the network falls into five pieces. 86% of messages cite an artifact. |
| 12 | Plan fidelity | 12 · Plan fidelity | 79% of file–scope pairs were in owned paths, measured against the final registry, and 22 of the 24 edits to other scopes’ paths were approved. The split held for domain code but not for the Celery scheduler files. |
| 13 | Memory and restarts | 13 · Memory and restarts | 11 compactions and 2 restarts. The scope sessions rebuilt their state from files; what was lost belonged mostly to the coordinator, which had no file of its own. |
| 14 | Parallelism in practice | 14 · Parallelism | 3.4× effective speed-up (about 76 agent-hours in 22 active hours). Wide waves ran near 6× and gates near 2×. Message rate tracked the coordinator’s involvement, not headcount. |
| 15 | Theory lenses | 15 · Theory lenses | Five lenses: Mintzberg, Thompson, Perrow, principal–agent and stewardship, and Galbraith. This chapter is the study’s interpretation. |
| 16 | Security and exposure | 16 · Security and exposure | Two real exposures: a GitHub token printed before the unfork began, and a key prefix printed by a teammate’s grep. Neither reached a subagent prompt, and no guard stopped either from being printed. |
| + | Lifecycle diagrams | 17 · Lifecycle: delegating and closing | Worktrees had a scripted start and a conventional end. Agents had a careful start and almost no end. What carried work forward was what had been written to git. |
Part III · Critical path and infrastructure
| Chapter | Question | In one line |
|---|---|---|
| 18 · Critical path | What were the critical paths in development time, was that the path the plan predicted, and how could it be shortened next time? | The path was 141.9 elapsed hours to 28 Sep, 11:32 MT. Agents worked for 40.3 of them, and for 99.1 (70%) the path waited on the owner. The plan got the order of the technical chain right, but ranked owner availability and final gates last among its blockers, and those two set the length. |
| 19 · Docker containers | What was built, changed and removed in Docker throughout the migration? | 732 Docker commands, 181 of them changing state. Nearly all ran on the shared dev-Mac daemon, which was disrupted six times. The cluster changed only in three deploy windows, with no rm or down. The droplet was read-only until the owner relaxed the rule, and nothing on it was removed. |
Part IV · Closing and the follow-up wave
| Chapter | Question | In one line |
|---|---|---|
| 20 · Closing the migration check | How did the migration check end, and how was its remaining work handed off? | It ended at 12:59 MT on 28 Sep with production back on main and deploy verification passing. 20 issues carried the remaining work: 6 defects, 4 decisions for the owner, 6 ops tasks, 2 guards or tests and 2 process fixes. They went to 15 follow-up worktrees. Critical path to the close: 143.3 h elapsed, 70% of it waiting on the owner. |
| 21 · The follow-up issue wave | How was the follow-up work run, and what carried over from the unfork? | A snapshot to 16:57 MT on 29 Sep, with the wave still running. One owner prompt, /heo:issue-resolve-all --auto, grouped 29 issues into 22 worktrees. Two lead sessions spawned 173 one-shot subagents, with no teammates. There were 19 PRs, each reviewed locally, 6 of them merged by the owner. It cost $236 API-equivalent (Sonnet 5.5 share estimated) and ran at a 6.5× effective speed-up. One live step on the droplet (an nginx reload) may have gone against the droplet rule, which the owner had loosened on 25 Sep. |
Part V · Scope, splitting and communication
| Chapter | Question | In one line |
|---|---|---|
| 22 · Scope, splitting and communication | How was the line between agents drawn in each of the three splits, did it hold, and what crossed it? | The unfork split by path ownership and waves, the check by system, and the wave by investigated cause. Ownership held: 79% of file–scope pairs were in owned paths, and 22 of the 24 unsanctioned crossings were approved. The strain came from hub files (the Celery registry, the env templates), which many features touch. The unfork refereed them through S-PLAN. The wave had no referee, so 8 of its 19 PRs edit cluster.env.example. A third of the 588 messages were change requests or decisions. Messages per agent went 2.9, 7.0, then 0.22: up in the migration check, then down in the wave, whose one-shot subagents can’t be messaged. |
How the claims were checked
Every chapter went through a verification pass after it was written, and each has a
claim-by-claim record in data/verification/. A chapter’s record
lists each claim with its line, its evidence and a verdict: supported, corrected, softened,
removed, or paraphrase (not verbatim).
- Quotes. Every blockquote, inline quote and code line was matched mechanically against a corpus of every string in every transcript and every git commit message, after normalizing whitespace, markdown and local paths. Fragments that failed the match were found in the raw JSONL and corrected, or turned into unquoted paraphrase. The few that still fail were checked by hand, and each is listed with the reason, usually a pretty-printed JSON record or a quote that spans a markdown link.
- Numbers. Headline figures were re-derived with independent scripts, and the discrepancies were corrected in the chapters.
- Totals across chapters 01–22 and the 28 Sep addendum (23 records):
- 494 claims checked: 390 supported, 83 corrected, 16 softened and 2 removed. Four quotes were replaced because they were not verbatim.
- 403 quotes checked, 24 of them fixed.
- Cross-checks between chapters caught what single-chapter passes missed. Example: chapter 02’s verifier corrected a claim to “S-PLAN didn’t restart Docker”. Chapter 19’s command log showed that it did, one minute later, and chapter 02 now says so.
- Interpretation is labelled. Chapter 15’s theory lenses, and the prompt classes in chapter 08, are the study’s own reading of the evidence. Their rule sets and grounding excerpts are published.
Key numbers
| Top-level Claude Code sessions (incl. 9 short restarts) | 36 |
| Worktrees with a session | 24 (23 in Rootstock, 1 in Scion) |
| Agents spawned by sessions or other agents | 185 |
| … named teammates / one-shot subagents / spawned by a subagent | 90 / 95 / 22 |
| Owner prompts typed into unfork sessions, 22–28 Sep | 222 |
Questions agents put to the owner (AskUserQuestion) |
52 in 36 calls |
| … answered with the agent’s recommended option | 31 |
SendMessage calls (cross-session / in-team) |
588 (160 / 428) |
… with the formal [unfork-xreq] header |
27 |
PRs opened 22–25 Sep (merged into unfork/* / into main) |
112 (82 / 24) |
| Longest stretch with no owner prompt, while agents worked | 15 h 33 m (steward period) |
| Steward: requests framed as the owner’s / decided / recorded for the owner | 26 / 23 / 3 |
| API-equivalent token cost (not what the owner paid) | about $950 |
| Agent-hours / active wall-clock hours / effective speed-up | 76 / 22.5 / 3.4× |
| Guard blocks / that stopped real harm | 84 / 0 |
| Compactions / session-resetting restarts | 11 / 2 |
| Worktrees created / removed (24 Sep, owner-approved) | 31 / 31 |
| Teammates sent a shutdown request | 0 of 90 |
| Critical path to the close of the migration check (elapsed / active / owner wait) | 143.3 h / 40.9 h / 70% |
| Issues carrying the remaining work at the close / follow-up worktrees | 20 / 15 |
| Follow-up wave to 29 Sep 16:57 MT: subagents / PRs / merged / API-equivalent cost | 173 / 19 / 6 / $236 |
Method
- Sources. The Claude Code transcripts under
~/.claude/projects/for every worktree used by the unfork: the Scion planning worktree,01-cluster-ready-sept22,unfork-plan, everyunfork-*scope worktree, and02-migration-check-spet25. Each session’ssubagents/*.jsonland.meta.jsonwere included. Claims were checked against Rootstock’s git history and GitHub PR list. - Extraction. A script indexed all 279 transcript files (session and subagent): times,
worktrees, owner prompts (including prompts queued mid-turn), every
Agent,SendMessageandAskUserQuestioncall, and each subagent’s metadata. Five research agents then read the transcripts by phase and extracted verbatim excerpts, each tagged with its source file, JSONL line and UTC time. Counts in this study come from the index; quotes come from the excerpts, spot-checked against the transcripts. - Times are Mountain Time (MT, UTC−6) in the chapters and UTC in the JSON.
- Quotes are verbatim, trimmed with “…” or “[…]”. Owner prompts keep their typos. Local
paths are shortened to
~/, and scratchpad paths to…/. Excerpt IDs (E14,B64,D3A-049,X027, or named IDs such assteward-sr7-final-A-widened) indexdata/excerpts.json. - Naming. “The owner” is the developer who ran the project, called Steve in agent
messages. S-PLAN is the coordinating session in
.trees/unfork-plan, which called itself “team-lead” to its teammates and “steward” after the owner left.
Limits
- Reasoning text is mostly not stored. Of 374 thinking blocks in the busiest coordinator transcript, 24 contain text. Where this study quotes “reasoning”, it is those blocks or the agents’ own explanations to the owner.
- The transcripts hold credentials. The earlier write-up deliberately didn’t read them for that reason. This study did read them, but it reproduces no secret, key fragment, token or remote URL, and the JSON files were scanned for these before publishing.
- Sessions outside these worktrees (repo-root sessions on unrelated tasks) are excluded. Nine five-minute restart sessions are counted but hold almost no work.
- Activity in the transcripts is not proof of effect. Where an outcome matters (a merge, a revert, a file’s final bytes), it was checked in git.
Data files
| File | Contents |
|---|---|
data/case-study.json |
Structured answers to the six questions, with the key numbers and links to excerpts |
data/agents-inventory.json |
Every session and every subagent: phase, worktree, parent, name, type, kind, times, tools used |
data/owner-prompts.json |
Every owner prompt (typed or queued), 22–28 Sep |
data/agent-questions-to-owner.json |
All 36 AskUserQuestion calls, with options and answers |
data/messages.json |
All 588 SendMessage calls, by channel |
data/steward-decisions.json |
Requests framed as the owner’s, and how the steward handled each |
data/excerpts.json |
The verbatim excerpts behind the chapters, with source and line |
data/sample-prompts.json |
Full text of representative subagent prompts, one per generation |
data/timeline.json |
Merged timeline of the main events across all sessions |
data/prs.json |
PRs created 22–25 Sep, with base branch and merge time |
data/cost-and-tokens.json |
Token usage and API-equivalent cost per session and agent, with prices and method |
data/owner-workload.json |
Classification of every owner prompt, question latency, hourly counts |
data/rework-and-defects.json |
Landings, post-landing commits, unmerged PRs, defect origins, claims that didn’t hold |
data/guards-and-hooks.json |
All 84 blocked tool calls, with guard, message, next action and classification |
data/message-network.json |
The message graph, centrality metrics, undelivered messages |
data/plan-fidelity.json |
Files changed per scope against the registry’s ownership, overlaps, contracts |
data/memory-and-restarts.json |
Compactions and restarts, and what each lost or kept |
data/parallelism.json |
Active intervals per transcript, 15-minute concurrency bins, per-phase speed-up |
data/security-exposure.json |
Credential-pattern counts and categories only, with no values |
data/lifecycle.json |
Worktree and agent lifecycles, closing paths, inputs for later work |
data/critical-path.json |
Critical-path segments, owner waits, slack and the predicted path |
data/docker-actions.json |
Every Docker command with host, target and result; lifecycles and incidents |
data/addendum-2026-09-28.json |
The migration-check addendum to 11:58 MT, 28 Sep: counts and sourced excerpts |
data/closing.json |
Close-out of the migration check: the handoff table of issues, the final state, critical path to the close |
data/issue-wave.json |
The follow-up issue wave: agents, PRs, issues, cost and timeline, to 16:57 MT on 29 Sep |
data/scope-and-communication.json |
Chapter 22: the second boundary audit and each crossing’s cause, message intents by phase, and file overlap between the wave’s PRs |
data/verification/ |
Claim-by-claim verification record for each chapter |