ClaudeMod
ModsAutomationReads Files

Interlock

Spec-driven development for Claude Code, layered on OpenSpec. You read one spec; parallel agents ship it to a tested commit.

Install· Claude Code 2.1.330+
$claude plugin marketplace add renzrollon/interlock
$claude plugin install interlock@interlock
Run claude plugin validate to auditGuide →
Access & PermissionsReads Files

Reads local project files, settings, transcripts, or environment variables.

Modifies promptClipboard accessReads filesReads promptReads mod stateDraws UI

Statically scanned from hooks & source. Learn how to audit

Carl Rollon68 starsAdded 3 months ago

Interlock

Read one spec. Parallel agents ship it to a tested commit. One more command settles the pull request.

Spec-driven development for Claude Code, on OpenSpec.

npm downloads CI Claude Code ≥ 2.1.154 MIT Site

One real run on a demo repository, 34 seconds: /interlock:spec asks one question, writes the change and stops at the checkpoint; /interlock:ship runs two waves of parallel agents, the demo repository's suite passes 180 of 180, one commit.

One real run on a demo repository, recorded on plugin 1.4.2 and cut to 34 s: spec stops at the checkpoint, then ship runs two waves of parallel agents to one commit. Uncut, 2:34.

12 tasks · 2 waves · 19 agents · 13m 54s · 57 files · 2,881 lines · 180 of 180 pass · 1 commit

/interlock:spec "<idea>"
# explores the repo, writes a reviewed spec, stops
# ← you read it: the only required stop

/interlock:ship
# parallel agents → your tests → one commit
# asks nothing

/interlock:settle --create --review
# draft PR → review → fix rounds → verdict
# ← you press merge; Interlock never does
  • One human checkpoint. A spec is the cheapest place to catch a wrong idea, so it is the one place you must look.
  • Nobody is asked mid-run. ship is a Claude Code workflow, and the runtime has no channel for a question.
  • Rules are code, not prose. Caps, gates and the merge verdict are CLI exit codes a model cannot argue with.

Install

You need:

  • Claude Code 2.1.154+
  • Dynamic workflows on (on a Pro plan, enable them in /config)
  • Node.js 22.12+ with npm
  • A git repository with code in it

1. In Claude Code, once per machine:

/plugin marketplace add renzrollon/interlock
/plugin install interlock@interlock

Pick Install for you (user scope) when it asks.

2. Start a new session in your project. The plugin puts interlock on the shell's PATH when a session starts, so in the session you installed from, ! interlock doctor answers command not found. /clear also starts one. From then on every session runs the doctor for you and hands Claude the verdict. A clean session shows you nothing; on Claude Code 2.1.295+, a check that fails or warns draws a band above the prompt.

3. In the new session, once per repo:

! interlock doctor

Names everything that would stop an unattended run, with the fix for each, including the settings snippet that allowlists the commands a run needs. The ! runs it as a shell command.

/interlock:fix-tests

Finds how your tests run and saves it to .claude/testing/profile.json; every ship verifies with it. On a red suite it goes on to repair the failures by root cause; --dry-run stops at the diagnosis.

/interlock:bootstrap

Writes one spec per existing feature and builds the code graph agents query instead of re-reading files. It never changes source code.

Nothing else to install. OpenSpec is provisioned on first use: a pinned copy from npm, checked against a lockfile the plugin carries, install scripts and telemetry off. Step by step, to a first shipped change: 01 — The first hour.

Why Interlock

Prompts are suggestions. Exit codes are not.

