- Home
- Skills
- Agents & Orchestration
- Claude × Codex Collab: Plan Debate & Code Review
Claude × Codex Collab: Plan Debate & Code Review
Make Claude Code and OpenAI Codex work as a team: Codex critiques the plan and reviews the code read-only, Claude builds and fixes, and you are only asked about what you want.
$7
Works with the AI Agents you already use
Claude × Codex Collab: Plan Debate & Code Review
Example session with this skill installed
Add rate limiting to our Express API login endpoint. Discuss the plan with Codex first and get a Codex review before you say it's done.
- Read your context and instructions
- Compiled the claude codex collab
Summary
Example session (illustrative). Login rate limiting is added and tested. Codex challenged the plan in 2 rounds and its review caught 2 real issues, which were fixed before handing over.
1. Question for you (asked once)
Should a locked-out user see "Too many attempts, try again in 15 minutes", or a generic error?
Recommended: the explicit message (better UX, no security loss since the limit is per IP + username).
2. Plan debate with Codex
| # | Codex point | Severity | Claude's answer |
|---|---|---|---|
| 1 | In-memory counter breaks with 2+ server instances | critical | AGREE: use the existing Redis |
| 2 | Limiting only by IP lets attackers rotate IPs | important | AGREE: key on IP and username |
| 3 | Use a sliding window instead of a fixed one | minor | DISAGREE: fixed 15-minute window matches the requirement; noted |
| 4 | Lockout message wording | [ASK-USER] | Asked you (see above) |
Round 2: Codex replied "AGREE on 1, 2, 4; accept the reasoning on 3". Plan locked.
3. Build
middleware/loginLimiter.js: RedisINCR+EXPIRE, keyedlogin:{ip}:{username}, 5 attempts per 15 minutes, returns HTTP 429 withRetry-After.routes/auth.js: limiter applied toPOST /login; counter reset on successful login.test/loginLimiter.test.js: 6 tests (limit reached, window reset, success reset, separate users, Retry-After header, Redis down).
4. Codex review
| Finding | Severity | Result |
|---|---|---|
INCR and EXPIRE are separate calls: a crash between them leaves a key without expiry, locking the user forever | important | Fixed: MULTI transaction, plus a test |
| When Redis is down, the middleware throws and login returns 500 | important | Fixed: fail open with a warning log (agreed with Codex) |
| Username should be lower-cased in the key | minor | Fixed |
Re-review: "No remaining issues."
5. Next steps
- All 6 tests pass. Consider adding an alert when the limiter fails open.
- Decision made by Claude after debate: fixed window (Codex preferred sliding; both opinions are noted above).
Connects securely to your tools. The creator never sees your data.
About this skill
Two models, one better result
One model reviewing its own work misses its own blind spots. This skill gives Claude Code a second, critical engineer: OpenAI Codex. They discuss with each other directly, so you are not stuck copy-pasting between two chat windows.
How it works
- Understand the need. Claude collects everything unclear about your goals and asks you once, in one batch, with a recommendation.
- Plan debate. Claude writes a plan and Codex attacks it: numbered points marked critical / important / minor. Claude answers AGREE or DISAGREE with reasons, for at most 3 rounds. Anything that is really your preference is flagged [ASK-USER] and brought back to you.
- Build in parallel. Claude implements while Codex reviews finished chunks in the background (incremental review). Neither sits idle.
- Review debate. Codex reviews the diff against the agreed plan with file:line and severity. Claude verifies every finding itself, since Codex can be wrong too, then fixes the valid ones and explains the rejected ones.
- Honest report. What was built, where the two models disagreed and how it was settled, and what Codex caught.
Who decides what
- What you want (goals, scope, look and feel, tradeoffs): always asked to you.
- How to build it (architecture, libraries, tests, security): settled by Claude and Codex, with evidence when they disagree.
What's included
SKILL.md: the full collaboration workflow.codex-chat.sh: multi-turn Codex discussions; Codex remembers the context.codex-review.sh: one-shot review of uncommitted changes, a branch, or a commit.codex-check.sh: setup check (installed, logged in, answers a test message).
Safe by default
- Codex runs in a read-only sandbox and never edits your files.
- It uses your own Codex model and settings; override with
CODEX_COLLAB_MODEL/CODEX_COLLAB_EFFORT. - Clear error hints for not logged in, unavailable model, and usage limits. Claude never claims a review happened when it failed.
- Works on macOS, Linux and Windows (Git Bash), with or without the
timeoutcommand.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.
Codex is read-only and cannot edit files. Discussions are capped at 3 rounds per phase. Every Codex call uses your own Codex plan's usage and needs internet access. Codex review quality depends on the model your Codex account has.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 6 days ago
- Accounts
OpenAI
- Software
GitOpenAI Codex CLI (logged in)Bash (macOS, Linux or Git Bash on Windows)
Permissions
Allowed Hosts