Slash command that sends the latest Claude plan file to Codex for a strict Staff SWE peer review.
When you run /askodex in Claude Code:
- Finds Claude's
plansDirectoryfrom settings (or defaults to~/.claude/plans). - Selects the most recent
*.mdplan file. - Sends that plan to
codex execwith a one-shot peer-review prompt. - Requires Codex to:
- Provide severity-ordered findings.
- List confidence gaps/open questions.
- Include a full revised plan in the same structure under
## Revised Plan File.
- Streams Codex output to terminal and writes it to:
codex-<plan-filename>.mdin the current working directory.
Example:
- Input plan:
hashed-stargazing-goblet.md - Output review:
codex-hashed-stargazing-goblet.md
.claude/commands/askodex.md- Claude slash-command definition (/askodex).claude/commands/askodex.sh- command implementation
In your repo:
mkdir -p .claude/commands
cp /path/to/askodex/.claude/commands/askodex.md .claude/commands/
cp /path/to/askodex/.claude/commands/askodex.sh .claude/commands/
chmod +x .claude/commands/askodex.shmkdir -p ~/.claude/commands
cp /path/to/askodex/.claude/commands/askodex.md ~/.claude/commands/
cp /path/to/askodex/.claude/commands/askodex.sh ~/.claude/commands/
chmod +x ~/.claude/commands/askodex.shRestart Claude Code after install if /askodex does not appear immediately.
/askodex
/askodex security and rollback risk
[focus-area] is optional and passed into the Codex review prompt.
- Claude Code with slash commands enabled
codexCLI installed and authenticatedjqinstalled
askodex: plans directory not found:- Verify your
plansDirectorysetting or create~/.claude/plans.
- Verify your
askodex: no plan files found:- Create at least one plan in Claude Plan mode first.
codex: command not found:- Install Codex CLI and ensure it is on
PATH.
- Install Codex CLI and ensure it is on