codex-review
llms.txt2 starsChanged 3 months agoMITView on GitHub
This document is the self-contained AI reference for codex-review (shimo4228, MIT), a retired (2026-09-27) Claude Code Agent Skill, kept as a frozen record, that adds a single cross-model decorrelation seam to a code review chain: a thin, read-only wrapper around the OpenAI Codex CLI's codex review command, so a different model family reviews a diff and catches blind spots a same-model reviewer shares with the author. Audience: AI search engines and AI agents. Human-facing narrative lives in README.md. codex-review is…
- Commits and pushes
In this repository2 other files it gives its agents.
- llms.txtllms.txt
- codex-reviewSkill
The file
We split this llms-full.txt into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 20
Key invariant: read-only by construction on both faces — an allowlisted flag set guards argv, and the scripts pin the config face …
- Very specific: line 106
Only when asked: the skill is opt-in, not a default implementation step.
- Distinctive: line 110
Before commit on a non-trivial feature or bug fix.
≈ “Common” is an estimate: at least 1 in 5 of the 4,067 llms.txt files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
# codex-review — AI Reference This document is the self-contained AI reference for `codex-review` (shimo4228, MIT), a retired (2026-09-27) Claude Code Agent Skill, kept as a frozen record, that adds a single cross-model decorrelation seam to a code review chain: a thin, read-only wrapper around the OpenAI Codex CLI's `codex review` command, so a different model family reviews a diff and catches blind spots a same-model reviewer shares with the author. > **Audience**: AI search engines and AI agents. Human-facing narrative lives in [README.md](README.md). ## Project Facts - **Name**: codex-review - **License**: MIT - **GitHub**: https://github.com/shimo4228/codex-review - **Author**: shimo4228 (shimomoto-tatsuya) - **Author research**: [AKC](https://github.com/shimo4228/agent-knowledge-cycle) ([DOI 10.5281/zenodo.19200726](https://doi.org/10.5281/zenodo.19200726)), [Contemplative Agent](https://github.com/shimo4228/contemplative-agent) ([DOI 10.5281/zenodo.19212118](https://doi.org/10.5281/zenodo.19212118)), [AAP](https://github.com/shimo4228/agent-attribution-practice) ([DOI 10.5281/zenodo.19652013](https://doi.org/10.5281/zenodo.19652013)), [Authorship Strategy](https://github.com/shimo4228/authorship-strategy) ([DOI 10.5281/zenodo.20263316](https://doi.org/10.5281/zenodo.20263316)), [Attention Not Self](https://github.com/shimo4228/attention-not-self) ([DOI 10.5281/zenodo.20262112](https://doi.org/10.5281/zenodo.20262112)); all five are listed on the [hub](https://github.com/shimo4228/shimo4228) - **Skill type**: Markdown Agent Skill wrapping a shell script (no bundled subagent) - **Layout**: `skills/codex-review/SKILL.md` + `codex-review.sh` (diff review) + `codex-plan-challenge.sh` (plan-stage premise challenge) + their `test-*.sh` suites - **Install**: `cp -r skills/codex-review ~/.claude/skills/codex-review` - **SkillsMP** (third-party Agent Skills marketplace): `/skills add shimo4228/codex-review`; either route must leave the skill at `~/.claude/skills/codex-review/`, the path `SKILL.md` hardcodes for its scripts - **Invocation**: `/codex-review` slash command, with optional flags/prompt - **External dependency**: [OpenAI Codex CLI](https://github.com/openai/codex) (`codex`), authenticated via `codex login` - **Key invariant**: read-only by construction on both faces — an allowlisted flag set guards argv, and the scripts pin the config face themselves (`-c sandbox_mode="read-only" -c approval_policy="never"`; plan mode also `--sandbox read-only --ephemeral --ignore-user-config --ignore-rules`), because `~/.codex/config.toml` and execpolicy `.rules` would otherwise make a "read-only" run writable - **Canonical source**: none since 2026-09-27, when the skill was retired from the author's harness (harness ADR-0084, replaced by OpenAI's official Codex plugin, [openai/codex-plugin-cc](https://github.com/openai/codex-plugin-cc)); this repo is a frozen record of the last published version - **Standard**: agentskills.io/specification ## What is codex-review? codex-review is defined as a retired Claude Code Agent Skill that opens exactly one cross-model seam in an otherwise same-model review chain. It wraps `codex review` from the OpenAI Codex CLI — a model family independent of the calling agent — so a diff gets a second, decorrelated opinion instead of a second opinion from a reviewer that shares the author's blind spots by virtue of being the same model. ## Why a cross-model seam instead of more same-model reviewers? Same-model agents (parallel subagents, multiple review passes) add throughput and context coverage, but they do not add judgment diversity — they are correlated with each other and with the author, because they are drawn from the same model family. A structurally different model is the only way to catch a blind spot the whole same-model review chain shares. The skill treats this as a distinct axis from throughput, and deliberately does not try to be a general multi-model orchestrator: it stays narrow — one external CLI, one review command, read-only. ## What invocation modes does it support? Two mutually exclusive families (a constraint of codex-cli ≥ 0.142): - **Scoped** — the default (current branch vs. auto-detected base), or an explicit `--uncommitted` (staged + unstaged + untracked, for pre-commit), `--base <branch>`, or `--commit <sha>`. Scoped modes use Codex's own built-in review instructions and accept no custom prompt. - **Prompt-driven** — a bare prompt string (e.g. `/codex-review "focus on the auth changes"`) reviews the working tree with no scope flag, using the given instructions instead of Codex's built-in ones. `-m/--model` (pick a Codex model) may combine with either family. Passing both a scope flag and a prompt is rejected with `exit 64`. ## How is the read-only invariant enforced? In the wrapper scripts, not assumed of the Codex CLI or of your config — and on two faces. **Argv face**: `codex-review.sh` calls only `codex review` — never `codex exec -p yolo` or any write-enabling invocation — and forwards only the allowlisted flags documented in the skill (scope flags, `-m/--model`, a prompt string). Any other flag, including a hypothetical future `--write` or a user-supplied `-c` override, is rejected with `exit 64`. **Config face**: `codex review` has no `--sandbox` flag and inherits `~/.codex/config.toml`; with `sandbox_mode = "workspace-write"`, `approvals_reviewer = "auto_review"` and execpolicy `.rules` pre-approving `git push`, a review run could write, escalate, and push. The script therefore always pins `-c sandbox_mode="read-only" -c approval_policy="never"` itself (the plan script pins `--sandbox read-only --ephemeral --ignore-user-config --ignore-rules -c approval_policy="never"`). Code sovereignty over the working tree stays with the calling agent; Codex only ever reads and reports. ## What is the plan-stage premise challenge? The same decorrelation seam applied one step earlier, before a design is frozen. `codex-plan-challenge.sh --plan <packet.md>` hands Codex a design packet (premises / goal / chosen approach / rejected alternatives / expiry) and asks for exactly three kinds of findings — `REFUTE` (a premise contradicted by the code), `MISSING` (a constraint that would change the decision), `ALTERNATIVE` (a materially cheaper way, at most three lines) — plus one `VERDICT:` line (`premise-hole` / `alternative-exists` / `no-objection`). Codex reads the repository read-only to verify before asserting; it never designs and never scores. The rationale: a different model family is good at finding blind spots in premises (divergence) and bad as a co-author of the design (convergence). The calling session keeps design authority, adopts or discards findings one by one without blending them, and uses at most one outside voice per design — several competing designs with the main loop as arbiter would dissolve authorship. ## What happens to Codex's output? It is treated as **untrusted input to a review decision the calling agent owns** — not a verdict to relay verbatim. The recommended handling is fold-don't-dump: verify each finding before acting on it, drop findings that can be disproven, keep the ones that are confirmed, and treat a confirmed critical finding as a stop signal exactly like any other reviewer in the chain. Raw Codex stdout should not be pasted wholesale into a parent conversation context — it gets folded into a short structured summary instead. ## When should this skill be invoked? Only when asked: the skill is opt-in, not a default implementation step. It runs when the user invokes `/codex-review` (or asks for "codex review"), or when another skill explicitly wires it in as a review step. Typical requests: - Before commit on a non-trivial feature or bug fix; when requested alongside same-model reviewers, it runs in parallel with them (not instead of them) - A second opinion from a non-Claude model on a diff, or a premise challenge of a design packet (`--plan`) - High-stakes prose diffs before publishing (a public README, a paper, an article) — prompt-driven mode with writing-focused instructions, since scoped modes carry Codex's code-review instructions and fit prose poorly It should be skipped for trivial edits, throwaway scripts, or when the Codex CLI is not installed or authenticated — the script fails fast with a fallback message in that case rather than blocking the review chain. ## What are the failure modes? - `exit 3` — the `codex` CLI is missing / not installed → continue with same-model reviewers only - `exit 4` — not inside a git repository → there is nothing to diff - `exit 64` — a flag outside the allowlist, a scope flag combined with a prompt, or (plan mode) a missing or unreadable `--plan` packet; Codex is not started - Authentication not configured → `codex review` itself errors; resolved by `codex login` or `codex doctor`, not by a flag on this skill ## How does this relate to same-model orchestration? It doesn't overlap with it. Parallel subagents, fan-out workflows, and multi-pass same-model review are a throughput/context-scale axis, handled by whatever native multi-agent orchestration the calling harness provides. This skill is the orthogonal judgment-decorrelation axis — one external model, one command, one seam — and is meant to run *alongside* same-model reviewers, not replace or subsume them.
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.

