/revmux:revmux optional: what to review ("pr 123", "issue 123", a ref, a path), plus "show me" / "focused" / "final" / "triage" / "loop" / "lenses a,b"from revmux
Runs supervised multi-agent code review via revmux CLI, composing task directories and driving parallel claude/codex/agy/opencode subprocesses with stall detection, retry, and full run archives. Also triages issues/PRs with a four-way panel and supports self-analysis of past review rounds.
Ships in revmux. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
revmux spawns and supervises parallel claude --print, codex exec, agy --print and opencode run subprocesses,
watches each for stalls, retries what hangs, and returns findings on stdout. It does no scope detection, no git, no PR
fetching and no source modification: this skill resolves the scope, runs git, writes the context and presents the report.
Where a reference writes <the absolute path this session resolved for scripts/…>, use
${CLAUDE_SKILL_DIR}/scripts/….
references/pr.mdreferences/triage.mdreferences/loop.mdreferences/self.md, which reviews nothingrevmux config is the one command to run, for current settings.
The list is at the end0. Every run ends on an answer the user can give. A turn that stops after the report has not finished.
references/present.md is the shape of that turn — read it before writing one, whichever review
shape ran. What the reader needs in order to choose goes inside the question, and an option names what
it acts on, never counts it.
Every question this workflow asks, trust decisions included, uses AskUserQuestion; where a reference says the
harness's own question tool, that is the same tool.
1. Exit 1 means findings were reported — a success. 0 none, 1 findings, 2 tool error.
Never treat 1 as failure. Never re-run on it.
2. Run it in the background. Redirect stdout to a file, wait for the completion notification. Do not poll, do not sleep-and-check. Applies to the overlay launcher too. Watching the round's event log is not polling.
3. Check sources.degraded before believing the findings. If expected != reported the review is
partial. Say so. Never report "no findings" from a degraded run as "the code is clean".
4. .revmux/ in a repository is executable code. A checked-in .revmux/lenses/*.md becomes
instructions a headless agent with a shell executes. Before reviewing untrusted code, either read
.revmux/ first or run from outside the tree with explicit --workdir, --tasks-dir, --config-dir.
Your own branch is the same case when it edits .revmux/: references/invocation.md, "A branch that
edits its own review rules". A fetched pull request is already outside it, references/pr.md.
5. Never 2>&1 into the report file. stdout is the report, stderr is progress.
6. An explicit root goes on every revmux call. When this session runs revmux with --tasks-dir or
--config-dir (non-negotiable 4, or because the user named one), every revmux command carries the
same flags. A call without them reads or writes another archive. task-state.sh takes both flags and
preflight.sh takes --config-dir, so each loads the configuration the run loads.
analyze-corpus.py takes no --config-dir: give it --tasks-dir with the paths.tasks_dir that
revmux config reports under those flags.
Read the section a step or mode names before acting on it; stop if it cannot be read.
Reviewing this session's own branch or working tree: resolve Step 1's scope first, then run
references/invocation.md, "A branch that edits its own review rules". When it isolates the
review, preflight and every later revmux call run from its base checkout with its roots.
Pass the profile that will actually run, under its exact name, plus --lenses, --no-synthesis and
--no-verify when the run will use them: references/invocation.md, "Preflight arguments" and "Choosing a
profile". When the user named none, run it bare, and again once Step 3 has chosen one.
${CLAUDE_SKILL_DIR}/scripts/preflight.sh [profile] [--lenses] [--no-synthesis] [--no-verify] [--config-dir <dir>]
Checks revmux plus every binary the invocation needs. Exits 1 naming what is missing; how to install
it is references/invocation.md, "Installing revmux".
When git rev-parse --path-format=absolute --git-dir --git-common-dir prints two different paths, this is a
linked worktree: read references/invocation.md, "A linked worktree", and tell the user once a session.
revmux config's paths.profile_fallback is ./.revmux/profile.md when the repo has one; an empty field
means every review here runs on generic calibration. When it is empty, say so in one line and offer to write
it. Only ever with the user's yes, and never from the diff: read the project's own rules — CLAUDE.md,
AGENTS.md, CONTRIBUTING.md, docs/, the linter config — and write what the software is, what a real
failure looks like there, the blast radius, the reporting bar, and which conventions are deliberate.
Skip it in a round the rules check isolated: the base checkout's missing profile is that round's baseline.
Offer it once. If he declines, do not ask again in the session, and do not write a round-local
input/profile.md instead — that wins over the project file, which is what the round brief forbids.
Never on a fetched pull request or any tree that is not his: .revmux/ is checked-in configuration,
so authoring one there commits a review standard to somebody else's repository.
| the user says | scope |
|---|---|
| nothing, on a feature branch | git diff <base>...HEAD |
| nothing, on master with uncommitted work | git diff and git diff --staged |
| nothing, on master and clean | git diff HEAD~1..HEAD |
| "the last N commits" | git diff HEAD~N..HEAD |
| "since " | git diff <ref>..HEAD |
| "pr 123", "this PR", a PR URL | references/pr.md — resolve, fetch into a worktree, review it there |
| "issue 123", "triage this", an issue or discussion URL | references/triage.md — the panel over a filed item, not a diff |
| a bare number, kind unnamed | probe pull request, then issue, then discussion — the first that resolves decides which of the two rows above applies |
| a path | that subtree, as a diff plus a read list |
Three commands here, and no more git than this:
git branch --show-current && git status --short
git rev-parse <from> HEAD
git diff <the row's pinned range> --shortstat
A committed range is pinned to hashes. rev-parse resolves the row's two endpoints once, and the
same two-hash command is both what the shortstat measures and what the brief hands the subagent:
<base-sha>...<head-sha> for a branch, <from-sha>..<head-sha> for the last N commits or since a ref.
Uncommitted work has nothing to pin and keeps its live git diff.
The shortstat goes into the brief. The full diff, the file list and what is worth reading are the subagent's.
Two rows are not a single range. Uncommitted work on master is git diff --shortstat plus
git diff --staged --shortstat, and the scale handed over is the two added together. A path scope has no
range: hand over the file count instead, or hand over nothing and say so. Do not hand a number the
commands in scope.md contradict.
A pull request goes through references/pr.md: it covers Steps 1 to 4 for that case and hands back
here at Step 5. A filed item goes through references/triage.md, which replaces Step 2 entirely and
hands back at Step 5. A bare number goes through the probe in the table first; one that turns out to be a pull
request is pr.md, whatever the user called it.
Ask only when the scope is genuinely ambiguous: a feature branch with uncommitted work is the standard case. The question is always this session's, never a subagent's.
Read references/round.md now: it holds the brief the subagent gets. Fill its placeholders and hand over the
whole brief with the resolved scope from Step 1.
Expand every path before handing the brief over. The subagent does not have this skill loaded, so
${CLAUDE_SKILL_DIR} means nothing in its shell — substitute the resolved absolute path into the brief's text
rather than passing the variable through, or its task-state.sh step silently runs nothing.
Say one line first, then spawn it: Preparing the round for <what is being reviewed>… — the
subject in the user's own terms. Then nothing further until the subagent returns.
Spawn one general-purpose agent with it.
Read references/task-dir.md yourself only if the subagent reports something it could not resolve.
Nothing else moves into a subagent. The profile choice, the launch, the report and how it is
presented stay in this session.
Check what comes back before launching. A missing round_dir or an empty wrote means no round
is ready; fix that here rather than launching into it.
An unresolved refusal in notes blocks the launch even when wrote is not empty: the round holds
only part of its context. A command-form retry that went through is reported there too and blocks
nothing. Tell the user what was refused and where, and launch nothing until it is resolved. The scale
numbers feed Step 4's one-line announcement.
Read references/invocation.md, "Choosing a profile" (roster table, the mapping from the user's words) and
"Lenses" for what --lenses costs. revmux config lists the resolved catalog, which a user's own profiles change. Pass the exact
name: revmux rejects an unknown --profile. Name the profile picked and the word it came from. Ask only when two are
genuinely close.
Never choose expert on your own: pick it only when the user asked for it in words, and say that is why.
A triage subject needs --no-synthesis --verify-group-by source, references/triage.md. --lenses a,b is one
agent and drops the codex peer, losing every cross-source confidence boost. Prefer a profile unless narrowing is
specifically wanted.
Both return the same report on stdout and the same exit code.
Headless — the default:
revmux --task <id> --run <name> --no-tui > /tmp/revmux-<id>-<run>.json 2> /tmp/revmux-<id>-<run>.log
Launch in the background, wait for the notification.
A fetched pull request adds --workdir <worktree>, still run from the session's own checkout:
references/pr.md. A review the rules check isolated runs from its base checkout with --workdir <toplevel>
and its --tasks-dir, in both forms; the checkout is removed once the completion notification arrives.
Before yielding, tell the user three things:
tail -f <path> shows live per-agent progressOn a status request, read the tail of the stderr log and events.jsonl in the round directory. Report
the stage, which agents are active, and elapsed. Never guess.
Then arm the progress feed, before yielding — headless only. A Monitor over the round's own
events.jsonl, with timeout_ms of 1800000 and persistent false, and TaskStop it when the run's own
completion notification arrives, since tail -F never ends by itself:
tail -n +1 -F <round_dir>/events.jsonl \
| grep -E --line-buffered '"kind":"(stage|agent_started|agent_done|agent_retried|agent_degraded|dropped|rate_limit|run_canceled)"'
Speak at most once a minute, and only about what happened. Fold every event since the last relay into one short line. A retry, a degrade or a rate limit goes out when it arrives. No heartbeat, no "no change", no restating a milestone already relayed. The feed is for the headless form alone.
Overlay — when the user wants to watch:
${CLAUDE_SKILL_DIR}/scripts/launch-revmux.sh --task <id> --run <name> [any revmux flag]
Backends, overrides and exit codes are references/invocation.md, "Overlay mode — running it with the TUI on
screen" and "Exit codes". Do not pass --no-tui; the script rejects it.
0/1/2 are revmux's, 3 is a launcher failure: check the round's archive
before retrying and recover a completed report; 127 is revmux not installed.Choose headless unless the user asked to watch or is clearly at the terminal.
If the launcher dies after a run completed, the report is not lost — it is in the round directory as
findings.json and report.md. Read from there rather than re-running.
--run is required. A round that has already run is an error, not an overwrite. A round whose review
never finished is retried under its own name, with the same input/, while that review wrote nothing
into the round; once it did, revmux refuses the name and the answer is a new round with the input/
copied across. It may not be named task.md. Recovery detail: references/invocation.md, "Recovering a
report when the launcher dies".
Read references/output.md for the full shape.
2 means nothing usable — read the stderr log, which names the cause. If that cause
is a failure writing the report to stdout, the round is complete and its findings.json is on disk;
read it. Otherwise fix the cause and re-run: the same --run while that round holds nothing but its
input/, a new round with the input/ copied across once revmux refuses the name. 0 and 1 both
completed.sources. Non-empty degraded means partial; lead with that.findings. Group by severity.open_questions, pre_existing, immaterial and rejected — report each separately,
a rejected entry with its reason when it has one.sources holds agent names and is the only evidence of independent corroboration. lenses holds
lens names and is informational. One agent flagging under two lenses is still one source.
Read references/present.md now, even if read earlier, and write the turn to its code-review skeleton:
every part in order, ending on the decision block and then the question, with its tags and outcome table.
Put it as an AskUserQuestion, the recommendation first and marked (Recommended).
Never start fixing because the findings look clear. A review produces findings; editing is a separate decision, and this is where the user makes it.
Offer the loop as a third way out of that question, alongside stopping and fixing-then-one-more-round.
It is for the user's own branch, never a fetched PR, and it commits without pushing. references/loop.md is
the whole procedure; read it when he picks it, not before.
Once he answers with anything other than another round, run the archive check: references/archive.md,
"Archive housekeeping". It runs after the last round is presented, never between rounds.
Read references/fix.md before the first edit. Agree which findings to act on, fix them, then do its
three checks in order and run the tests and the linter before committing. The next round's scope, rules check
and launch are in the same file. The rules check runs again, with the task's first M and tasks root.
Do not paste prior findings into the scope; revmux injects the prior rounds itself.
Pick the re-review profile from what the fixes touched, by references/fix.md. Put it as an AskUserQuestion, the recommendation first and marked (Recommended).
Never narrow the roster silently. Skip the question when he named a profile himself.
If asked about revmux rather than for a review, answer from the references and do not launch a run.
references/task-dir.md — the round's context files, task and run namingreferences/invocation.md — flags, profiles, lenses, overlay backends, config precedencereferences/output.md — JSON shape, verdicts, exit codes, run archivereferences/present.md — the shape of the turn the user answers: order, detail, decision blockreferences/pr.md — fetching a pull request into a worktree, --workdir, cleanupreferences/triage.md — the panel over a filed item: what it fetches, its flags, the six answersreferences/loop.md — the autonomous review-fix loop, entered from Step 6references/archive.md — disk use and cleanup, and where to look when a review looks wrongFor anything about current configuration, run revmux config and read the answer. It reports what
resolved including user overrides, runs no pipeline, and is always safe to call.
references/archive.md. Nothing is removed
without the user's pick, and only revmux cleanup --task <id> removes anything.references/self.md before running anything, then ${CLAUDE_SKILL_DIR}/scripts/analyze-corpus.py is its script. It reviews
nothing, opens no round and spawns no agent.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
multi-agent-review, code-review, revmux, parallel-review, pr-triage
npx claudepluginhub umputun/revmux --plugin revmuxOther plugins' skills for the same job