<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Upwan Singh</title>
    <description>The latest articles on DEV Community by Upwan Singh (@upwansingh).</description>
    <link>https://dev.to/upwansingh</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4274352%2Fdba322f2-e763-4fbd-b7e6-5fd2835a0746.png</url>
      <title>DEV Community: Upwan Singh</title>
      <link>https://dev.to/upwansingh</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/upwansingh"/>
    <language>en</language>
    <item>
      <title>Ten rules for catching conflicts between coding agents</title>
      <dc:creator>Upwan Singh</dc:creator>
      <pubDate>Mon, 30 Nov 2026 14:28:43 +0000</pubDate>
      <link>https://dev.to/lanekeeper/ten-rules-for-catching-conflicts-between-coding-agents-58gd</link>
      <guid>https://dev.to/lanekeeper/ten-rules-for-catching-conflicts-between-coding-agents-58gd</guid>
      <description>&lt;p&gt;Lanekeeper compares every pair of lanes (git worktrees or branches) in a repository and reports clashes: places&lt;br&gt;
where one agent's changes would break another's. It does this with ten rules, each covering a different kind of&lt;br&gt;
cross-lane conflict.&lt;/p&gt;

&lt;p&gt;Every rule is deterministic — the same changes always produce the same result. No language model is involved.&lt;br&gt;
The rules are measured against 187 clash scenarios, 33 of them derived from real changes in open-source projects&lt;br&gt;
including FastAPI, Requests, Hono, Express and Zod.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Key takeaways:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Ten rules cover the most common cross-agent conflicts: same-symbol edits, signature changes, removed definitions, merge conflicts, claimed regions, type changes, migrations, lockfiles, routes, and combined CI failures.&lt;/li&gt;
&lt;li&gt;Always-high rules: R3 (removed definition used elsewhere) and R10 (PRs that fail together). Rules R1, R2, R4, R5 and R7 are high or warn depending on context. R6, R8 and R9 are always warn.&lt;/li&gt;
&lt;li&gt;Every rule is deterministic and measured against real open-source changes. High-severity precision is 100% on the realistic subset.&lt;/li&gt;
&lt;li&gt;Languages: TypeScript, JavaScript and Python get deep analysis; Go, Rust, Java, Kotlin, Swift, Ruby, C# and PHP get name-level detection capped at warn.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The rules
&lt;/h2&gt;

&lt;h3&gt;
  
  
  R1 — Same symbol modified
&lt;/h3&gt;

&lt;p&gt;Both lanes change the same function, class or type in different ways. Neither is necessarily wrong on its own, but&lt;br&gt;
the combination may not make sense — two different rewrites of the same logic. Severity: high or warn.&lt;/p&gt;

&lt;h3&gt;
  
  
  R2 — Incompatible signature change
&lt;/h3&gt;

&lt;p&gt;One lane changes a function's signature (adds a required parameter, removes one, changes the return type). Another&lt;br&gt;
lane adds a call that matches the old signature. Severity: high when the call would fail; warn when the call might&lt;br&gt;
still work (for example, the new parameter has a default value).&lt;/p&gt;

&lt;h3&gt;
  
  
  R3 — Removed definition used elsewhere
&lt;/h3&gt;

&lt;p&gt;One lane removes or renames a function, class, type, or constant. Another lane starts using it. Severity: high.&lt;/p&gt;

&lt;p&gt;This is the most dangerous clash. The removed symbol no longer exists, but the new code expects it. Git merges&lt;br&gt;
silently because the two changes are in different files.&lt;/p&gt;

&lt;h3&gt;
  
  
  R4 — Textual merge conflict predicted
&lt;/h3&gt;

&lt;p&gt;Both lanes edit the same lines of a file; Lanekeeper confirms with an in-memory &lt;code&gt;git merge-tree&lt;/code&gt;. Severity:&lt;br&gt;
high or warn depending on the overlap.&lt;/p&gt;

&lt;h3&gt;
  
  
  R5 — Claimed region edited
&lt;/h3&gt;

&lt;p&gt;A lane edits code that another lane has claimed for a refactor (via &lt;code&gt;lk claim&lt;/code&gt;). Severity: high or warn. This&lt;br&gt;
rule is local only — it doesn't apply in CI.&lt;/p&gt;

