Repository navigation
review: one run per head, configured by three keys - #76
Merged
Merged
Conversation
A head carried a run per configured runner so that Codex could stand beside a review of my own as a second opinion. Nothing here runs Codex, so that one idea was paying for an ordered runners array, a runner suffix in every storage key, a runner field on every record, the supporting-versus-deciding split and its stamp switch, a runner flag on two commands, and two questions in init. What a run opens on becomes configuration instead: a slash command, the effort word after it, and my own review brief, each overridable for a single run by a flag. The brief rides on --append-system-prompt beside a command, because what a slash command does with its arguments is its business and not this tool's. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The glossary loses the three runner entries and gains the review turn, an ADR records why the second opinion went and why a slash command costs two turns, and the README, the design snapshot and the skill say what the tool does today. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The glossary stopped having a runner, so the code stops naming one. An adapter is named for the boundary it owns - `gh.ts`, `git.ts` - and this one owns Claude Code, so `runner.ts` becomes `claude.ts` and `RunnerFailed` becomes `AgentFailed`, whose field already held a program name. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The strict decode is why a removed key stops every command, and the rejected alternatives - tolerating a dead key, rewriting the file behind me - are the kind a reader would otherwise suggest again. That is a decision of its own, not a consequence of the one that removed the keys. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
dominikwozniak
force-pushed
the
refactor/74-one-review-run
branch
from
September 17, 2026 21:02
fd34809 to
298285b
Compare
This was referenced Sep 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A pull request carries one review run, on Claude Code, and what that run opens on is configuration
rather than a string literal. Three keys say it —
review.command,review.effort,review.prompt—and each is overridable for a single run by a flag, because the review I want today is not always the
one the repository is set up for. Codex goes, and with it the second opinion that paid for an ordered
runners array, a runner suffix in every key, a
runnerfield on every record, thesupporting-versus-deciding split, and two questions in
init.What changes
src/adapters/claude.ts— wasrunner.ts; owns the boundary the waygh.tsandgit.tsdo.reviewTurnstakes the turn and spawns it: two turns for a slash command, one for the tool's ownprompt with the schema inline. My own brief rides on
--append-system-promptbeside a command.src/domain/persona.ts—turnFordecides which of the two a run is;review.skillisreview.promptand reaches every shape rather than only the ones nothing configured.dw-mc review— gains--command,--prompt,--model,--prompt-onlyand--command-only;--effortwidens tolowthroughmax.dw-mc initasks nothing;dw-mc findingsloses--runner.and the two decisions get their own records: one run per head, and what happens to a configuration
file this version cannot read.
Test plan
pnpm check— pass (lint, format, typecheck, 656 tests, build)src/adapters/claude.test.ts— four new cases overreviewTurns: one turn on the prompt, two on aslash command,
--append-system-promptbeside the command, and a guard that the command turn isnever handed
--json-schemasrc/domain/persona.test.ts— five new cases overturnFor, one per shapenode dist/bin.js findings …against the realconfig.yaml— the migration error named all threeremoved keys and said
review.skillisreview.promptnowdw-mc reviewto confirm--append-system-promptsteers a/code-reviewrun, thatxhighis accepted, and that the resumed findings turn still finds itssession. Fallbacks for all three are recorded in ADR 0009.
Risk
The configuration file changes shape, so every command stops until three keys are edited — the error
names them, and
git revertplus the old file is the way back. Review runs recorded by an earlierversion are not read by this one, which costs one re-review per pull request.
Closes #74