A lightweight coordination layer that keeps your AI sessions safe. No more silent overwrites. No more lost work. Every agent stays in its lane.
Two agents edit the same file at the same time. One saves. The other saves on top of it. No warning, no merge, no conflict marker. The first agent's changes vanish silently. You don't find out until the build breaks.
Each AI session holds a short-lived lease on its region of the codebase. If another agent tries to touch that region, it waits. When the lease releases, the next agent proceeds. Automatic. Invisible. No work is ever lost.
AgentCollision runs as a lightweight Go daemon on your machine. It grants short-lived leases on regions of your codebase, turning chaos into an orderly queue.
Hooks fire locally over a Unix socket in under a millisecond. Your agents never slow down. They just stop stepping on each other.
Every design decision optimizes for one thing: your code never gets silently overwritten.
Hooks talk to a local Unix socket. No network round-trip. Your agents never notice the coordination happening.
State lives in a local SQLite database. No cloud, no accounts, no telemetry by default. Your code stays yours.
Claude Code, Cursor, Windsurf, Cline, Aider, and anything that supports MCP. One layer for your entire stack.
Define subsystems in .agentcollision/subsystems.toml with glob patterns. Commit it. Share it. Done.
If an agent crashes or goes silent, its lease expires automatically. No stale locks. No manual cleanup required.
Apache 2.0 licensed. Free for individuals, teams, and enterprises. Inspect every line. Fork if you want.
One command via Homebrew, or download the binary directly. Available on macOS, Linux, and Windows.
Run ac init in your repo. It creates a subsystems file and installs hooks into your AI tools automatically.
Launch as many AI coding sessions as you want. AgentCollision coordinates them silently in the background.
AgentCollision is free and open source. A team-sync tier is coming soon for cross-machine coordination. Leave your email to get early access.