&lt;h3&gt;
  
  
  R6 — Breaking type or shape change
&lt;/h3&gt;

&lt;p&gt;One lane changes the shape of a type, interface, or return value (removes a field, changes a field's type).&lt;br&gt;
Another lane uses the old shape. Severity: warn, because static analysis of types across files is approximate.&lt;/p&gt;

&lt;h3&gt;
  
  
  R7 — Competing migrations or timestamps
&lt;/h3&gt;

&lt;p&gt;Both lanes add a database migration with the same sequence number, or both add an entry to a file that's ordered&lt;br&gt;
by timestamp or version. Severity: high or warn.&lt;/p&gt;

&lt;h3&gt;
  
  
  R8 — Lockfile conflict
&lt;/h3&gt;

&lt;p&gt;Both lanes change the same dependency lockfile (&lt;code&gt;package-lock.json&lt;/code&gt;, &lt;code&gt;yarn.lock&lt;/code&gt;, &lt;code&gt;pnpm-lock.yaml&lt;/code&gt;, &lt;code&gt;Cargo.lock&lt;/code&gt;,&lt;br&gt;
and others). Lockfile merges are notoriously fragile: git merges the JSON or YAML, but the result may silently&lt;br&gt;
drop one side's packages. Severity: warn.&lt;/p&gt;

&lt;h3&gt;
  
  
  R9 — Route or endpoint collision
&lt;/h3&gt;

&lt;p&gt;Both lanes add or modify the same HTTP route, API endpoint, or the same environment variable with different&lt;br&gt;
values. Severity: warn.&lt;/p&gt;

&lt;h3&gt;
  
  
  R10 — Combined CI failure
&lt;/h3&gt;

&lt;p&gt;Two pull requests each pass CI alone but fail when merged together. This is the strongest signal — the conflict&lt;br&gt;
is confirmed by an actual build — but it requires the GitHub Action and a build command. Severity: high.&lt;/p&gt;

&lt;h2&gt;
  
  
  How they're measured
&lt;/h2&gt;

&lt;p&gt;Each rule is tested against positive scenarios (a clash should fire) and negative scenarios (similar-looking&lt;br&gt;
changes that are not a clash). Precision and recall are reported per rule and per severity tier. A release doesn't&lt;br&gt;
ship if high-severity precision drops below 95%.&lt;/p&gt;

&lt;p&gt;The realistic scenarios come from real changes in open-source projects. For example, a FastAPI scenario where one&lt;br&gt;
branch renames a dependency-injection function and another branch adds a route that uses it. These are harder than&lt;br&gt;
synthetic tests because real code has aliases, re-exports, and patterns the rules weren't written for.&lt;/p&gt;

&lt;p&gt;The full benchmark report is generated by &lt;code&gt;pnpm bench&lt;/code&gt; and published with every release.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the rules don't do
&lt;/h2&gt;

&lt;p&gt;The rules compare code structure, not intent. They don't know whether two agents are working toward the same goal&lt;br&gt;
or different goals. A rule can tell you that lane A removed &lt;code&gt;processPayment&lt;/code&gt; and lane B calls it; it can't tell&lt;br&gt;
you whether that's a problem or whether lane A is about to add a replacement that lane B should wait for.&lt;/p&gt;

&lt;p&gt;The rules also don't cover every language equally. TypeScript, JavaScript and Python get deep analysis (imports,&lt;br&gt;
arity, keyword arguments). Go, Rust, Java, Kotlin, Swift, Ruby, C# and PHP get name-level analysis, so their&lt;br&gt;
clashes are capped at warn severity. Adding deeper analysis for more languages is ongoing work.&lt;/p&gt;

&lt;p&gt;See the &lt;a href="https://lanekeeper.dev/docs/rules" rel="noopener noreferrer"&gt;rules reference&lt;/a&gt; for the full specification of each rule, with examples.&lt;/p&gt;

