The safety layer between your AI agent and your codebase.
Interlock hooks into the agent's tool-call path and checks every shell command, file write, and network action against deterministic safety rules, a scoped mandate, and a small local judgment model before it runs.
Works with Claude Code · Codex · Kiro · Cursor · Gemini CLI · Copilot CLI · Windsurf · OpenCode · any MCP client
Gates every tool call
Allow, ask, or block — before execution. The decision happens on the agent's tool-call path, not after the damage is done.
Probes tool results
Catches prompt injection and credential leaks in output, flipping dangerous results to warnings or withholding them.
Records everything
Every decision with its findings, policy hash, and timing, in a local append-only log. `interlock report` shows what was stopped; DynamoDB is optional.
Local-first
Runs on your laptop. No account, no cloud, no model download. Open source under Apache-2.0.
Three steps on the critical path
Interlock sits inline between the agent and the action. Every gated call runs the same loop.
Agent proposes an action
A shell command, file edit, git push, network call, or MCP tool invocation arrives on the tool-call path.
Interlock decides
48 deterministic rules in 6 packs answer allow, ask, or block in about 2 ms. An optional Cedar mandate and open-weights decision model handle the ambiguous cases.
The verdict is recorded
Findings, probabilities, policy hash, and timing are written to a durable local spool before the response returns, then drained to DynamoDB.
See every agent your team runs, in one place.
The Interlock Console connects the daemons on your team's machines and the Interlock checks in your CI, and rolls out one policy to all of them. The gate stays local and free; the Console adds the shared view and central control. It receives counts, rule ids, and finding metadata, never your code or your agents' commands.
Fleet view
Every daemon's version, mode, connected agents, and health, plus what it blocked or asked about.
Central policy
Publish one org policy to every machine, canary first, with rollback. It can only make decisions stricter, so a stolen key can't switch protection off.
CI scan reports
Findings from the Interlock GitHub Action, per repository and over time.
Console assistant
Ask in plain language which machines are behind, why a policy didn't apply, or for a policy draft. It reads your org with your access and never changes anything.
Organizations
Invite your team with owner, admin, and member roles, MFA, and an audit log of every change.
Never your code
Only metadata leaves your machines and CI. Decisions still happen locally, in about 2 ms.
Put a gate in front of your agent.
pipx install interlockd then interlock init. It finds your agents, starts in shadow mode, and shows what it would block. Enforce when you're ready.