Run the bundled Codex/Claude autoreview helper as a structured second-model closeout. Use for explicit autoreview or tool-backed final-review requests after builder proof exists; it validates findings and reruns focused tests but does not issue a ship decision.
98
98%
Does it follow best practices?
Impact
98%
1.44xAverage score across 4 eval scenarios
Passed
No known issues
Run the bundled structured review helper as a closeout check. This is code review, not Guardian auto_review approval routing.
Use when:
Use references/troubleshooting.md for heartbeat patience, Gitcrawl repair, regression provenance, security-suppression, and conscious-rejection rules.
Use references/scope.md before accepting a fix that could expand the task, touch release process, or start a third review-triggered patch cycle.
AUTOREVIEW and AUTOREVIEW_HARNESS once for the active skill location.Set the skill script paths once, then use "$AUTOREVIEW" and "$AUTOREVIEW_HARNESS" in the examples below.
Choose one:
# Project-local skill in the current repo:
export AUTOREVIEW=".agents/skills/autoreview/scripts/autoreview"
export AUTOREVIEW_HARNESS=".agents/skills/autoreview/scripts/test-review-harness"# Source checkout of openclaw/agent-skills:
export AUTOREVIEW="skills/autoreview/scripts/autoreview"
export AUTOREVIEW_HARNESS="skills/autoreview/scripts/test-review-harness"# Global skill:
export AGENTS_HOME="${AGENTS_HOME:-$HOME/.agents}"
export AUTOREVIEW="$AGENTS_HOME/skills/autoreview/scripts/autoreview"
export AUTOREVIEW_HARNESS="$AGENTS_HOME/skills/autoreview/scripts/test-review-harness"When using Claude Code, set AGENTS_HOME="$HOME/.claude" for global skills. Project-local skills live under .claude/skills/ in the current repo.
Dirty local work:
"$AUTOREVIEW" --mode localUse this only when the patch is actually unstaged/staged/untracked in the
current checkout. --mode uncommitted is accepted as an alias for --mode local.
For committed, pushed, or PR work, point the helper at the commit
or branch diff instead; do not force dirty modes just
because the helper docs mention dirty work first. A clean local review
only proves there is no local patch.
Branch/PR work:
"$AUTOREVIEW" --mode branch --base origin/mainOptional review context is first-class. Prompt files and datasets must be repo-relative so review bundles cannot pull arbitrary host files:
"$AUTOREVIEW" --mode branch --base origin/main --prompt-file review-notes.md --dataset evidence.jsonIf an open PR exists, use its actual base:
base=$(gh pr view --json baseRefName --jq .baseRefName)
"$AUTOREVIEW" --mode branch --base "origin/$base"Committed single change:
"$AUTOREVIEW" --mode commit --commit HEADUse commit review for already-landed or already-pushed work on main. Reviewing
clean main against origin/main is usually an empty diff after push. For a
small stack, review each commit explicitly or review the branch before merging
with --base.
The helper scans the full patch before checking its aggregate prompt limit. It fails closed when the complete bundle does not fit one review pass, because independent chunks can miss defects that span files or chunks. Split the change into coherent targets and review each target explicitly.
Format first if formatting can change line locations. Then it is OK to run tests and review in parallel:
"$AUTOREVIEW" --parallel-tests "<focused test command>"Parallel tests receive a temporary home and a sanitized environment. The helper also fingerprints the source tree before and after review, so test mutations invalidate the result instead of silently producing a stale clean verdict.
Run multiple reviewers against one frozen bundle:
"$AUTOREVIEW" --reviewers codex,claude--panel is shorthand for Codex plus Claude unless --engine changes the first reviewer:
"$AUTOREVIEW" --panelSet reviewer models and thinking/effort explicitly:
"$AUTOREVIEW" --reviewers codex,claude --model codex=gpt-5.6-sol --thinking codex=high --model claude=claude-fable-5 --thinking claude=maxInline syntax is also supported for simple model IDs:
"$AUTOREVIEW" --reviewers codex:gpt-5.6-sol:high,claude:claude-fable-5:maxCodex maps thinking to model_reasoning_effort and accepts none, minimal,
low, medium, high, xhigh, or max. Claude maps thinking to --effort
and accepts low, medium, high, xhigh, or max.
For models with slashes or extra colons, prefer keyed form:
"$AUTOREVIEW" --reviewers codex,claude --model codex=gpt-5.6-sol --model claude=claude-fable-5Use references/engine-details.md for model defaults, preferred model lists, environment overrides, and Codex/Claude isolation details.
Run the helper directly so target selection, engine choice, structured validation, and exit status all stay in one path. If output is noisy, summarize the completed helper output after it returns; do not ask another agent or reviewer to rerun the review.
After setting AUTOREVIEW and AUTOREVIEW_HARNESS above:
"$AUTOREVIEW" --helpThe smoke harness has thin shell wrappers over a shared Python implementation:
"$AUTOREVIEW_HARNESS" --fixture benign --engine codexInclude:
Do not run another review solely to improve the final report wording. If the final helper run exited 0 and produced no accepted/actionable findings, report that exact run as clean.