&lt;h2&gt;
  
  
  Further reading
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://lanekeeper.dev/blog/agents-breaking-each-others-code" rel="noopener noreferrer"&gt;Your agents are breaking each other's code&lt;/a&gt;: the problem Lanekeeper solves.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://lanekeeper.dev/blog/running-multiple-ai-coding-agents" rel="noopener noreferrer"&gt;How to run multiple AI coding agents&lt;/a&gt;: the worktree pattern and coordination strategies.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://lanekeeper.dev/docs/quick-start" rel="noopener noreferrer"&gt;Quick start&lt;/a&gt;: install and see your first clash in two minutes.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://lanekeeper.dev/docs/claude-code" rel="noopener noreferrer"&gt;Claude Code integration&lt;/a&gt;: warn mode, block mode and the plugin.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://lanekeeper.dev/docs/mcp" rel="noopener noreferrer"&gt;MCP server&lt;/a&gt;: how agents discover clashes through MCP tools.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://lanekeeper.dev/blog/ten-rules-for-catching-agent-conflicts" rel="noopener noreferrer"&gt;lanekeeper.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>git</category>
      <category>devtools</category>
      <category>staticanalysis</category>
    </item>
    <item>
      <title>Run multiple AI coding agents without breaking your code</title>
      <dc:creator>Upwan Singh</dc:creator>
      <pubDate>Mon, 30 Nov 2026 14:22:24 +0000</pubDate>
      <link>https://dev.to/lanekeeper/run-multiple-ai-coding-agents-without-breaking-your-code-1ilo</link>
      <guid>https://dev.to/lanekeeper/run-multiple-ai-coding-agents-without-breaking-your-code-1ilo</guid>
      <description>&lt;p&gt;The setup is becoming standard: open three terminals, start an agent in each one, give each a task. One refactors&lt;br&gt;
authentication, another adds the billing page, a third writes tests. Each works in its own git worktree so their&lt;br&gt;
files don't collide on disk.&lt;/p&gt;

&lt;p&gt;This gets you three times the output — until two of them merge and something breaks that neither one broke alone.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Key takeaways:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Git worktrees give each agent its own directory and branch, preventing disk-level file conflicts but not semantic ones.&lt;/li&gt;
&lt;li&gt;Git's merge is line-based: a renamed function in one branch and a call to it in another merge silently and break at runtime.&lt;/li&gt;
&lt;li&gt;Three strategies work: assign non-overlapping areas, run combined checks in CI, or detect conflicts while agents work.&lt;/li&gt;
&lt;li&gt;Lanekeeper detects conflicts while agents work, using deterministic rules, without sending code anywhere.&lt;/li&gt;
&lt;li&gt;Properties to look for: deterministic, fast, local, fail-open, and agent-neutral.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  The worktree pattern
&lt;/h2&gt;

&lt;p&gt;Git worktrees let multiple branches exist as directories on the same machine, sharing one &lt;code&gt;.git&lt;/code&gt; history. Every&lt;br&gt;
major coding agent supports them: Claude Code creates them with &lt;code&gt;--worktree&lt;/code&gt;, Cursor opens them as separate&lt;br&gt;
windows, Codex works in whatever directory you point it at.&lt;/p&gt;

&lt;p&gt;The basic setup:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git worktree add ../auth   feature/auth
git worktree add ../billing feature/billing
git worktree add ../tests  feature/tests
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each agent sees its own files, makes its own commits, and doesn't interfere with another agent's work-in-progress.&lt;br&gt;
This is the right starting point. But it doesn't prevent the agents from making changes that conflict at a higher&lt;br&gt;
level than lines of text.&lt;/p&gt;
&lt;h2&gt;
  
  
  Where git stops helping
&lt;/h2&gt;

&lt;p&gt;Git's merge algorithm compares lines. When two branches edit the same lines of the same file, git reports a&lt;br&gt;
conflict. When they edit different files, or different parts of the same file, git merges them silently.&lt;/p&gt;

&lt;p&gt;That silence is the problem. Consider:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Agent A renames &lt;code&gt;processPayment()&lt;/code&gt; to &lt;code&gt;createCharge()&lt;/code&gt; in &lt;code&gt;billing.ts&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Agent B writes new code in &lt;code&gt;reports.ts&lt;/code&gt; that calls &lt;code&gt;processPayment()&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Git merges these without complaint. The function no longer exists, the call points at nothing, and the error shows&lt;br&gt;
up on main after both branches have landed.&lt;/p&gt;