Other spec tools compete on how much structure you write before coding. Interlock competes on how many decisions the model is not allowed to make.

  • It cannot ask you anything. ship is a workflow with no input channel. What a human decides is decided at the checkpoint. Where the plan lives
  • It cannot shrink the suite to go green. A hook denies test edits while a run is fixing a failure, and a settle round with a red suite pushes nothing (since 1.14). The guards
  • Parallel agents never share a predicted file. The planner gives tasks that predict the same file to one agent, in order. A file a task did not predict is the gap. --isolate-waves closes it with a worktree per agent on the experimental runner; on /interlock:ship it halts with LANE BASE MISMATCH when the first worktrees merge back, until a follow-up change. The wave engine
  • A reviewer has to prove what it read. Each review dimension hands in a coverage ledger. No proof, no MERGE (since 1.12). The proof of coverage
  • A dismissal needs a file:line. Reviewers run blind, one per dimension; skeptics must cite the diff to dismiss a blocker or warning (since 1.15). Making dismissal expensive
  • The merge verdict is computed, not opined. MERGE, HUMAN or BLOCK comes from the CLI. The worst signal wins, and missing evidence counts against you. Merge confidence
  • Nothing is silent, nothing phones home. interlock limits prints every cap, every degradation is a named banner, and Interlock makes no network request of its own (since 1.15). When it stops

Example output of Interlock's guard-tests hook. While a run is fixing a failing check, an edit to test/pricing.test.mjs is denied, with the reason that a run making a failing check pass must fix the code under test, not weaken the check. An edit to src/pricing.mjs is allowed.

The hook's own words, from running it against a throwaway directory. The guards →

Built with itself. Every feature here started as a spec and shipped through the same checkpoint: more than 80 changes, one folder each.

How it compares

Already using something?

  • Plan mode plans for one session, then the same agent builds. Interlock keeps the spec in your repo, builds with fresh parallel agents and keeps gating after you approve.
  • OpenSpec: keep it. Interlock drives the same CLI and files, and adds the run: exploration, a spec review, parallel waves, verification, a commit and a pull request. OpenSpec vs Interlock
  • Spec Kit runs five commands per feature, "reviewing each result before continuing". Interlock asks for one read. Spec Kit supports far more agents; that is the trade.
  • Superpowers teaches the agent a discipline through skills it reads. Interlock takes the parts with a right answer out of the prompt: a hook denies the edit, an exit code enforces the cap.
You doBuilds itHolds the rulesEnds at
Plan modeapprove a planthe same sessionyour permission modeedits in your working tree
OpenSpecpropose, apply, archiveone assistant, task by taskskills, and a CLI that validates the artifactsticked tasks, archived specs
Spec Kitfive commands, a review after eachyour agent, in its chattemplates and a constitutionConverged
Superpowerssign off a design, then say goa fresh subagent per taskskills the agent readsyour pick of merge, PR, keep or discard
Interlockread one specparallel agents in wavesexit codes, hooks, a runtime that cannot aska tested commit, then a verdict on the PR

From each project's own README, November 2026. Nobody has benchmarked these against each other, us included. Sources and the longer version: Beside plan mode and the spec tools.

The flow

The Interlock flow: bootstrap once per repo; for every change, spec, then you read the spec, then ship; when you want them, settle and archive. Two commands, one human checkpoint.

Two commands take a change to a tested commit, and you read the spec between them. Settle and archive carry it from the commit to the merge.

WhenCommandWhat you get
once per repo/interlock:bootstrapYour repo, described in specs
every change/interlock:spec "idea"A reviewed, implementation-ready change. Then it stops
every changeYou read the specTen minutes, with a checklist. The only place a human is required
every change/interlock:shipParallel agents, your tests, one commit. Asks nothing
after the commit/interlock:settle --create --reviewA reviewed pull request, labelled with the merge verdict
after the merge! openspec archive <change>The living specs catch up

The ship meter pane during the recorded run: wave 1 with three lanes marked ok and the model that served each, the verify checkpoint between the waves, wave 2 with two lanes running and one pending, then verify-final, commit and close.

The same run, drawn live inside Claude Code (2.1.295+). The pane observes; the CLI decides. The ship meter →

Flags, and the commands you may never need

Flags

FlagWhat it changes
ship --reviewRuns the adversarial review before the commit
ship --strictAdds remediation, handoff artifacts and a conformance check
ship --solo · ship --wavesForces the plan shape the classifier would otherwise choose
ship --tddRuns the change's failing-test section first
spec --continueSkips the checkpoint when the readiness gate passes. Continuity says what that cannot catch

