ClauDex 🧡🖤
Claude writes. Codex reviews. You ship.
OpenAI open-sourced a Codex plugin for Claude Code, so the two best coding agents finally live in one terminal. ClauDex makes them collaborate instead of just coexist:
/claudex <task> runs a write→review loop: Claude implements, Codex reviews the diff (read-only, via codex exec --sandbox read-only), Claude fixes what's real, repeat to consensus — max 3 rounds.
/claudex:verdict has both models review the same diff independently and surfaces where they disagree: 🤝 both flagged, 🧡 only Claude, 🖤 only Codex — ending in SHIP / FIX FIRST / REDESIGN.
One command to build with a built-in rival reviewer; one command to get a second opinion on code that's already written. Nothing ships until both models agree.

Completely new to this? Start here
ClauDex needs two AI tools installed. If you already have both, skip to Install ClauDex.
Step 1 — Claude Code (the terminal where everything happens). Needs Node.js 18+:
npm install -g @anthropic-ai/claude-code
claude # opens Claude Code; sign in with your Claude account
Step 2 — Codex CLI (the reviewer). Needs a ChatGPT subscription or an OpenAI API key:
npm install -g @openai/codex
codex login # sign in with your ChatGPT account
Step 3 — a git repo. ClauDex reviews changes, so run it inside any project that uses git (git init if yours doesn't yet).
Install ClauDex (30 seconds)
In an interactive Claude Code session — the claude command in your terminal, or the desktop app's chat — type:
/plugin marketplace add hamza-ali-shahjahan/claudex
/plugin install claudex@claudex
/claudex:setup
Prefer the shell? Same result without opening a session:
claude plugin marketplace add hamza-ali-shahjahan/claudex
claude plugin install claudex@claudex
Either way the install is per-user and one-time: /claudex is then available in every Claude Code session on your machine (already-open sessions need a restart — plugins load at session start).
/claudex:setup checks everything above and tells you exactly what to fix if something's missing.
Your first duet (2 minutes)
When setup says "ClauDex is ready", run:
/claudex:demo
It plants five bugs in a throwaway repo — an obvious crash, a subtle money-math issue, a pure judgment call — then has Claude and Codex review the file independently and shows you the scoreboard: which bugs 🤝 both caught, which only 🧡 Claude saw, which only 🖤 Codex saw. Your own files are never touched, and the throwaway repo is deleted afterwards.
When you're ready for real code, run /claudex:verdict in any repo with uncommitted changes.
Commands
| Command | What it does |
|---|
/claudex <task> | The loop: Claude implements, Codex reviews the diff, Claude fixes, repeat until both agree (max 3 rounds). Ends every run with built with love by ClauDex 🧡🖤. |
/claudex (no args) | Runs the review loop on your current uncommitted changes. |
/claudex:verdict [focus] | Two independent reviews of the same diff, merged into a verdict table: 🤝 both flagged, 🧡 only Claude, 🖤 only Codex. Ends with SHIP / FIX FIRST / REDESIGN. |
/claudex:debate <decision> | Both models argue a design decision from opposite corners — independent openings, one rebuttal round each, then a decision brief ending in CONSENSUS or SPLIT DECISION. You arbitrate. |
/claudex:setup | Checks Codex CLI, auth, and git are ready — with the exact fix command for anything missing. |
/claudex:demo | The two-minute first duet: plants five bugs in a throwaway repo, both models review independently, you get the planted-vs-caught scoreboard. |
/claudex:stats | The duet's history in this repo: agreement rate, rounds-to-consensus, rulings, interruptions — tallied from a local ledger no one commits. Reads only; never signs. |
/claudex:gate on|off|status | The consensus gate, per-repo and opt-in: once ON, commits made through Claude Code block unless a signed cross-review is newer than the last commit. Ships dormant everywhere. |
It takes two to ClauDex
Every command checks for both halves before doing any work, and every run ends one of exactly two ways.
When both are here, the duet plays out — Claude writes, Codex reviews, they iterate to consensus — and the run signs off with:
built with love by ClauDex 🧡🖤