&lt;p&gt;Other variants:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Two agents both add database migration &lt;code&gt;0042&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;One agent changes a function's signature from two parameters to three; another adds a call with two&lt;/li&gt;
&lt;li&gt;Two agents modify the same function in different directions, and whichever merges second wins&lt;/li&gt;
&lt;li&gt;Both agents add the same dependency at different versions to the lockfile&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;CI doesn't catch these either, because CI tests each branch against the base independently. It never builds the&lt;br&gt;
combination before one of them is on main.&lt;/p&gt;
&lt;h2&gt;
  
  
  Three strategies that work
&lt;/h2&gt;
&lt;h3&gt;
  
  
  1. Assign non-overlapping areas
&lt;/h3&gt;

&lt;p&gt;The simplest prevention: tell each agent which files and modules it owns. If the auth agent only touches &lt;code&gt;src/auth/&lt;/code&gt;&lt;br&gt;
and the billing agent only touches &lt;code&gt;src/billing/&lt;/code&gt;, their changes can't conflict.&lt;/p&gt;

&lt;p&gt;This works until it doesn't. Real codebases have shared code — utility functions, types, configuration, database&lt;br&gt;
schemas — that multiple features need to change.&lt;/p&gt;
&lt;h3&gt;
  
  
  2. Run a combined check in CI
&lt;/h3&gt;

&lt;p&gt;Instead of testing each PR alone, test pairs of open PRs together. For each pair, merge them into a temporary&lt;br&gt;
branch, build, and run the test suite. If the combination fails but each PR passes alone, you've found a&lt;br&gt;
cross-branch conflict.&lt;/p&gt;

&lt;p&gt;This is what Lanekeeper's &lt;a href="https://lanekeeper.dev/docs/github-action" rel="noopener noreferrer"&gt;GitHub Action&lt;/a&gt; does. It compares each pull request with every other&lt;br&gt;
open one, confirms real conflicts with an in-memory merge, and when given build and test commands, builds the risky&lt;br&gt;
pairs together. When a pair breaks, the Action comments on both PRs with the conflict and suggests which one to&lt;br&gt;
merge first.&lt;/p&gt;
&lt;h3&gt;
  
  
  3. Detect conflicts while agents work
&lt;/h3&gt;

&lt;p&gt;The strategies above catch problems at merge time or in CI. But the cheapest time to catch a conflict is while the&lt;br&gt;
agent is still writing code — before the edit lands.&lt;/p&gt;

&lt;p&gt;A local daemon can watch every worktree, parse each lane's changes into code-level facts (this function was renamed,&lt;br&gt;
this call was added, this migration number is taken), and compare lanes in real time. When a conflict appears, the&lt;br&gt;
agent hears about it immediately through a hook or an MCP tool call, and can adapt its approach.&lt;/p&gt;

&lt;p&gt;This is what &lt;a href="https://lanekeeper.dev/docs/quick-start" rel="noopener noreferrer"&gt;Lanekeeper&lt;/a&gt; does. It runs ten deterministic rules across every lane, covering&lt;br&gt;
renamed-but-used symbols, signature changes, lockfile conflicts, overlapping migrations, environment variable&lt;br&gt;
collisions, and more. The analysis runs locally and never sends source code anywhere. Each hook call has a 100 ms&lt;br&gt;
budget; on a developer's Mac it measured about 60 ms at the 95th percentile.&lt;/p&gt;
&lt;h2&gt;
  
  
  What to look for in a solution
&lt;/h2&gt;

&lt;p&gt;Whether you use Lanekeeper or build your own coordination, the properties that matter:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Deterministic&lt;/strong&gt;: the same changes should always produce the same answer. AI-based detection
introduces randomness that makes debugging impossible.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fast&lt;/strong&gt;: if the check takes longer than the agent's edit, agents will ignore it or the hook will time out.
Under 100 ms is the target for in-editor detection.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Local&lt;/strong&gt;: sending source code to a third party for conflict analysis defeats the security model of local agents.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fail-open&lt;/strong&gt;: if the detector is down or slow, agents should keep working. A broken safety net is worse than
no safety net if it blocks all work.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Agent-neutral&lt;/strong&gt;: the solution should work with any coding agent, not just one vendor's tool.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  Getting started
&lt;/h2&gt;

