ワンクリックで
autoreview
// Autoreview closeout: local dirty changes, PR branch vs main, parallel acpx checks.
// Autoreview closeout: local dirty changes, PR branch vs main, parallel acpx checks.
| name | autoreview |
| description | Autoreview closeout: local dirty changes, PR branch vs main, parallel acpx checks. |
Run Codex's built-in code review as a closeout check. This is code review
(codex review), not an ACP runtime approval mode.
Codex native review mode is the preferred path. Non-Codex reviewers are fallback/second-opinion paths that receive a generated diff prompt, not the native Codex review runtime.
Use when:
claude -p, pi -p,
opencode run, droid exec, or copilot.codex review just
to get prettier closeout wording.Dirty local work:
.agents/skills/autoreview/scripts/autoreview --mode local
Use this only when the patch is actually unstaged/staged/untracked in the current checkout.
Branch/PR work:
git fetch origin
.agents/skills/autoreview/scripts/autoreview --mode branch --base origin/main
If an open PR exists, the helper uses its actual base through ghx when
available, then gh.
Committed single change:
.agents/skills/autoreview/scripts/autoreview --mode commit --commit HEAD
Use commit review for already-landed or already-pushed work on main.
Format first if formatting can change line locations. Then it is OK to run tests and review in parallel:
.agents/skills/autoreview/scripts/autoreview --parallel-tests "pnpm run check"
By default, when package.json, pnpm-lock.yaml, node_modules, pnpm, and a
check script are present, the helper runs:
PNPM_CONFIG_PM_ON_FAIL=ignore PNPM_CONFIG_VERIFY_DEPS_BEFORE_RUN=false PNPM_CONFIG_OFFLINE=true pnpm run check
Disable auto tests with AUTOREVIEW_AUTO_TESTS=0.
.agents/skills/autoreview/scripts/autoreview --help
The helper:
--uncommitted firstghx pr view or gh pr view worksorigin/main for non-main branches--reviewer codex|claude|pi|opencode|droid|copilot|auto--fallback-reviewer auto|claude|pi|opencode|droid|copilot|none--dry-run, --parallel-tests, and commit refs--no-yolo or
AUTOREVIEW_YOLO=0 to opt outCODEX_REVIEW_* env vars when the matching
AUTOREVIEW_* var is unsetautoreview clean: no accepted/actionable findings reported when the
selected review command exits 0 with no accepted/actionable findingsBranch mode may fail on Codex CLI versions that reject --base plus prompt
injection. On that exact parser error, rerun plain codex review --base <ref>
instead of falling back to a non-Codex reviewer.
Include:
Do not run another Codex 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.