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 initVersion 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.
export interface User {
id: string;
}
export function login(user: User, opts: { remember: boolean }): boolean {
return user.id.length > 0;
}
import { login, type User } from "./auth";
export function weeklyReport(admin: User) {
if (!login(admin)) throw new Error("not signed in");
}
How it works
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.
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.
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.
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.
| Rule | When | Severity |
|---|---|---|
| R2 SIGNATURE_BREAK | One lane changes a function's signature while another lane adds a call in the old form. | high or warn |
| R3 REMOVED_DEPENDENCY | One lane removes or renames something another lane starts using. | high |
| R1 SAME_SYMBOL | Both lanes change the same function, class or type in different ways. | high or warn |
| R4 TEXT_OVERLAP | Both lanes edit the same lines of a file; confirmed with an in-memory git merge. | high or warn |
| R5 CLAIM_CONFLICT | A lane edits code another lane has claimed for a refactor. | high or warn |
| R6 TYPE_SHAPE_CHANGE | One lane changes the shape of a type or class another lane starts using. | warn |
| R7 MIGRATION_COLLISION | Both lanes add database migrations with the same number, or interleaved on the same table. | high or warn |
| R8 DEPENDENCY_DIVERGENCE | Both lanes change the same dependency to different versions, or both change a lockfile. | warn |
| R9 ROUTE_OR_ENV_COLLISION | Both lanes add the same route, or the same environment variable with different values. | warn |
| R10 COMBINED_FAILURE | Two pull requests build and test fine alone but fail together. | high |
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.
| Plan | For | Price |
|---|---|---|
| Free | Everything on one machine, and the GitHub Action on public repositories. | $0 |
| Team | Lanes on different machines see each other, live. The hosted service isn't open yet. | $24 / developer / month |
| Enterprise | Control over what agents may touch, and proof of what they did. Parts are still being built. | Custom |
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.