{
  "id": 22708002,
  "title": "The most useful thing we built for parallel agents doesn't touch their context. It merges their branches before they do.",
  "url": "https://urgent.news/2026/11/30/the-most-useful-thing-we-built-for-parallel-agents-doesnt-touch-their",
  "topic": "ai",
  "section": "AI",
  "published": "2026-11-30T02:10:41.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/kentkandiforge/the-most-useful-thing-we-built-for-parallel-agents-doesnt-touch-their-context-it-merges-their-2joh"
  },
  "original_language": null,
  "account": "Our most useful development for parallel agents comes not from merging their context, but rather from merging their branches. In my work, I run numerous agents simultaneously on various issues, each operating within its own worktree across multiple repositories and runtimes. The agents become aware of a collision only after attempting to merge or, even worse, after the merge has already occurred. To address this problem, we developed a shadow merger that operates in the background. Whenever an agent's branch receives a new commit, the shadow merger merges all open branches in the project using local git, identifying which files and functions collide. Whenever a change occurs, the shadow merger sends out a one-line notice to each affected worktree, allowing the agent to address the issue before it becomes problematic. This mechanism also facilitates failure relay, where an agent encountering a specific failure informs other agents about it within minutes. This enables agents to learn from each other's experiences as they work, rather than only learning after a merge failure. Additionally, the system provides live overlap information, allowing agents to know when another live session in any runtime is working in the same area. By tracking the problems caught before merging, we found that the shadow merger's notices and the code watcher's findings on unmerged commits led to zero issues before their implementation. In the first week after implementation, the system caught 79 problems. This approach contrasts with my initial expectations, where adding more knowledge to agents' context largely went unnoticed. The key to successful agent development, it seems, is focusing on watching the actual code and work, and delivering specific, relevant information at the right moment. The outcome of this approach, such as the success of fixes post-merge, remains to be seen. I will be discussing this topic at Build Stuff 2026, a conference held in Vilnius on December 15th, 2026, titled \"The Age of Agency.\" The event will take place on Wednesday at 2 PM in Zeta 2, and will last for 45 minutes. Attendees are encouraged to engage with the speaker, and there is a special offer of 20% off tickets for those who mention \"AgeOfAgency.\"",
  "summary": "A short update from the series on evidence-based agentic development. I run a lot of agents at once: several issues in flight, each in its own worktree, across six repositories, in more than one runtime, sometimes on more than one machine. Each agent sees only its own branch. They find out they collided when the second one tries to merge, or worse, after it has. So we built a shadow merger .…",
  "summary_source": "publisher",
  "key_points": [
    "Shadow merger merges branches before agents attempt to merge, preventing collisions.",
    "Shadow merger sends one-line notices to worktrees, allowing agents to address issues early."
  ],
  "editors_take": null,
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}