
Local Review Codex
Run the CI Codex PR review locally against this branch's unpushed work (committed +...
Install
npx skills add windmill-labs/windmill --skill local-review-codex -g -a claude-code -y- Repository
- windmill-labs/windmill18.4k
- Category
- Git and review
- Updated
- 3d ago
- License
- See repository
- Context cost
- Lightabout 695 tokens
- Runs scripts
- Yes, review before use
What it does
Run the CI Codex PR review locally against this branch's unpushed work (committed + uncommitted) before pushing. Same policy, model and reasoning effort as the codex-pr-review GitHub action.
Local Codex Review (pre-push)
Runs the exact same review Codex performs in CI (.github/workflows/codex-pr-review.yml),
but locally and scoped to work you have not pushed yet, so you catch what CI would flag
before the PR exists. Use this before git push on a non-trivial change.
Correspondence with CI, identical:
- Policy:
REVIEW.md(severity triage, public-surface checklist, AGENTS.md compliance, test coverage). - Model:
gpt-6.1-sol. - Reasoning effort:
model_reasoning_effort="xhigh". - Output: markdown starting with
## Codex Review, findings tagged P0 / P1 / P2 with file:line.
Differences from CI, local-only:
- Scope is the current branch vs
mainat the merge-base, including uncommitted changes (CI reviews a pushed PR diff). - Sandbox is
read-only(CI usesdanger-full-accesson an ephemeral runner). Codex reads the diff and files but cannot modify your working tree. - Fresh context is inherent:
codex execis a separate cold process, so it does not anchor on the current chat session, the same reasonlocal-reviewinsists on a subagent.
Prerequisites
codexCLI >= 0.159.3 installed and authed viacodex loginor anOPENAI_API_KEYin the environment (which takes priority). Older CLIs reject the model with "requires a newer version of Codex";run.shchecks the version up front. Upgrade withnpm install --global @openai/codex@0.159.3(may needsudofor a global install). This matches the pin in.github/workflows/codex-pr-review.yml, the CLI version is the same on both sides.git fetchthe base ref if it's stale, so the merge-base is accurate.
Run
bash .agents/skills/local-review-codex/run.sh # review vs main (default)
bash .agents/skills/local-review-codex/run.sh <base> # review vs a different base ref

