The coordination layer for AI coding agents. Predictive file locking that prevents merge conflicts before they happen.
$npm i -g preclaimHow it works
npm i -g preclaimpreclaim initOne command sets up auth, creates your project, and installs Claude Code hooks.
Your AI agent edits files normally. Preclaim intercepts writes and atomically locks each file — invisible until it matters.
Multiple agents, one codebase. Conflicts are prevented at the source — not resolved after the fact.
Features
claim_file()Database-level file locking via Supabase RPC. One file, one agent, guaranteed.
failOpen: trueNetwork down? Development continues. Preclaim never blocks your workflow.
git commit →Commit triggers unlock. Crashed sessions expire gracefully via TTL.
subscribe()See active locks across all sessions. Live updates via Supabase Realtime.
PreToolUseFirst-class hooks integration. Installs in one command, works invisibly.
preclaim initOne command creates your org, project, and auth. No forms, no waiting.
In action