Four agents, each in its own laneClaude in lane moscow changes login() in auth.ts. Cursor in lane berlin starts drifting toward it to call login() the old way. Lanekeeper flags R2 SIGNATURE_BREAK between the two lanes, Cursor moves back into its lane, and the clash is marked resolved before merge.R2 SIGNATURE_BREAK · login()resolved before mergeclaude · moscow · auth.tscursor · berlin · app.tscodex · lima · db/claude · paris · api/routes.ts

Your agents write correct code. Together, they break it.

Lanekeeper keeps every AI coding agent in its lane. It warns them before they collide, and checks their work together before it merges.

npm i -g lanekeeper
lk init
Read the quick start

Version 0.2.0 is out on npm. Single-file binaries and Homebrew follow with the first signed release.


Two lanes, both green, main broken

Claude works in moscow and adds an option to login(). Cursor works inberlin and writes a report that calls login(admin). Each passes its own tests. Git merges them without a conflict. The build on main fails.

moscow src/auth.ts
export interface User {
  id: string;
}

export function login(user: User, opts: { remember: boolean }): boolean {
  return user.id.length > 0;
}
berlin src/report.ts
import { login, type User } from "./auth";

export function weeklyReport(admin: User) {
  if (!login(admin)) throw new Error("not signed in");
}
What Cursor is told about the call (in block mode, before the write)
Lanekeeper: The signature of `login` is changing in lane `moscow`; the new use at `src/report.ts:4` in lane `berlin` uses the old form.
Rule: R2 SIGNATURE_BREAK (high, confidence 0.95)
Symbol: `ts:src/auth.ts#login`
`moscow`: `src/auth.ts:5`
`berlin`: `src/report.ts:4`
Details: The new signature of `login` in lane `moscow`: `function login(user: User, opts: { remember: boolean }): boolean`.
Do this: Update the use of `login` at `src/report.ts:4` to its new signature, or coordinate with lane `moscow` before merging.

How it works

  1. It sees every lane

    Each git worktree or branch an agent works in is a lane. A small local daemon watches all of them, including uncommitted changes.

  2. It maps changes to code

    Changes are read as functions, classes, types, routes, migrations and dependencies, not just lines. TypeScript, JavaScript and Python in depth; Go, Rust, Java, Kotlin, Swift, Ruby, C# and PHP by name.

  3. It tells the agent while it works

    Claude Code hooks, Cursor hooks and an MCP server put the clash in front of the agent right after the edit, with the other lane's new signature and what to do. In block mode the breaking edit is refused before it is written.

  4. It checks pull requests together

    The GitHub Action compares each pull request with the other open ones, confirms real conflicts with an in-memory merge, suggests a merge order, and, given your build and test commands, builds the risky pairs together.

What it catches

Ten rules, measured on 187 clash scenarios, 33 of them taken from open-source projects.

RuleWhenSeverity
R2 SIGNATURE_BREAKOne lane changes a function's signature while another lane adds a call in the old form.high or warn
R3 REMOVED_DEPENDENCYOne lane removes or renames something another lane starts using.high
R1 SAME_SYMBOLBoth lanes change the same function, class or type in different ways.high or warn
R4 TEXT_OVERLAPBoth lanes edit the same lines of a file; confirmed with an in-memory git merge.high or warn
R5 CLAIM_CONFLICTA lane edits code another lane has claimed for a refactor.high or warn
R6 TYPE_SHAPE_CHANGEOne lane changes the shape of a type or class another lane starts using.warn
R7 MIGRATION_COLLISIONBoth lanes add database migrations with the same number, or interleaved on the same table.high or warn
R8 DEPENDENCY_DIVERGENCEBoth lanes change the same dependency to different versions, or both change a lockfile.warn
R9 ROUTE_OR_ENV_COLLISIONBoth lanes add the same route, or the same environment variable with different values.warn
R10 COMBINED_FAILURETwo pull requests build and test fine alone but fail together.high

Every rule with examples

Your code never leaves your machine

Stays on your machine

  • Source code, diffs and file contents
  • What your agents are asked to do
  • The analysis itself: parsing, rules and clash detection run locally and in your CI

Leaves only with Team sync

  • Symbol names and file paths
  • Content hashes and argument counts, to compare lanes
  • Clash records: rule, severity, lanes and line numbers

Works with the agents you already run

Claude Code
Hooks before and after every edit, or the plugin. Session briefs on start.
Cursor
Hooks on writes, the MCP server, and a project rule.
Codex
The MCP server and an AGENTS.md section.
GitHub
An Action that comments, annotates, and fails a pull request that breaks another.

Free on your machine

Pay when lanes on different machines need to see each other. The hosted Team service isn't open yet.

PlanForPrice
FreeEverything on one machine, and the GitHub Action on public repositories.$0
TeamLanes on different machines see each other, live. The hosted service isn't open yet.$24 / developer / month
EnterpriseControl over what agents may touch, and proof of what they did. Parts are still being built.Custom

Compare plans

Questions

Does my code go to your servers?

No. Everything runs on your machine and in your own CI. Team sync, if you turn it on, sends symbol names, file paths, hashes and clash metadata, never source.

Is this an AI code reviewer?

No. Lanekeeper is deterministic: the same changes always give the same clashes. It doesn't call a language model and doesn't comment on code quality.

What if the daemon is down or slow?

Agents carry on. Hooks have a 250 ms budget and say nothing if the daemon doesn't answer; the next edit catches up.

Do I need to change how I use git?

No. Lanekeeper never touches your index, stash, refs or config. It reads worktrees and makes its own private snapshots.

What does it cost for a solo developer?

Nothing. Everything that runs on one machine is free, and so is the Action on public repositories.