run 20261117-101217-0924
supervise
supervise is a Claude Code plugin that runs plan, implement, verify and review loops in which a small CLI, not the prompt, decides whether the work may be accepted.
Outcome
Accepted
after 1 failed check, 2 refused steps and 1 fix round, in 12 steps
What it is
You start a run in Claude Code with /supervise:supervise and a task. Claude plans it, writes the code and calls supervisectl at every phase change. The CLI keeps the run's state on disk, runs the project's own checks (supervise calls them gates), sends the diff to a read-only reviewer agent, and accepts the work only when the gates pass and the review is clean for the exact working tree being accepted. A step that breaks a rule is refused with exit code 2, and the CLI prints the rule and the next step.
The run, stage by stage
A run of supervisectl 1.0.5, recorded on 17 November 2026, every step as it ran. Each output is as the CLI printed it, but for the demo repository's folder, cut to …/demo-repo. The CLI speaks English on both language versions of this page.
Plan
passedsteps 00, 01
00
init finds the project's gates and writes them to its config. Each run copies them when it starts.
supervisectl init
Initialized supervise in …/demo-repo
Config: …/demo-repo/.supervise/config.toml (.supervise/ is excluded from git through .git/info/exclude)
Gates:
lint lint make lint
test test make test
Check the gates with the user and edit the config if they are wrong; each run copies them at start.
next: `supervisectl start "<task>"`01
start runs every gate once before anything changes, so a gate that already fails here is not blamed on the change.
supervisectl start "add a greeting to app.txt"
Starting run 20261117-101217-0924: 2 baseline gate(s).
running lint: make lint
running test: make test
Run 20261117-101217-0924 started: add a greeting to app.txt
Baseline (before any change):
pass lint make lint
pass test make test
next: write the plan JSON to `.supervise/plan.json`, then `supervisectl plan set .supervise/plan.json`Implement
donestep 02
02
The plan comes from a file, which the CLI reads and removes. It is recorded with its subtasks and acceptance criteria, and the run moves to implementing.
supervisectl plan set .supervise/plan.json
Plan recorded: 1 subtask(s).
s1 Add hello line to app.txt
Read and removed .supervise/plan.json.
next: finish the changes, then `supervisectl verify`Verify
failed, then passedsteps 03, 04, 07
03
Failed. The test gate fails. The run cannot continue until a fix round is counted.
supervisectl verify
Verify #1: 2 gate(s).
running lint: make lint
running test: make test
Verify #1: fail (lint pass, test fail)
FAIL test make test (exit 2)
| grep -qx ok app.txt
| make: *** [Makefile:10: test] Error 1
full output: …/demo-repo/.supervise/runs/20261117-101217-0924/logs/verify-1-test.log
next: `supervisectl fix` before changing code, then repair what failed04
Refused. Adding the repair as a new request from the user does not skip that round.
supervisectl subtask add "retry" --origin user
supervisectl: refused: the last result is negative, so `supervisectl fix` comes first
A failed gate or a blocking review is repaired in a fix round; a new request from the user is added in that round.
next: `supervisectl fix`, then `supervisectl subtask add` if the user asked for more07
Passed. Both gates pass. The CLI records the fingerprint of the working tree: its git tree id.
supervisectl verify
Verify #2: 2 gate(s).
running lint: make lint
running test: make test
Verify #2: pass (lint pass, test pass)
next: `supervisectl review begin`, then run the supervise:code-reviewer agent with the brief it printsFix
round 1 of 3steps 05, 06
05
fix uses round 1 of 3. At the cap the run escalates, and only the user can raise the cap.
supervisectl fix
Fix round 1/3.
to fix: gate test failed: make test (log: …/demo-repo/.supervise/runs/20261117-101217-0924/logs/verify-1-test.log)
next: finish the changes, then `supervisectl verify`06
The one subtask is marked done; none is left open.
supervisectl subtask done 1
Subtask s1 done. Open: none.Review
passedsteps 08, 09, 10
08
The CLI writes the diff and a brief for the supervise:code-reviewer agent, which can only read files.
supervisectl review begin
Review #1 begun. Diff since the run started (1 files): …/demo-repo/.supervise/runs/20261117-101217-0924/review-1.diff
Since the last independent review: 1 files, 1 lines
M app.txt
Self-review allowed: yes (limit 10 lines, no binary files)
Brief for the supervise:code-reviewer agent:
Task: add a greeting to app.txt
- s1 Add hello line to app.txt (acceptance: app.txt contains ok and hello)
Gates at verify #2 (the only commands known to have run on this tree): lint `make lint` pass; test `make test` pass
Diff to review: …/demo-repo/.supervise/runs/20261117-101217-0924/review-1.diff
Report each acceptance criterion that is not met, or not shown by the diff or the gates, with "kind": "acceptance" (it blocks at any severity).
End the reply with the findings JSON: {"findings": [...]}.
next: run the supervise:code-reviewer agent with the brief from `review begin`, then `supervisectl review record`09
The reviewer is a separate supervise:code-reviewer agent, given the brief. It ends its reply with the findings JSON, empty here. The plugin's hooks record when it started and stopped.
The reviewer's reply, as the plugin's hook stored it
Agent(subagent_type: "supervise:code-reviewer", prompt: <brief from review begin>)
I read the diff and the resulting app.txt. The diff adds one line, `hello`, after the existing `ok` line, and app.txt now reads "ok" then "hello". The only acceptance criterion, "app.txt contains ok and hello", is met. `make lint` and `make test` both passed. I found no correctness, security or scope problems. The change adds no logic, so it needs no new test.
```json
{"findings": []}
```10
Passed. The findings come from the reviewer's own reply, captured by a hook. High-or-higher findings and unmet acceptance criteria block by default.
supervisectl review record
Review #1: clean, independent; 0 blocking, 0 non-blocking
next: `supervisectl accept`Accept
refused, then passedsteps 11, 12, 13, 14
11
exit 2
supervisectl accept refused: files changed since the review.
One line changed after the review, so the fingerprint no longer matches and accept is refused. A step that breaks a rule is refused with exit code 2, and the CLI prints the rule and the next step.
supervisectl accept
supervisectl: refused: files changed since the review
The working tree no longer matches what was verified and reviewed. Changed: M app.txt.
next: `supervisectl verify`, then `supervisectl review begin` and review again12
Passed. With the reviewed tree back, accept passes. Nothing is committed unless the user asks.
supervisectl accept
ACCEPTED run 20261117-101217-0924: add a greeting to app.txt
Verify #2: pass (lint pass, test pass)
Review #1: clean, independent; 0 blocking, 0 non-blocking
Fix rounds used: 1/3
Full report: `supervisectl report`
Nothing is committed. Only if the user asks: `supervisectl commit -m "<conventional message>"`.13
report prints the run in Markdown: the plan, the subtasks, the gates, the review and the history.
supervisectl report
# supervise report: run 20261117-101217-0924
- Task: add a greeting to app.txt
- Status: **accepted** (phase ACCEPT)
- Started 2026-11-17T10:12:17+0700; last change 2026-11-17T10:13:00+0700
- Fix rounds: 1/3
## Plan
Add a greeting line to app.txt and keep the status line.
The rest of the output (32 lines)
## Subtasks
- [x] s1 Add hello line to app.txt (acceptance: app.txt contains ok and hello)
## Gates
| gate | kind | command | baseline | last verify |
|---|---|---|---|---|
| lint | lint | `make lint` | pass (exit 0) | pass (exit 0) |
| test | test | `make test` | pass (exit 0) | pass (exit 0) |
Verify #2: pass (lint pass, test pass)
## Reviews
- Review #1: clean, independent; 0 blocking, 0 non-blocking
## Subagents
- supervise:code-reviewer: 1 finished
## History
- 2026-11-17T10:12:17+0700 start (PLAN, active): add a greeting to app.txt
- 2026-11-17T10:12:24+0700 plan (IMPLEMENT, active): 1 subtasks
- 2026-11-17T10:12:25+0700 verify (VERIFY, active): Verify #1: fail (lint pass, test fail)
- 2026-11-17T10:12:26+0700 fix (FIX, active): round 1/3
- 2026-11-17T10:12:27+0700 subtask done (FIX, active): s1: Add hello line to app.txt
- 2026-11-17T10:12:27+0700 verify (VERIFY, active): Verify #2: pass (lint pass, test pass)
- 2026-11-17T10:12:28+0700 review begin (REVIEW, active): #1: 1 files changed since start
- 2026-11-17T10:12:59+0700 review record (REVIEW, active): Review #1: clean, independent; 0 blocking, 0 non-blocking
- 2026-11-17T10:13:00+0700 accept (ACCEPT, accepted): verify #2, review #114
No run is open any more; the accepted one is the last.
supervisectl status
No open supervise run.
Last run: 20261117-101217-0924 (accepted): add a greeting to app.txt
next: `supervisectl start "<task>"`What I did
I built supervise alone: 0.1.0 on 23 September 2026, 1.0.0 the next day, and 1.0.5 on 8 November 2026. I used it on my own work, including the run that built the first version of this site's home page (1 October 2026).
Status
1.0.5 is the latest release (8 November 2026). It needs Claude Code 2.1.280 or newer, git, and Python 3.11 or newer on Linux or macOS; the CLI uses only the Python standard library. 43 end-to-end tests drive the real CLI in a temporary git repository, and CI runs them on Linux and macOS with Python 3.11 to 3.14. The code is public at github.com/mrramdn/supervise.