Commands you can run any time, on their own

CommandUse it to
/interlock:exploreInvestigate the repo with parallel read-only investigators
/interlock:review-codeRun the adversarial review on its own, or with --pr <ref> on a colleague's pull request, read-only
/interlock:fix-testsRepair a red suite by root cause, without weakening a test
/interlock:graphBuild and query the code graph
/interlock:reportRead the indicators over the run corpora. It gates nothing
/interlock:manual-test-planWrite a manual UI test plan from a change and its commits
/interlock:explain-codeWalk through a module, or explain the last commit
/interlock:evalsTurn an observed model failure into an eval case
/interlock:docs-digestCompress the docs and specs into one primer for agents
/interlock:dispatchFind the right skill when you are not sure which applies
/interlock:commitWrite one feature-level commit from the change

Panes, for watching

PaneDraws
/interlock-meterThe ship run
/interlock-specThe spec run, with the checkpoint card
/interlock-settleEvery /interlock:settle pass on a pull request, with or without --review
/interlock-preflightThe session's doctor report
/interlock-handoffThe resume card after a halt

The checkpoint card (interlock checkpoint <change>) lists the questions to ask of a spec. When a pane prints a command, it offers it as a drafted action; you submit it yourself.

At the Claude Code prompt, after !

CommandTells you
interlock doctorWhether anything would stop an unattended run on this machine
interlock limitsEvery cap the loop obeys
interlock driftChanges never archived, specs that cite deleted files, changed files no spec describes
interlock merge-confidenceThe MERGE / HUMAN / BLOCK verdict

Every subcommand: CLI and configuration.

Words you will see
ChangeOne unit of work: a folder under openspec/changes/<name>/ holding proposal.md, design.md, tasks.md and delta specs
Delta specThe behaviour a change adds or alters, written as Given/When/Then scenarios
Living specopenspec/specs/: what the system does today. Archiving a change folds its delta specs in
CheckpointYour read of the spec, between spec and ship. The one step a human must do
Skill / workflowA skill is instructions Claude follows in the conversation, and it can ask you questions. A workflow is a script the Claude Code runtime executes, and it cannot
Wave / laneA wave is a batch of tasks that run in parallel; a lane is one agent's slot in it
Haltship stopped, said what finished and what it needs from you. When it stops decodes each one
Settle/interlock:settle: opens or updates the pull request and labels it with the CLI's merge verdict. With --review it first reviews the diff and fixes the findings in rounds. It never merges
VerdictMERGE, HUMAN or BLOCK, computed by interlock merge-confidence from the evidence a run and a review left. The worst signal wins
Dimension / skepticA dimension is one reviewer's angle on the diff (language, architecture, QA, security…), run blind to the others. A skeptic tries to refute a finding, and may dismiss it only by citing a file:line in the diff
ConformanceEvery scenario in the change's delta specs, asked as a question of what was built. It asks and never rules. Part of ship --strict

Every term, defined from the ground up: 09 — From prompt to workflow.

Then settle the pull request

/interlock:settle --create --review
  1. Opens a draft pull request, described from the spec and the diff.
  2. Reviews the diff and posts the findings.
  3. Fixes them in rounds. Each round runs your suite before it commits, so a red round pushes nothing.
  4. Answers every finding: fixed, open or new.
  5. Labels it MERGE, HUMAN or BLOCK, with the evidence in the description.

Its verdict on one of Interlock's own pull requests. It did not flatter us:

The merge-confidence block /interlock:settle wrote on Interlock's pull request 33: HUMAN, score 54, 6 of 17 gating signals clean. One signal needs a fix (two added source files no spec names), three need a person (risk class high, a diff over the size bands, two open decisions) and three need more evidence. Labels: interlock/human-review and interlock/score-54.

Every line verbatim from the description of #33; the signal table and the commit line under it are left out.

It never merges and never approves: a person presses the button. It needs gh or glab signed in. The GitHub loop has run end to end; the GitLab lines are not exercised. 15 — Merge confidence

Turn the gates up

Default ship trusts your test suite: a green suite, one commit. Add the rest as the loop earns it.

