Loading...
Loading...
Use OpenAI Codex from inside Claude Code for code reviews and delegated background tasks.
npx skill4agent add aradotso/trending-skills codex-plugin-ccSkill by ara.so — Daily 2026 Skills collection.
/codex:review/codex:adversarial-review/codex:rescue/codex:status/codex:resultcodex resume/codex:cancel/codex:setup/plugin marketplace add openai/codex-plugin-cc
/plugin install codex@openai-codex
/reload-plugins/codex:setup/codex:setupnpm install -g @openai/codex!codex login/codex:review# Review uncommitted changes
/codex:review
# Review diff against a base branch
/codex:review --base main
# Run in the background (recommended for multi-file changes)
/codex:review --background
# Run and wait inline
/codex:review --wait/codex:adversarial-review# Basic adversarial review
/codex:adversarial-review
# Target a branch diff with a specific focus
/codex:adversarial-review --base main challenge whether this caching approach was correct
# Run in background, focus on race conditions
/codex:adversarial-review --background look for race conditions and question the retry design/codex:rescuecodex:codex-rescue# Investigate a failing test
/codex:rescue investigate why the tests started failing
# Apply a minimal fix
/codex:rescue fix the failing test with the smallest safe patch
# Resume the most recent Codex session for this repo
/codex:rescue --resume apply the top fix from the last run
# Start fresh (ignore previous session)
/codex:rescue --fresh investigate the regression
# Use a specific model and effort level
/codex:rescue --model gpt-5.4-mini --effort medium investigate the flaky integration test
# Use the faster "spark" model (maps to gpt-5.3-codex-spark)
/codex:rescue --model spark fix the issue quickly
# Run in the background
/codex:rescue --background investigate why the build is failing in CIAsk Codex to redesign the database connection to be more resilient./codex:status# List all running and recent jobs for this repo
/codex:status
# Check a specific job
/codex:status task-abc123/codex:result# Get result of the most recent finished job
/codex:result
# Get result for a specific job
/codex:result task-abc123codex resume <session-id>/codex:cancel# Cancel the most recent active job
/codex:cancel
# Cancel a specific job
/codex:cancel task-abc123/codex:setup# Enable the stop hook review gate
/codex:setup --enable-review-gate
# Disable it
/codex:setup --disable-review-gateWarning: The review gate runs a Codex review on every Claude response and blocks the stop if issues are found. This can trigger long Claude/Codex loops and drain usage limits. Only enable it when actively monitoring the session.
config.toml| Location | Scope |
|---|---|
| User-level defaults |
| Project-level overrides (requires trusted project) |
# .codex/config.toml
model = "gpt-5.4-mini"
model_reasoning_effort = "xhigh"# ~/.codex/config.toml
openai_base_url = "https://your-custom-endpoint.example.com/v1"codex loginOPENAI_API_KEY/codex:review --base main/codex:adversarial-review --background look for auth and data-loss risks
/codex:status
/codex:result/codex:rescue --background investigate why the integration test is flaky
# ... later ...
/codex:result
# Copy session ID from output, then:
codex resume <session-id># First pass
/codex:rescue investigate the failing build
# Apply what Codex found, continuing the same thread
/codex:rescue --resume apply the recommended fix from the last run
# Start completely fresh
/codex:rescue --fresh re-investigate with a clean slateAsk Codex to refactor the authentication module to remove the global state.codex:codex-rescue/codex:setupnpm install -g @openai/codex
# or let /codex:setup install it for you!codex loginexport OPENAI_API_KEY=your-key-here/codex:status
/codex:cancel task-abc123/reload-plugins.codex/config.tomlcodex/codex:setup --disable-review-gatecodexcodex:codex-rescue/agents