review-sweep
Skill0 starsChanged 16 days agoMITView on GitHub
Use when the user asks for a deep, thorough or multi-pass review of finished work — a branch, the unpushed commits or the uncommitted changes — before a merge, a PR or a release (\"passe une review complète\", \"sweep this branch\", \"review everything before I merge\"), or when an agent wants an unattended review-and-fix pass (`auto`). A budget of cheap read-only reviewer agents cut into waves; after each wave the session triages every finding, fixes the confirmed ones, verifies and checkpoints, so the next wave reviews the fixed state. Code and docs in the same sweep. Not for a one-file diff (one `reviewer` is enough) nor for work still being built (architect-flow has its own review).
3 other projects use a version of this.
Adopted by
Most recently taken up by
- sreejithraman/SreeStacktheir own version, first seen Oct 27, 2026
- amit-nayar/skillstheir own version, first seen Oct 15, 2026
- rlaope/oh-my-hermestheir own version, first seen Sep 11, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- rlaope/oh-my-hermes★ 3ksame name
- sreejithraman/SreeStack★ 1same name
- amit-nayar/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository23 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- apps-configSkill
- architect-flowSkill
- bootstrap-aiSkill
- code-healthSkill
- csharp-toolsSkill
- headless-ui-smokeSkill
- launch-and-deploySkill
- macos-local-codesignSkill
- mobile-webSkill
- portable-projectSkill
- tech-researchSkill
- test-tiersSkill
- threat-modelingSkill
- ui-craftSkill
- ui-doctorSkill
- ui-motionSkill
- ui-stress-testSkill
- ui-variantsSkill
- web-accessibilitySkill
- web-art-directionSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 29
Not empty → dirty: the user's pending work is reviewed too, but a sweep commit would mix it in, so fixes stay in the working tree and each …
- Distinctive: line 89
Never ask: no base → stop with "pass a base ref".
- Very specific: line 103
Only fix verdicts change anything.
- Distinctive: line 104
Never push, force-push, rebase or reset in a sweep.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Review sweep
Depth comes from waves: each wave is a fresh set of reviewer agents reading the branch
as it is now, after the earlier waves' fixes. Cheap reviewers over-report (recall); you
verify every finding at its source (precision); only confirmed findings change anything.
1. Scope (one line before any spawn)
- Source: the current branch. Base: the ref the user gave, else
git merge-base HEAD "$(git symbolic-ref --short refs/remotes/origin/HEAD)", elseorigin/master/origin/main; on the default branch itself that is the unpushed work. No base found → ask (unattended: stop, "pass a base ref"). - Review set:
git diff --name-only -M -C <base>plusgit ls-files --others --exclude-standard— committed, uncommitted and untracked work. Nothing in it → say so and stop. - Anchor (what the branch is for — coverage and divergence are measured against it): the
user's intent statement, else a plan in
docs/plans/the commits name, elsegit log <base>..HEADpasted verbatim. None → the sweep still runs, without coverage and divergence, and the report says so. - Measure: changed lines, as the shared review protocol
../architect-flow/references/review.md§1 counts them (review.mdbelow). - Tree state:
git status --porcelainempty → clean: each wave's fixes are committed. Not empty → dirty: the user's pending work is reviewed too, but a sweep commit would mix it in, so fixes stay in the working tree and each wave is snapshotted instead (§3).
Announce: base, scope, anchor, budget (and the measure it came from), wave cut, tree state,
and unattended with each default taken.
2. Budget and waves
The budget N is the total number of reviewers for the whole run. The user's number wins
either way. Else:
| Changed lines | N |
| ≤ 800 | 2 |
| 801 – 2500 | 4 |
| 2501 – 6000 | 6 |
| 6001 – 13000 | 8 |
| > 13000 | 10 |
At most 8 reviewers run at once: N is cut into waves of 8, the remainder last (10 →
8 + 2; 20 → 8 + 8 + 4). A clean wave does not refund the budget — the run ends when every
budgeted reviewer has reviewed.
3. Each wave
- Shard the current review set per
review.md§1 (slices of whole files, second readers when files run short, the last reviewer cross-cutting). - Spawn the wave in one message:
subagent_type: "reviewer",modelthe configured model for step review (defaulthaiku), with the same fallback (resume once, then Sonnet). Whenreview-prefilterismlxand the local-model offload skill's health check answers, run that free pass first; these reviewers still run and you still triage. Never on a work environment and never for a security review. Each brief: the repo root, the base, "reviewgit diff -M -C <base>plus the untracked files", the anchor verbatim, its slice, and from wave 2 on the wave log. - Triage per
review.md§2: merge, evidence first, verify at the source, one verdict each (fix,dismiss,defer), the severity confirmed or corrected. A finding the wave log already holds is dropped unless it brings new evidence — then it re-opens. - Fix the
fixverdicts yourself (abugstarts with its failing test; a divergence where the code is right isdismiss — accepted, orfix — amend <plan>when a plan file is the anchor). Adefernever blocks the sweep: it waits for the final report. - Verify: the project's own gate (
./check.sh, else its documented tests) on a wave that touched code; a docs-only wave re-reads each edited section against its finding. Not green → fix before the next wave. Checkpoint: clean tree →
fix(review): sweep wave <w> — <n> fixes(only the files the fixes touched). Dirty tree → a snapshot outside the repo, nothing staged:S="${TMPDIR:-/tmp}/review-sweep-$(basename "$PWD")"; mkdir -p "$S" # outside the repo cp "$(git rev-parse --git-path index)" "$S/sweep.index" GIT_INDEX_FILE="$S/sweep.index" git add -A && GIT_INDEX_FILE="$S/sweep.index" git write-treeTake
<T0>this way before wave 1; after wavew,git diff <T0> <Tw> > $S/wave-<w>.diffis exactly the sweep's fixes.- Log one line per finding, appended, also mirrored to
$S/log.txt(it must survive a compaction):wave <w> F<n> [tag|severity] <file:line> — <defect> — <verdict> — <reason>.
4. Unattended (auto, or no way to ask)
Never ask: no base → stop with "pass a base ref"; no intent → the commit messages; a dirty tree → the dirty mode above. Defers go into the final report with their question.
5. Final report
The scope line as executed (fallbacks to Sonnet, timeboxed reviewers); per wave: reviewers,
findings, verdicts; the severity tally of every finding's latest line, with a
recommendation — an unfixed critical/high → another sweep is warranted, only
medium/low left → likely not; the totals (fixed, dismissed, deferred — each defer with its
question); the commits or the snapshot paths; any slice no reviewer covered.
Guardrails
- The reviewers never fix and never verdict; you never skip verifying a finding.
- Only
fixverdicts change anything. Rubber-stamping is as wrong as dismissing all. - Never push, force-push, rebase or reset in a sweep; never commit the user's pending work.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

