Langsung ke konten
CVKontak

run 20261117-101217-0924

supervise

supervise adalah plugin Claude Code untuk loop plan, implement, verify, dan review, di mana sebuah CLI kecil, bukan prompt, yang memutuskan apakah pekerjaan boleh diterima.

Hasil

Diterima

setelah 1 pengecekan gagal, 2 langkah ditolak, dan 1 ronde perbaikan, dalam 12 langkah

Tugas
add a greeting to app.txt
Dimulai
CLI
supervisectl 1.0.5
Dijalankan di
repositori kecil dengan dua gate, make lint dan make test
Terbaru
1.0.5, dirilis 8 Nov 2026
Peran
Dibangun sendiri
Stack
Python, Claude Code plugin, git, GitHub Actions

Apa itu supervise

Run dimulai di Claude Code dengan /supervise:supervise dan sebuah tugas. Claude membuat rencana, menulis kode, dan memanggil supervisectl di setiap pergantian fase. CLI menyimpan status run di disk, menjalankan pengecekan proyek itu sendiri (di supervise disebut gate), mengirim diff ke agent reviewer yang hanya bisa membaca, dan menerima pekerjaan hanya jika gate lolos dan review bersih untuk working tree yang persis sama dengan yang diterima. Langkah yang melanggar aturan ditolak dengan exit code 2, dan CLI mencetak aturannya serta langkah berikutnya.

  1. 1Planlolosbaseline: kedua gate lolos
  2. 2Implementselesairencana tercatat, 1 subtask
  3. 3Verifygagal, lalu lolosgate test gagal; jalan pintas ditolak
  4. Fixronde 1 dari 3kembali ke implement, lalu verify lagi
  5. 4Reviewlolosbersih, independen, 0 blocking
  6. 5Acceptditolak, lalu lolosfile berubah setelah review

Jalannya run, tahap demi tahap

Run supervisectl 1.0.5 yang direkam pada 17 November 2026, setiap langkah apa adanya. Setiap keluaran sama dengan yang dicetak CLI, kecuali folder repositori demo, yang dipendekkan menjadi …/demo-repo. CLI-nya berbahasa Inggris di kedua versi bahasa halaman ini.

Plan

loloslangkah 00, 01

00

init menemukan gate proyek dan menuliskannya ke config-nya. Setiap run menyalinnya saat dimulai.

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 menjalankan semua gate sekali sebelum ada perubahan, jadi gate yang sudah gagal di sini tidak dibebankan ke perubahan.

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

selesailangkah 02

02

Rencananya diambil dari file, yang dibaca lalu dihapus CLI. Rencana dicatat bersama subtask dan kriteria penerimaannya, lalu run pindah ke tahap implementasi.

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

gagal, lalu loloslangkah 03, 04, 07

03

Gagal. Gate test gagal. Run tidak bisa lanjut sampai satu ronde fix dihitung.

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 failed

04

Ditolak. Mencatat perbaikan sebagai permintaan baru dari user tidak bisa melompati ronde itu.

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 more

07

Lolos. Kedua gate lolos. CLI mencatat fingerprint working tree, yaitu git tree id-nya.

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 prints

Fix

ronde 1 dari 3langkah 05, 06

05

fix memakai ronde 1 dari 3. Jika batasnya habis, run dieskalasi, dan hanya user yang bisa menaikkan batasnya.

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

Satu-satunya subtask ditandai selesai; tidak ada yang masih terbuka.

supervisectl subtask done 1
Subtask s1 done. Open: none.

Review

loloslangkah 08, 09, 10

08

CLI menulis diff dan brief untuk agent supervise:code-reviewer, yang hanya bisa membaca file.

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

Reviewer-nya agent supervise:code-reviewer tersendiri yang diberi brief tadi. Balasannya diakhiri JSON temuan, yang di sini kosong. Hook plugin mencatat kapan agent itu mulai dan selesai.

Balasan reviewer, seperti yang disimpan hook plugin

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

Lolos. Temuan diambil dari balasan reviewer sendiri lewat hook. Defaultnya, temuan severity high ke atas dan kriteria penerimaan yang tidak terpenuhi memblokir.

supervisectl review record
Review #1: clean, independent; 0 blocking, 0 non-blocking
next: `supervisectl accept`

Accept

ditolak, lalu loloslangkah 11, 12, 13, 14

11

exit 2

supervisectl accept ditolak: file berubah setelah review.

Satu baris berubah setelah review, jadi fingerprint tidak cocok dan accept ditolak. Langkah yang melanggar aturan ditolak dengan exit code 2, dan CLI mencetak aturannya serta langkah berikutnya.

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 again

12

Lolos. Setelah tree kembali seperti saat direview, accept lolos. Tidak ada commit kecuali user meminta.

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 mencetak run-nya dalam Markdown: rencana, subtask, gate, review, dan riwayatnya.

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.
Sisa keluarannya (32 baris)
## 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 #1

14

Tidak ada run yang masih terbuka; run yang diterima tadi adalah yang terakhir.

supervisectl status
No open supervise run.
Last run: 20261117-101217-0924 (accepted): add a greeting to app.txt
next: `supervisectl start "<task>"`

Yang saya kerjakan

Saya membangun supervise sendiri: 0.1.0 pada 23 September 2026, 1.0.0 sehari kemudian, dan 1.0.5 pada 8 November 2026. Saya memakainya untuk pekerjaan saya sendiri, termasuk run yang membangun versi pertama beranda situs ini (1 Oktober 2026).

Status

1.0.5 adalah rilis terbaru (8 November 2026). Butuh Claude Code 2.1.280 atau lebih baru, git, dan Python 3.11 atau lebih baru di Linux atau macOS; CLI-nya hanya memakai standard library Python. 43 tes end-to-end menjalankan CLI asli di repositori git sementara, dan CI menjalankannya di Linux dan macOS dengan Python 3.11 sampai 3.14. Kodenya publik di github.com/mrramdn/supervise.