&lt;p&gt;Install Lanekeeper and initialize it in a repository:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm i -g lanekeeper
&lt;span class="nb"&gt;cd&lt;/span&gt; your-repo
lk init
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Create worktrees, start your agents, and run &lt;code&gt;lk status&lt;/code&gt; to see the lane map. When two lanes clash, every agent&lt;br&gt;
in a clashing lane is told what happened and what to do about it.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://lanekeeper.dev/docs/quick-start" rel="noopener noreferrer"&gt;quick start&lt;/a&gt; covers the full setup in about two minutes. The&lt;br&gt;
&lt;a href="https://lanekeeper.dev/docs/rules" rel="noopener noreferrer"&gt;rules reference&lt;/a&gt; explains every kind of conflict Lanekeeper detects.&lt;/p&gt;

&lt;h2&gt;
  
  
  Further reading
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://lanekeeper.dev/blog/agents-breaking-each-others-code" rel="noopener noreferrer"&gt;Your agents are breaking each other's code&lt;/a&gt;: why git and CI miss cross-agent conflicts.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://lanekeeper.dev/blog/ten-rules-for-catching-agent-conflicts" rel="noopener noreferrer"&gt;Ten rules for catching agent conflicts&lt;/a&gt;: how each rule works and how they're measured.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://lanekeeper.dev/docs/concepts" rel="noopener noreferrer"&gt;Concepts&lt;/a&gt;: lanes, clashes, claims and the merge plan.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://lanekeeper.dev/docs/claude-code" rel="noopener noreferrer"&gt;Claude Code integration&lt;/a&gt;: warn mode, block mode and the plugin.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://lanekeeper.dev/docs/github-action" rel="noopener noreferrer"&gt;GitHub Action&lt;/a&gt;: combined CI for conflicting pull requests.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://lanekeeper.dev/blog/running-multiple-ai-coding-agents" rel="noopener noreferrer"&gt;lanekeeper.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>git</category>
      <category>tutorial</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Your agents are breaking each other's code</title>
      <dc:creator>Upwan Singh</dc:creator>
      <pubDate>Mon, 30 Nov 2026 14:21:48 +0000</pubDate>
      <link>https://dev.to/lanekeeper/your-agents-are-breaking-each-others-code-g2n</link>
      <guid>https://dev.to/lanekeeper/your-agents-are-breaking-each-others-code-g2n</guid>
      <description>&lt;p&gt;Running several coding agents at once is now normal. One works on the login flow, another on reports, a third on&lt;br&gt;
the billing migration, each in its own git worktree. Each one finishes, its tests pass, its pull request is green.&lt;/p&gt;

&lt;p&gt;Then two of them merge and main is broken.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Key takeaways:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Parallel AI coding agents can break each other's code even when each passes its own tests and git merges without a conflict.&lt;/li&gt;
&lt;li&gt;Git compares lines, not intent: a changed function signature in one branch and a call to the old signature in another merge cleanly and break at runtime.&lt;/li&gt;
&lt;li&gt;Lanekeeper solves this with ten deterministic rules that compare lanes in real time, without calling a language model. It is measured against 187 clash scenarios (33 from open-source projects) and publishes precision and recall per rule with every release.&lt;/li&gt;
&lt;li&gt;The analysis runs locally; source code never leaves the developer's machine.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  A merge without a conflict
&lt;/h2&gt;

&lt;p&gt;Here is the smallest version of it. In one worktree, Claude adds an option to &lt;code&gt;login()&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;login&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;User&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;opts&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;remember&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;boolean&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;boolean&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In another, Cursor writes a weekly report that signs the admin in:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nf"&gt;login&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;admin&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"not signed in"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Git merges these without complaint: the two branches touched different files. Each branch's tests pass, because&lt;br&gt;
each branch is consistent with itself. The type error only exists in the combination, and nothing ever builds the&lt;br&gt;
combination before it lands.&lt;/p&gt;

