LaneGate – Git-native worktree orchestrator for AI agents LaneGate, a new open-source git-native worktree orchestrator, coordinates AI coding agents like Claude, Codex, Ollama, and aider by giving each ticket its own git worktree, enforcing file-level locks, and requiring approved reviews before merging to main. It re-runs pre_merge guards against the merged result to catch conflicts that pass in isolation, and it does not sandbox agents at the OS level in V1. The tool is designed to prevent half-baked merges and edit collisions in multi-agent repositories. Parallel lanes. Protected gates. Every agent gets a lane. Nothing ships without a gate. LaneGate coordinates coding agents Claude, Codex, Ollama, aider, etc. working on one repo: every ticket gets its own git worktree, declared touches lock the files a ticket owns so a second agent can't claim them, and nothing reaches main without an approved review plus whatever guards you configure. Tickets are Markdown files in your repo. No SaaS, no external project state. You want this if you've watched an agent merge something half-baked and found out two commits later, or you've had two agents clobber each other's edits in the same checkout. The part most tools skip: pre merge guards re-run against the merged result , not just the ticket's branch. Two tickets that each passed in isolation but break once combined get caught here — LaneGate resets main to its pre-merge commit and routes the ticket back to review instead of leaving a broken commit behind. LaneGate doesn't plan or implement. Your agents and IDE do that; LaneGate runs the gate around them. Security note.V1 provides git-level isolation and diff inspection. It does not sandbox agents at the OS level. Agents run as host processes. See Security Status and Known Limitations before running it on repositories you care about. - keep agent work as local Markdown tickets - run each task in its own git worktree - reduce edit collisions with explicit file-level touches - block out-of-scope or sensitive-file changes from auto-merge - run configured safeguards before completion or merge - pause for human review before anything lands on main By default, LaneGate commits ticket specs and review verdicts to git as they change. Tickets are a git-native artifact, not local-only state. Executor transcripts, logs, cooldowns, locks, and worktrees stay local under .lanegate/ . Set commit status changes: false to opt back into fully zero-footprint local state. MCP is built in. Run lanegate mcp to expose LaneGate commands as native tools for any MCP-compatible agent Claude, Cursor, etc. , with no shell commands required. .lanegate/tickets/TICK-007.md ← source of truth YAML frontmatter │ ▼ lanegate next ← agent asks: what should I work on? lanegate start TICK-007 ← agent claims it; worktree + branch created ... agent works in .lanegate/worktrees/tick-007/ ... lanegate complete TICK-007 lanegate review TICK-007 lanegate merge TICK-007 ← branch → main, worktree removed lanegate promote production ← staged deploy with guard/pre/post hooks Main command groups: | Group | Commands | |---|---| Scoping: record work as tickets and ask an executor to infer touches / close criteria | create , analyze | Execution: who works on what without colliding | board , next , start , complete , review , merge | Delivery: how merged code reaches environments | promote , pipeline-status , flag | That's the happy path. For the full state machine — every status, what blocks each transition, where a ticket lands when a guard or review fails, and how many review rounds run — see docs/lifecycle.md /sudheerdvn/lanegate/blob/main/docs/lifecycle.md . LaneGate is experimental software for coordinating coding agents on a local repo. Before letting it run without review, read this section. What LaneGate does to limit agent scope: - Runs each agent in a dedicated git worktree, one per ticket - Enforces a touches list: files committed outside the declared scope route to needs review - Hard-blocks writes to CI/CD configs, dependency manifests Python, JS/Node, Rust, Go, Java/Gradle, Ruby, PHP, .NET , and credential-shaped files .env , .pem , secrets. - Scans ticket text for prompt injection signals before dispatch - Optionally runs gitleaks, semgrep/bandit, pip-audit, npm-audit, composer-audit, and bundler-audit on agent-produced diffs - Runs configured safeguards such as tests or scripts before complete and merge What LaneGate does NOT do: - MCP is not a sandbox. lanegate mcp exposes ticket lifecycle commands as native tools, and an agent with access to those tools can claim tickets, create branches, and trigger merges. The MCP server authenticates nothing beyond what the MCP client config enforces. - Host executors inherit host permissions. Agents Claude Code, aider, Codex run as the invoking OS user with full filesystem and network access. There is no bwrap, seccomp, or container wrapping. - The file-based lock is single-machine, single-checkout. Two separate clones on two machines can both claim the same ticket. - File-level locks are not semantic dependency analysis. Two tickets can touch different files and still break each other through shared APIs, imports, types, schemas, or runtime behavior. Treat touches as a practical coordination boundary, not a proof of correctness. Recommendation: use --human-review final when running lanegate run on any repository with production code. This stops after implementation and requires lanegate merge