coding-supervisor
coding-supervisor is a completion gate for coding agents. It records a task contract, candidate and verification evidence, and evaluates whether the required checks support completion. It runs alongside a coding harness; the harness supplies the agent and tools.
The core is deterministic. A receipt must match a criterion's command and the candidate it checked. A changed candidate makes affected evidence stale. Repair rounds are bounded and unresolved work has explicit outcomes. The Claude Code hook adapter can refuse unsupported completion on its covered paths; the MCP interface is advisory and its receipts are caller assertions.
Install
The npm launcher and native packages support Windows and Linux x86_64:
npm install -g coding-supervisor
supervisor --help
Alternatively, download the archive for your platform and its checksums from the Releases page, or build from source below. Keep the executable at a stable path: the installer records its path in the harness configuration. With npm that path carries no version, so npm install -g coding-supervisor@<version> upgrades the binary the hooks already run; supervisor status --json shows the running version in reporting_binary.version. Releases and their notes are on the Releases page and in CHANGELOG.md.
From the project you want to supervise, register your harness:
supervisor install --harness claude-code --project <project> --dry-run
supervisor install --harness claude-code --project <project>
supervisor status --project <project> --harness claude-code
Replace claude-code with codex, cursor, omp or grok for installation. Follow the manual trust or approval steps printed by the installer. Claude Code connects a project's MCP server only when a session starts: install before starting the session, or restart it. A session that has the hooks but not the server classifies its prompt from the Bash tool with supervisor intent apply --proposal '<json>'. Installation registers the MCP server and two skills; only Claude Code receives supervisor hooks. Its PreToolUse hook carries "onFailure": "block", as the plugin's does, so a supervisor that crashes or does not answer in time refuses the tool call instead of letting it through. It does not activate a task. The installer does not stop other processes; if a file is held open, close the harness session and retry. A malformed configuration is not rewritten.
Claude Code plugin
Instead of hook entries in .claude/settings.json, Claude Code can take the gate's hooks from this repository's plugin. The plugin still needs the npm package, because its hook runs supervisor from PATH, and it declares no MCP server, so supervisor install stays the MCP registrar:
npm install -g coding-supervisor
claude plugin marketplace add special-place-ai-heaven/coding-supervisor
claude plugin install coding-supervisor@coding-supervisor
supervisor install --harness claude-code --project <project>
When enabledPlugins has coding-supervisor@coding-supervisor: true in the most specific settings file that names it (the project's .claude/settings.local.json, then .claude/settings.json, then ~/.claude/settings.json), install prints the coding-supervisor@coding-supervisor plugin is enabled and runs the hooks: no hook entry is written, and any written earlier is removed. It then writes no hook entry and removes the gate's earlier ones, so no event runs the gate twice. It still writes the MCP server, the mcp__supervisor allow rule and the skills. supervisor status reads hooks from the project's settings files only, so it reports plugin hooks as not_configured.
The plugin adds the hooks and one command, /supervisor, with no MCP server, agent, skill or executable. /supervisor shows the mode and the status; /supervisor <off|audit|enforce|strict> sets the project's mode first. The command is marked disable-model-invocation, so only a person can run it, and it runs supervisor level and supervisor status before the model sees anything. The plugin carries no MCP server because Claude Code names a plugin server's tools mcp__plugin_coding-supervisor_supervisor__<tool>, while the gate, its skills and the permission rule install writes expect mcp__supervisor__<tool>; supervisor install stays the MCP registrar. It registers node hooks/supervisor-hook.js on the same seven events as install (the six judged ones and SessionEnd), with no matcher and a 30-second timeout. The script passes the payload to supervisor hook and its stdout back unchanged.