&lt;p&gt;Other versions of the same problem: one agent deletes &lt;code&gt;formatDate()&lt;/code&gt; while another starts using it. Two agents both&lt;br&gt;
add migration &lt;code&gt;0042&lt;/code&gt;. Two agents rewrite the same function in different directions, and whichever merges second&lt;br&gt;
quietly wins.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why the usual tools miss it
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Git&lt;/strong&gt; compares lines. It reports a conflict when both sides edit the same lines, and otherwise merges happily. A&lt;br&gt;
changed signature in one file and a new call in another are not a conflict to git.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CI&lt;/strong&gt; tests each branch against the base, one at a time. It never sees branch A and branch B together until one of&lt;br&gt;
them is already on main.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The agents&lt;/strong&gt; can't see each other. Each one works in its own directory with its own context. Even a careful agent&lt;br&gt;
has no way to know that another lane is about to change the function it is calling.&lt;/p&gt;

&lt;p&gt;People working in parallel cover this gap by talking: "I'm changing &lt;code&gt;login()&lt;/code&gt;, hold off." Agents don't.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Lanekeeper does
&lt;/h2&gt;

&lt;p&gt;Lanekeeper is the conversation the agents aren't having.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A daemon on your machine watches every worktree and turns each lane's changes into code facts: this function's
signature changed and now takes two arguments; this lane adds a call with one.&lt;/li&gt;
&lt;li&gt;Ten deterministic rules compare the lanes. When lane A's change would break lane B's new code, that is a clash,
with a severity, the exact location, and one instruction.&lt;/li&gt;
&lt;li&gt;The agent hears about it while it is working. In Claude Code a hook puts the clash in front of the agent right
after the edit, so it can fix its call; in block mode the breaking edit is refused before it is written, with the
other lane's new signature as the reason. Cursor and Codex get the same information through hooks and an MCP
server.&lt;/li&gt;
&lt;li&gt;In CI, the GitHub Action compares each pull request with the other open ones, suggests a merge order, and, given
your build and test commands, builds the risky pairs together.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Your code stays on your machine. Lanekeeper doesn't send it anywhere and doesn't use a language model to guess;&lt;br&gt;
the same changes always give the same answer. When it isn't sure, it says nothing, because a tool that cries wolf&lt;br&gt;
gets turned off.&lt;/p&gt;

&lt;h2&gt;
  
  
  How we measure it
&lt;/h2&gt;

&lt;p&gt;Every rule is checked against 187 clash scenarios (33 derived from real code in open-source projects including&lt;br&gt;
FastAPI, Requests, Hono, Express and Zod; 154 synthetic). Each scenario stages two lanes and says which clashes&lt;br&gt;
should and should not appear. High-severity precision and recall are both 100% on the realistic subset. We publish&lt;br&gt;
precision and recall per rule with every release, and a release doesn't ship if high-severity precision drops&lt;br&gt;
below 95%.&lt;/p&gt;

&lt;p&gt;Lanekeeper is free on your own machine and works with Claude Code, Cursor and Codex.&lt;br&gt;
&lt;a href="https://lanekeeper.dev/docs/quick-start" rel="noopener noreferrer"&gt;Try the quick start&lt;/a&gt;: it takes about two minutes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Further reading
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://lanekeeper.dev/docs/quick-start" rel="noopener noreferrer"&gt;Quick start&lt;/a&gt;: install and see your first clash in two minutes.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://lanekeeper.dev/docs/rules" rel="noopener noreferrer"&gt;Rules reference&lt;/a&gt;: the ten rules and what each one catches.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://lanekeeper.dev/docs/concepts" rel="noopener noreferrer"&gt;Concepts&lt;/a&gt;: lanes, clashes, claims and the merge plan.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://lanekeeper.dev/blog/running-multiple-ai-coding-agents" rel="noopener noreferrer"&gt;How to run multiple AI coding agents&lt;/a&gt;: a practical guide to the worktree pattern.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://lanekeeper.dev/blog/ten-rules-for-catching-agent-conflicts" rel="noopener noreferrer"&gt;Ten rules for catching agent conflicts&lt;/a&gt;: how each rule works and how they're measured.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://lanekeeper.dev/blog/agents-breaking-each-others-code" rel="noopener noreferrer"&gt;lanekeeper.dev&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>git</category>
      <category>devtools</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
