Retrieved article excerpt
Open article · Retrieved 2026-10-21T22:27:27.744025+00:00
# What is it?
This package provides two major functions:
- Reviewer Agent - does automated plan and code reviews, gating each commit until issues that it finds are resolved
- Stop Continue - examines the project plan, task list, and whether there are background tasks running that the agent is waiting for, and decides if the agent is allowed to stop or if not, what it should do next
Works with Claude Code and Codex, and uses Codex, Pi (with any model), or Claude Code itself as the reviewer and stop continue agent (with some limitations listed below).
# Inspiration and Justification
I have been using LLMs to do coding since it was possible to do so, and have tried to use every major model.
I've also had each major model do plan reviews and code reviews on every other model. I've found that it's very beneficial to let different models review each other's plans because they tend to find serious problems that would have wasted a lot of time.
## Plan and Code Review gates:
- A model that does not do the coding but only reviews plans or code can find problems that the coding agent has missed
- Different models have different strengths and using more than one model can produce better plans and code with less bugs
So this project sets up a commit gate which does not allow a commit to proceed until a separate agent (that you can choose)
completes a plan or code review. If the review agent specifies issues to fix, they must be fixed by the coding agent before
the commit will be allowed to proceed.
An interesting finding is that a small, inexpensive model like gpt-6-luna (which I run on xhigh and fast mode) when used as
a reviewer agent, finds numerous serious issues, omissions, and errors even when the coding agent is Fable 5.1, Opus 5.5,
gpt-6-astra or gpt-6.1-sol, all on xhigh mode. *Note that you can use any model as a reviewer!*
It can often take multiple commit attempts for Fable to get rid of all the bugs found by gpt-6-luna, and if you ask it to weigh in on whether the required fixes are valid or not, it overwhelmingly agrees that they are real issues.
Some data: over four months of daily use of the system while developing it (from late June to October 2026), reviewerAgent (usually a GPT Luna model) gated 3,877 commits, running about 7,600 reviews in total, so about half of those commits were rejected at least once. Each rejection listed an average of two required fixes and most rejected commits were accepted after a second round (90% within five attempts). Rejection rates increased with commit size: only 23% of code commits under 50 lines were sent back, but 72% of those over 1,000 lines were initially rejected. The coding agent (Fable or Opus) almost never disagreed with the reviewer's judgements: over the last month, for example, it pushed back on just 3 of 693 rejections.
## Don't stop - Continue!
Another issue is that even the best coding agents will work for a while (sometimes a long while) and then stop.
Sometimes they say "this is a good stopping point" (NO! There is no good stopping point!), sometimes they ask the
user a question, or for permission to continue, even if permission was already given to complete an entire set of tasks, or the question was already decided upon in an established plan. And sometimes they just... stop.
Various methods have been used to prevent this, including Ralph Loops and Claude Code's /goal, but there are some advantages to having another agent evaluate each stop, consider the project's plans, consider the task list, consider what the user said in the session, and then decide if a stop is allowed, or if not tell the agent what it is supposed to do next (which may include having the supervisor agent answer a question or give permission on behalf of the user).
So one separately controllable feature of this package is stop-continue which does exactly that, using the same model
as reviewer-agent but a separate session.
# Examples: Claude Fable 5.1 bugs caught by an inexpensive gpt-5.6-luna reviewer
Two real commit gate rejections from a private data-pipeline project, made on the same day with the same models. The gpt-5.6-luna reviewer's text is verbatim.
| Role | Model | Effort | Host / backend |
| --- | --- | --- | --- |
| Developer agent | Claude Fable 5.1 | high | Claude Code |
| Reviewer | gpt-5.6-luna | xhigh | Codex backend |
### A failure reported as success
The Fable 5.1 developer agent wrote a wrapper script that runs a set of R validation checks against a freshly loaded database and records whether each one passed. (One of two required fixes shown.)
```
REQUIRED FIXES (blocking)
2. docs/database-phase-loader/local-load/run_r_checks.sh:4-6 pipes each R check through
tail without pipefail or explicit status handling, so a failed Rscript can still
produce a zero exit status and be recorded as successful. Preserve and propagate each
check's exit status.
```
In a shell pipeline the exit status is that of the *last* command, so `Rscript check.R | tail` reports `tail`'s success even when the check fails. The script prints the tail of the failing check's output, exits 0, and records a pass. A broken load would have been certified as validated.
### A validator that could not fail
The Fable 5.1 developer agent wrote a checker that validates a database export before it is published, and a README claiming it validates the export cell by cell.
```
REQUIRED FIXES (blocking)
1. docs/database-phase-loader/rehearsal/README.md:24 claims every user table was unchanged,
but compare-before-vs-first-load.json:55-59 records users_foodcategory_foods changing
from 16,247 to 16,221; correct the false rehearsal claim.
2. docs/database-phase-loader/rehearsal/check_export.py:35-37 validates only the aggregate
exported row count, not exact per-type counts or unique key coverage. A duplicate
exported key replacing a missing same-type row can therefore produce passed=true;
validate exact (NDB_No, nutr_no) coverage and reject duplicates.
3. docs/database-phase-loader/rehearsal/check_export.py:31-37 reads manifest_validation
from a nonexistent manifest key; the staged export_manifest.json:3-9 stores the result
under consistency. The pass condition ignores consistency.mismatches, so a manifest
reporting export mismatches can still pass and export-check.json:23 is misleadingly
null.
```
The Fable 5.1 developer agent fixed those three and tried again. The gpt-5.6-luna reviewer rejected the commit a second time:
```
REQUIRED FIXES (blocking)
1. docs/database-phase-loader/rehearsal/check_export.py:24-43 never compares exported
per_serving values for measured, source_derived, calculated, zero, or logical_zero
cells, nor verifies the output file against the manifest hash. A normal nutrient
amount can be altered while keys, types, and manifest consistency remain valid, so
problems() returns no errors despite README.md:30 claiming cell-by-cell validation.
Compare values or verify the actual output hash, with a regression test.
```
The Fable 5.1 developer agent had declared the rehearsal clean while its own comparison showed a table losing 26 rows. Each checker gap let a corrupted export pass: a missing row hidden by a duplicate, mismatches the export itself reported, and any changed value. The commit was approved only on the third attempt, once the gpt-5.6-luna reviewer found no remaining gap.
# Features
Everything below is optional, enabled **per repository** and **per feature**; nothing acts until you turn it on, and it is easy to remove.
**Two gates you control independently**
- **Commit review** — every `git commit` is held while a *separate* reviewer agent audits the staged diff. If it finds problems, the commit is blocked with a numbered fix list the coding agent must resolve, and it re-reviews on each retry until the diff passes. Fail-closed: a reviewer error, timeout, unparseable verdict, or empty response also blocks the commit. Turn on with `/reviewer-agent:reviewerAgent on acceptRisk`. → [What the reviewer actually does](https://github.com/rladr-org/reviewer-agent#what-the-reviewer-actually-does)
- **Stop-continue supervision** — when the coding agent tries to stop, pauses on an already-decided question, or asks permission you already granted, a separate supervisor weighs the plan, the task list, and what you said this session, then either allows the stop or tells the agent what to do next (it can answer a question or grant permission on your behalf). Turn on with `/reviewer-agent:stopContinue on acceptRisk`. → [Background work and stop supervision](https://github.com/rladr-org/reviewer-agent#background-work-and-stop-supervision)
- **Stop-continue watchdog** — Claude Code can hit an API failure that makes the agent stop dead and stay stopped until it receives another prompt. The watchdog notices a stalled/idle session and re-prompts it automatically, so stop-supervision — and the run — recovers on its own instead of waiting for you to nudge it. `/reviewer-agent:stopContinueWatchdog on`. → [Commands](https://github.com/rladr-org/reviewer-agent#claude-code-commands)
**Pick any model as the reviewer**
- Host on **Claude Code** or the **Codex GUI**. On the Claude Code host, back the reviewer with **Codex**, **Pi** (any model), or the **Claude Code** CLI itself; the Codex GUI host reviews with its own Codex child. Either way the reviewer is a session separate from the coding agent, so a second perspective catches what the author missed. → [Selecting and verifying a backend](https://github.com/rladr-org/reviewer-agent#selecting-and-verifying-a-backend)
- A small, cheap reviewer (e.g. `gpt-5.6-luna` at xhigh) routinely flags real bugs even against frontier coding agents. Set model, reasoning effort, and timeouts per backend with `/reviewer-agent:reviewerModel …`. → [Commands](https://github.com/rladr-org/reviewer-agent#claude-code-commands)
**Smarter reviews**
- **Agentic Codex review** — reads the staged patch, opens the files it touches and their dependencies, reads tests, and, when relevant, can run your tests in a `workspace-write` sandbox with `.git` read-only. (Pi and Claude backends do a read-only static review with no shell.)
- **Delta re-review on retries** — after a rejection, the next audit is told exactly which staged paths changed since the last review, with diffs inlined from the index so unstaged edits can't be passed off as reviewed. → [Re-attempted commits](https://github.com/rladr-org/reviewer-agent#re-attempted-commits)
- **Skimmed paths (`reviewerAgent-ignore.md`)** — mark auto-generated data (dataset rows, captured HTML, generated manifests) so the reviewer skims those diffs instead of judging individual records; anti-trojan delayed application, self-exemption, and fail-closed parsing keep it from being abused. → [Skimmed paths](https://github.com/rladr-org/reviewer-agent#skimmed-paths-revieweragent-ignoremd)
- **Per-project reviewer brief** — tailor what the reviewer enforces in each repo: copy `reviewerAgent.md.template` to `reviewerAgent.md` at the root and edit it; it becomes the reviewer's standing instructions (`/reviewer-agent:reviewerAgent on` requires it). → [Project brief and capsule](https://github.com/rladr-org/reviewer-agent#project-brief-and-capsule)
- **Persistent directives** — add a standing fact or authorization to every reviewer prompt: `/reviewer-agent:reviewerDirective <text>`.
**Fits your workflow**
- **Question rerouting (with `stopContinue`)** — with `stopContinue` on, an `AskUserQuestion` is turned into a prose question the stop supervisor answers from your established context (or hands back to you), so an idle prompt doesn't stall a run.
- **Verdict history** — approvals, rejections, and no-verdict outcomes (timeouts, cancellations) are recorded per project, outside the repo, so you can see what happened: `/reviewer-agent:reviewerHistory`. → [Verdict retention](ht