AddWhat it doesCost
ship --reviewBlind reviewers, one per dimension, then skeptics. You see what survived, and how many did notThe expensive part of a run. Why it works
ship --strictThe review, plus remediation, a manual test plan for UI changes, a commit walkthrough and a conformance check against the specThe previous default. Ship it
interlock merge-confidence --require-mergeThe settle verdict as a required CI check. Exits 1 unless MERGESome setup. A CI job that reassesses
REVIEW.mdYour repo's policy: paths out of review scope, paths that always need a humanOne file. Repository review policy

What it costs

  • Claude Code only. It is the default and supported host, because the guarantees come from its workflow runtime. Cursor and Copilot are not supported; a runner for other hosts is experimental.
  • Review spends tokens. --review, --strict and settle --review are the expensive part of a run, so default ship leaves them out.
  • Guards fail open. A hook that cannot tell a run is live allows the edit, by design.
Fine print: OpenSpec, the doctor, other hosts, the network, the CLIs
In one line
Your own OpenSpecUsed as it is when it is on your PATH. Otherwise a pinned copy is installed on first use
The doctorRuns at every session start. ! interlock doctor at the Claude Code prompt prints the full report
Other hostsinterlock-run is experimental, and only you start it
The networkInterlock makes no network request of its own and reads no credential
The CLIsThree zero-dependency Node binaries and one deprecated alias, also on npm

Your own OpenSpec · The first hour: install

  • A copy already on your PATH is used as it is. interlock openspec which prints which copy resolves, and its full path: a provisioned copy is on Claude Code's PATH only, so from your own terminal run openspec archive by that path.
  • Otherwise the first /interlock:spec or /interlock:bootstrap runs interlock openspec provision: about 16 MB from the npm registry, into the plugin's data directory and nowhere else.
  • To install it yourself instead:
npm install --location=global @fission-ai/openspec@2.0.0

The doctor · Install the CLIs without the plugin

  • The session-start check is interlock doctor, run for you.
  • Type ! interlock doctor at the Claude Code prompt for the full report; the ! runs a shell command from the prompt. The report carries a ready-to-paste snippet that allowlists every command a run needs, and exits 1 when something would stop an unattended run.
  • The plugin puts the CLI on the PATH of Claude Code's shell only. For your own terminal, install the npm package and keep it at the plugin's version (Upgrading).

Other hosts (experimental) · The experimental runner

  • interlock-run drives the same loop over the Claude Code CLI, any Agent Client Protocol (ACP) agent, OpenAI Codex or Qwen Code.
  • You start it yourself. No slash command does, and /interlock:ship never falls back to it.
  • Two caveats, both bannered by the runner:
    • Billing. claude -p, the Agent SDK and ACP are the usage Anthropic flagged for separate metered credit. The Workflow runtime behind /interlock:ship is the exempted path.
    • Model tiers. Codex and Qwen need the planner's model tiers mapped with INTERLOCK_MODEL_MAP. An unmapped tier is bannered, never silently run on your default.
  • The older interlock-ship-acp still works: it prints a deprecation line and runs interlock-run --host acp. It has been deprecated since 1.7.0, and no release is set to remove it.
  • Code Mode is out of scope.

The network

Interlock makes no network request of its own and reads no credential. The plugin declares no option to ask you for one.

  • Requests that belong to other tools. What each of these sends is its own:
    • /interlock:settle has the model run gh, glab and git fetch under your own sign-in.
    • interlock openspec provision runs npm to install the pinned OpenSpec from the npm registry when none is on your PATH.
    • The vendor CLIs a run spawns inherit the environment, as any child process does.
  • What it reads on your machine. interlock doctor, the session-start check and interlock run start read Claude Code's settings files: managed, user (~/.claude/settings.json), project and local. They use only permissions, promptCacheTtl, subagentPromptCacheTtl and advisorModel, so they can say whether a run would stop on a prompt. No other key or value is used, printed or sent.
  • What it runs on your machine. interlock verify exec runs the command it is passed, which the loop takes from the commands in .claude/testing/profile.json; the coverage baseline runs that profile's coverage command. Both run through a shell (/bin/sh on macOS and Linux) in your environment, as you would run them yourself. Whatever those commands send is theirs, not Interlock's.
  • Being reached while away. Interlock sends no push of its own. On a Claude Code that supports mods, the meter asks the engine for a local notification on a halt, a close, a first quiet stretch and a checkpoint. Claude Code's Remote Control can push to your phone when a long task finishes or a session needs you, with nothing configured in Interlock.

