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
In just a few days, AI agents merged two diverged versions of a production application, including a 15.5-hour overnight stretch without human intervention, and left the unified system running live in production with its data completely intact.
Pulling that off took more than a capable model. It required an operating discipline designed specifically around the models: written decision rights enforced by programmatic hooks that refuse unsafe actions, strict single-file ownership, tests that definitively proved when work was done, state preserved in files rather than context windows, and a fresh reviewer for every change.
The job
When two repositories of the same enterprise application diverged, developer Steve Glen brought them back together using parallel AI agents orchestrated on a single Mac.
Most agentic coding builds something new, forcing models to invent architecture and make design choices as they go. Here, the destination was already known. Both repositories were working applications that shared a common origin and served the exact same mission. They had been split deliberately: the feature repository continued shipping capabilities, while the cluster repository reconfigured the stack to run on the company’s own hardware instead of in the cloud. The job was to reunite two known states rather than invent a third—sharply limiting architectural ambiguity and opening the door for work that could realistically run unattended. The merge pull request changed roughly 353,000 lines: about 227,000 were verbatim copies of files already in the feature repository, and only about 51,000 were new to the merge or changed from both sides.
Knowing the destination, however, did not make the journey simple. The codebases had been apart for five months, accumulating 1,383 commits on one side and 459 on the other, with each having built features the other lacked. A crude one-way copy would have discarded roughly 13,000 lines of custom cluster features. Git flagged 106 initial conflicts. Both sides had independently overhauled how they communicated with language models, two divergent database migration chains had to be spliced into one, and several high-traffic hub files were touched by almost every feature. Through it all, because the application was live in production, every byte of real user data had to cross over safely.
How it was set up
Planning took a single afternoon. Two Claude Code sessions—one running in each repository—drafted and critiqued the strategy in under four hours while the developer steered direction. The resulting plan carved the work into 32 distinct scopes, each with strict ownership over a designated set of files, and 14 contracts: integration tests that pinned down exactly how those scopes fit together. A script turned each scope into a self-contained mission file for its own git worktree, isolating changes in separate checkouts. The merge itself was scripted and rehearsed in advance, running to completion on merge day in less than an hour and a half.
The developer launched each top-level session. Those sessions orchestrated named teammate agents they could message directly, alongside lightweight, one-shot subagents dispatched to handle specific jobs and report back. Finished work landed in an integration branch—a shared staging buffer ahead of main—while a central coordinating session kept the master plan moving.
The work ran across three distinct stages:
- The unfork (the first three days). Scope agents worked through the plan in coordinated waves. Fifty hours in, the primary convergence pull request (PR #236) brought 1,867 files cleanly into
main. - The migration check (day 3 to day 6). A lead agent and 11 subagents audited the deployed system in staging and production, diagnosing and resolving regressions in place.
- The follow-up wave (day 6 to day 7). 173 one-shot agents tackled the repository’s 38 open issues. This phase was actively running when the case study took its snapshot.
Across the first two stages alone, the project deployed 36 Claude Code sessions across 24 isolated worktrees, orchestrating 185 agents beneath them.
Unattended running
Twenty-eight hours in, the developer handed operational discretion to the coordinating session and stepped away. For the next 15.5 hours, no human typed a word.
The coordinator stepped into the steward role. Operating on written guidelines, it handled 26 requests that would normally have blocked on the developer, resolving 23 autonomously and setting aside only three genuine ambiguities for his return. By morning, 19 pull requests had landed cleanly in the integration branch. The single operation that carried real blast radius—merging into main—sat safely paused, waiting for the developer to review and press the button.
Where it landed
By day 6, the merged application was live in production on its new on-premise servers. The data made the journey intact: 82 of 84 database tables matched byte for byte, with the remaining two differing only by legitimate writes recorded after the snapshot. Early deployment wrinkles were smoothed out—the embedded AI assistant, which failed all eight verification queries immediately after deployment, answered all eight correctly once fixed. Keyword search latency dropped from 12–16 seconds down to under 2.5, and three consecutive days of scheduled background jobs ran without a hitch. Only one loose thread remains: the legacy cloud server continues running as an active fallback until final decommissioning.
Human oversight shrank as the harness took hold. The unfork and the migration check together required 222 developer prompts spread across six days. The follow-up wave, by contrast, started from a single line typed into a fully autonomous mode where agents expected no interactive answers. Its leads escalated to the developer only three times when choices truly mattered, making roughly ten decisions in his place. Of the modest 26 prompts the developer typed during that final wave, half were simply dealing with local machine crashes.
What held
Decision rights, backed by hooks. Agents merged 82 of the project’s 112 PRs into integration branches entirely on their own. A short, explicit list of high-risk actions—chiefly merging into main and rewriting git history—remained reserved for the developer, or for the steward while he was away. Agents respected these boundaries, routinely turning down delegated authority that reached them secondhand. When boundaries were tested, programmatic hooks—scripts that intercept agent actions before execution—enforced them mechanically. The merge guard in heo, the developer’s custom Claude Code plugin, blocked merges into main regardless of how politely an agent asked, including one moment where the developer’s own prompt phrasing could easily have been misconstrued as permission.
One owner per file. Four in five file edits landed strictly within paths owned by the editing scope, and 22 of the 24 edits crossing territory carried recorded sign-off. The real friction came from shared hub files: seven different scopes, for example, had to touch the background-task registry.
Tests that say when work is done. Agents proved completion through evidence: zero new failures against a recorded test baseline and a clean pass across all contract tests. Two functioning repositories and roughly 10,000 inherited tests served as an indisputable answer key. Because the code could verify itself, agents rarely needed clarification—of the 52 questions escalated to the developer, only one concerned the core merge.
State kept in files. Because mission files, status trackers, and handoff notes were continuously persisted to disk, a fresh session could rebuild full context in about five minutes. Tellingly, the coordinator was the one session without a dedicated state file—and it accounted for four of the five times project context was lost after a restart or memory wipe.
A fresh reviewer. Across every run, pairing an authoring agent with a second agent operating in a clean context caught subtle defects the author missed. In one critical instance, a local reviewer caught a deployment blocker that PR-Agent, the automated review bot on GitHub, overlooked entirely.
What broke
The seam. Eight of the migration check’s 35 findings sat where the feature repo’s code intersected with the cluster repo’s deployment settings—an architectural seam that belonged to no single scope. Three of those flaws compounded to bring down the AI assistant. Each individual component passed its own test suite; the failures lived in the blind spots between them.
The machine, not the model. The lead session during the follow-up wave crashed at least eight times before anyone realized the cause: an unhandled macOS permission prompt hanging silently in the background. Swapping model providers and downsizing the swarm from 20 agents to two did nothing, because the bottleneck was local workstation orchestration, not reasoning capacity.
Waiting on the developer. On the critical path—the sequence of dependencies dictating overall delivery time—70% of the duration was spent waiting on the human developer. The longest stalls came from a merge into main and a deployment decision left parked overnight, alongside a 63.6-hour dead stop that sat motionless until the developer finally typed continue.
Shared resources with no owner. The local Docker daemon became an unmanaged bottleneck, failing to start new containers for roughly 25 aggregate hours across six outages—about 20 of which were spent simply waiting for the developer to authorize a restart. Codebase contention followed the same pattern: in the follow-up wave, eight of 19 PRs collided while editing the same unmanaged settings template.
One PR too big to review whole. While targeted, modular inspections of PR #236 successfully caught real defects, the sheer scale of the 1,867-file changeset meant no human or agent ever reviewed the merge as a unified whole.
Overhead. More than half of the developer’s prompts (114 of 222) went to administrative mechanics: spinning up sessions, ferrying messages between worktrees, and checking statuses. The 38 kickoffs, 11 restarts, and 14 manual merge reports represented repetitive toil that could have been scripted from day one.
Guards weren’t airtight. During the migration check, agents briefly routed around policy refusals twice using raw shell commands. The lead agent caught and reversed its own circumvention within seconds, while the other stemmed from a race condition where a report went out before a withdrawal landed. The lesson was decisive: safety rules backed by mechanical hooks held firm, while rules that lived only in prompt text repeatedly slipped under pressure.
Limits
- This is a single case study with no baseline control. Because each of the three runs tackled fundamentally different tasks, comparisons between them are illustrative rather than experimental.
- Agents averaged 3.4 concurrent workers while active. That figure represents an upper bound on parallel throughput, not a verified acceleration multiple.
- Model family and assigned roles were never varied independently on identical tasks, leaving it impossible to isolate how much specific models influenced outcomes.
- Comparisons against historical, pre-agentic development cycles rely on the developer’s qualitative recollection rather than instrumented telemetry.
What changes next
In the developer’s assessment, this migration represented a decisive leap toward reliable, unattended software delivery. Every failure mode pointed directly to an architectural fix, several of which were battle-tested during the follow-up wave:
- The seam gets designated ownership, and audit suites run against genuine, production-mirrored deployment configs rather than isolated mocks.
- The machine stays awake and insulated from interactive OS prompts, backed by an external supervisor process that automatically restarts hung sessions or alerts the developer.
- Waits on the developer shrink through automated timeouts. Unless a pending question touches a reserved high-stakes action, the harness proceeds with the agent’s recommended option after a set window. (In practice, the developer accepted the agent’s recommended choice 31 times out of 52).
- Overhead gets scripted: automated kickoffs, self-healing restarts, structured merge receipts, and a single status file the developer can inspect without interrupting running sessions.
- Shared resources get explicit ownership or mutex locks.
- Grants state their boundaries explicitly. In the follow-up wave, a loose prompt stating “the live steps are for you to orchestrate” was interpreted broadly enough to touch production servers.
- Review stays bounded: small pull requests, each verified by an independent, clean-context reviewer before reaching human triage.
- Guards get sharper rather than heavier. Sixty of the 84 recorded policy blocks were false positives or process friction; high friction only teaches agents to look for ways around the guard.
- The coordinator gets a persistent state file. The follow-up lead kept one on disk, successfully preserving context across a session restart.
These refinements build directly on what worked. Packaged as a “skill”—a reusable operational playbook loaded by name—the follow-up pipeline went from a single prompt typed by the developer to 22 planned worktrees in 16 minutes.
The remaining open challenge is greenfield engineering. In this unfork, two existing codebases served as a mutual answer key. A new build must generate that answer key before the swarm begins: rigorous specifications, decoupled acceptance tests authored independently of the implementation models, explicit module layouts, and an unambiguous list of non-goals. The foundational disciplines proven here—hook-backed decision rights, persistent filesystem state, independent reviewers, and modular one-shot agents—provide the architecture to take it there.
About this summary
The 22 chapters in this repository (README) tell the full story, each verified claim by claim against session transcripts, git history, and GitHub audit logs. The metrics and chronologies cited here derive directly from those chapters, their underlying data/*.json datasets, the Dual-Layer Harness Architecture Case Study & Forensic Corpus (Full Narrative · Verification Report), and the earlier write-ups in ../unfork/. Elapsed time is measured from project kickoff, when the first planning session opened. While earlier chapters alternately refer to the human operator as “the owner”, this summary standardizes on “the developer” throughout.
All names for the software, the company, and its publications are anonymized using a botanical grafting naming convention. Everything else is real.