Repository navigation
v1.0.1
Fixes
- Pre-commit gate is fail-closed end to end. A commit passes only when the staged diff was captured and
codexexits 0 with a verdict startingALLOW:. A failed or emptygit diff --cached, a non-zero codex exit, or a timeout now blocks the commit, even if codex wrote anALLOW:line. - Clearer block messages. When codex fails without a verdict, the gate reports the exit status (or the timeout) and shows the last 20 lines of codex's own output.
- Ephemeral reviews. The gate runs
codex exec --ephemeral, so staged diffs are not kept in codex's session history. Diff capture uses--no-ext-diff --no-colorso user git config cannot alter what codex reviews. - Review skill prompt usage.
codex exec reviewrejects a custom prompt combined with--base,--uncommittedor--commit; the skill now names the diff inside the prompt instead.
Requirements
- codex-cli 0.119.0 or newer (verified against 0.160.0).
/codex-review:initnow stops when an older codex is installed.
Upgrading the gate in a repository
The hook is a copy in .githooks/pre-commit. Run /codex-review:init in each repository to replace it with this version.
Full changelog: v1.0.0...v1.0.1