The CLIs on their own · CLI and configuration

BinaryWhat it is
interlockThe policy engine. Every gating subcommand exits 1 when it blocks
interlock-graphA local, deterministic code graph. No vector store, no network
interlock-runThe experimental runner above
interlock-ship-acpThe runner's old name, deprecated: it runs interlock-run --host acp

The plugin puts all four on Claude Code's PATH, and openspec too when it provisioned it. To put the four on yours:

npm install --location=global @renzrollon/interlock@1.22.0

The reference and every environment variable are in 07 — CLI and configuration.

Docs

Start with 01 — The first hour, and keep 04 — When it stops open during your first ship. Then 02 — The checkpoint for reading a spec in ten minutes and 06 — Why it works for the mechanisms. Only ever prompted a coding agent? 09 — From prompt to workflow defines every term once. What changed in each release, and what to do when you upgrade: the changelog.

Every doc
01 — The first hourInstall to first shipped change
02 — The checkpointHow to read a spec in ten minutes
03 — OpenSpec vs InterlockWhat composes with what
04 — When it stopsEvery halt and banner, and what to do
05 — ContinuityWhen --continue may skip the human read
06 — Why it worksThe mechanisms, low-level, with the costs stated
07 — CLI and configurationEvery subcommand, environment variable and host
08 — The Interlock harnessThe parts of the harness, what holds on each host, and the comparison with other tools
09 — From prompt to workflowNew to agentic workflows? Every term defined, then why ship is a script
10 — Ship and spec for prompt-only engineersPrimer, review of spec+ship, token and quality tactics
11 — The indicatorsWhat interlock report measures and why it gates nothing; whether to commit the run corpora
12 — Repository review policyThe optional REVIEW.md: what it can change and what it cannot
13 — The guardsThe hooks, the stage marker's lifecycle, and the fail-open rule
14 — EvalsWhat a consumer's run is checked by, why no model evals run in your CI, how to file a failure
15 — Merge confidenceWhat the MERGE / HUMAN / BLOCK verdict reads, signal by signal, and how it reaches a pull request or a CI job
16 — UpgradingWhat an upgrade keeps, what a resume across versions does, and how to keep the CLI at the plugin's version
17 — Reviewing a teammate's pull requestreview-code --pr: what it writes, what it never does, the weights, and what has not been exercised

Development

git clone https://github.com/renzrollon/interlock && cd interlock
npm test                      # no dependencies to install first
claude --plugin-dir .         # load it without installing

Built on OpenSpec by Fission AI · MIT

Details

GitHub Stars
68
Sub-category
Automation
License
MIT
Surfaces
terminal
Added
3 months ago
Last synced
today
Events hooked
session.startprompt.submitsession.receivetool.callturn.stepturn.completeagent.spawn

Weekly Mods Digest

Top new Claude Code mods and install commands, once a week. No fluff, unsubscribe anytime.

More Mods

Claude Flightdeck
ModsSecurity

Claude Flightdeck

Live agent dashboard pane with context consumption, advisor timeline, permission verdicts, and subagent swimlanes.

Reads Files
by Sam Casella
GitHub
ModsInterface

Terminal Browser

Browse documentation, GitHub pull requests, and web pages in a split terminal pane directly beside your Claude Code conversation.

Network
by Zenbu Labs
GitHub
Agent Flow
ModsAutomation

Agent Flow

Interactive visual tree of the active session's subagents, background tasks, and teammates beside the transcript via /flow.

UI Only
by Charlie
GitHub

Command Palette

Search for a command to run...