codex-agent
Claude Code plugin: delegate coding tasks to OpenAI Codex CLI as a fast build agent
README
codex-agent
A Claude Code plugin that delegates coding tasks to OpenAI's Codex CLI as a fast build agent. Codex runs non-interactively using gpt-5.3-codex-spark at ~1,000 tokens/sec with configurable reasoning levels.
Features
- Skill โ Full documentation for using Codex as a build agent, loaded automatically when relevant
/codexcommand โ Quick delegation:/codex add JSDoc to lib/utils.ts- Autonomous agent โ Detects mechanical tasks and suggests Codex delegation
Prerequisites
- OpenAI Codex CLI installed:
npm install -g @openai/codex OPENAI_API_KEYset in your environment
Installation
# Add the marketplace
claude plugin marketplace add dennisonbertram/codex-agent
# Install the plugin
claude plugin install codex-agent
Usage
Slash Command
/codex add "use client" directive to components/dashboard.tsx
/codex --reasoning=high analyze the auth flow in middleware.ts
/codex --read-only count how many API routes exist
Skill (automatic)
The skill loads automatically when you mention "codex", "delegate to codex", "use codex agent", or discuss parallel task execution. It provides Claude with full knowledge of Codex CLI flags, reasoning levels, and prompt patterns.
Agent (autonomous)
The codex-delegator agent triggers when you ask to delegate mechanical tasks:
- "use codex to add types to these files"
- "have codex handle the boilerplate generation"
- "delegate the JSDoc additions to codex"
Reasoning Levels
Control how much Codex "thinks" before acting:
| Level | Best for | Speed |
|---|---|---|
low (default) |
Mechanical edits, boilerplate, simple refactors | Fastest |
medium |
Multi-step edits, moderate logic changes | Balanced |
high |
Complex analysis, architectural review, bug investigation | Thorough |
Components
codex-agent/
โโโ .claude-plugin/
โ โโโ marketplace.json # Marketplace manifest
โโโ README.md # This file
โโโ plugins/
โ โโโ codex-agent/
โ โโโ .claude-plugin/
โ โ โโโ plugin.json # Plugin manifest
โ โโโ skills/
โ โ โโโ codex-agent/
โ โ โโโ SKILL.md # Codex build agent knowledge
โ โโโ commands/
โ โ โโโ codex.md # /codex slash command
โ โโโ agents/
โ โโโ codex-delegator.md # Autonomous delegation agent
License
MIT
