codex-bridge
Skill17 starsChanged 3 months agoMITView on GitHub
Shared mechanics for calling the Codex CLI to review plans. Reference for the codex-review-plan, review-codex-plan, and plan-debate skills — not invoked directly. Holds the wrapper invocation, reviewer prompt template, and gotchas.
7 other projects use a version of this.
Adopted by
Most recently taken up by
- buidangminh23/codex-mcp-bridgetheir own version, first seen Oct 26, 2026
- UNLINEARITY/CLI-WeChat-Bridgetheir own version, first seen Oct 25, 2026
- AgentShekel/agentic-workflowtheir own version, first seen Oct 14, 2026
- awslabs/agentic-developer-platformtheir own version, first seen Oct 13, 2026
- w4sspr/codex-bridgetheir own version, first seen Sep 8, 2026
- 651002/codex-eyes-handstheir own version, first seen Aug 15, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- UNLINEARITY/CLI-WeChat-Bridge★ 565same name
- yaohui325/codex-bridge★ 48same name
- buidangminh23/codex-mcp-bridge★ 32same name
- awslabs/agentic-developer-platform★ 7same name
- 651002/codex-eyes-hands★ 4same name
- AgentShekel/agentic-workflow★ 4same name
- w4sspr/codex-bridge★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository14 other files it gives its agents.
- codex-review-planSkill
- overleafSkill
- plan-debateSkill
- power-firstSkill
- referee-panelSkill
- refresh-pipelineSkill
- review-codex-planSkill
- robustness-batterySkill
- spec-curve-sweepSkill
- stata-preflightSkill
- sync-overleafSkill
- tableSkill
- verify-claimsSkill
- verify-numbers-pipelineSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
2
Distinctive
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 14
All Codex calls go through one saved script (never inline the codex exec invocation):
- Distinctive: line 48
If you ever see "not supported when using Codex with a ChatGPT account", that model isn't allowed under this auth — pick another slug from …
- Distinctive: line 62
If it can't find any, it exits 127 with an install hint.
- Very specific: line 103
Keep the full Codex review in the temp <out_file> (e.g.
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Codex Bridge (shared mechanics)
This is a reference skill. Don't trigger it on its own — the three workflow
skills (codex-review-plan, review-codex-plan, plan-debate) read it so the
Codex-calling mechanics live in exactly one place.
The wrapper
All Codex calls go through one saved script (never inline the codex exec
invocation):
~/.claude/skills/codex-bridge/codex-exec.sh <project_dir> <out_file> [extra codex args...]- The full prompt (instructions + the plan/text) is piped to stdin.
- The agent's final message (the review) is written to
<out_file>and echoed to stdout. - Codex runs
--sandbox read-only: it reads the codebase but cannot modify anything. --skip-git-repo-checkis on (research dirs often aren't git repos).
Standard call (from a Bash tool call)
PROMPT_FILE=/tmp/codex-prompt-$$.md # compose instructions + <PLAN> into this
OUT=/tmp/codex-plan-review-$$.md
bash ~/.claude/skills/codex-bridge/codex-exec.sh "$PROJECT_DIR" "$OUT" < "$PROMPT_FILE"Always set a long Bash timeout (~600000 ms). Effort defaults to the config's
model_reasoning_effort (see ~/.codex/config.toml), which can take several minutes at
high settings.
Model (important — ChatGPT-account auth)
The wrapper does not force a model: ~/.codex/config.toml decides. This matters if you
authenticate Codex with a ChatGPT account rather than an API key, because exec rejects
some models under that auth.
- Override with env
CODEX_REVIEW_MODEL=<model>or by passing-m <model>to the wrapper (your-mwins). - Available slugs are listed in
~/.codex/models_cache.json.
If you ever see "not supported when using Codex with a ChatGPT account", that model isn't allowed under this auth — pick another slug from the cache file.
Speed overrides (optional extra args)
- Faster turnaround: append
-c model_reasoning_effort=high(or=lowfor smoke tests). - Or pass a lighter model with
-m <model>.
Binary location
Codex ships inside the ChatGPT desktop app and is usually not on PATH. The
wrapper resolves it as command -v codex → fallback
/Applications/ChatGPT.app/Contents/Resources/codex-cli/CodexCLI.app/Contents/MacOS/codex
→ fallback /Applications/Codex.app/Contents/Resources/codex (old standalone app).
If it can't find any, it exits 127 with an install hint.
Reviewer prompt template
Compose this (filling <PLAN>) and pipe it to the wrapper. For
review-codex-plan's "generate a plan first" path, swap in the drafting variant
below.
Review template:
You are a senior engineer doing an adversarial review of another AI's implementation plan for THIS repository. Read whatever files you need to validate it against the actual code. Identify, concretely and with
file:linereferences:
- Incorrect assumptions about the codebase or existing APIs.
- Missing steps, edge cases, or dependencies the plan overlooks.
- Risky or breaking changes, and how to de-risk them.
- Simpler / more idiomatic approaches that reuse existing code.
- What the plan gets right (brief).
End with (a) a prioritized, actionable fix list and (b) a one-line verdict: ship / revise / rethink. Be terse and specific. Critique — do not rewrite the whole plan.
<PLAN> ...plan text here... </PLAN>
Drafting template (for the reverse direction):
You are a senior engineer. Produce a concrete, step-by-step implementation plan for the task below, grounded in THIS repository (read files as needed). Name the specific files/functions to change, call out risks and edge cases, and prefer reusing existing code. Keep it tight and actionable.
Task: ...
Output conventions (per the user's CLAUDE.md)
- Keep the full Codex review in the temp
<out_file>(e.g./tmp/codex-plan-review-*.md). Do not paste the whole thing into chat. - Summarize the key points in ≤10 lines in chat, then act on them.
Resolving <project_dir>
The directory whose code the plan is about — so Codex can validate against real
files. Infer from the plan content (a referenced project path); otherwise use
the current working directory. --skip-git-repo-check makes non-repo dirs fine.
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.

