Make Agent Zero use Codex CLI as a real terminal-first coding engine.
This repository packages a focused SKILL.md that teaches Agent Zero to route coding work through Codex in the terminal, keep the session interactive, and verify results instead of relying on a weak one-shot prompt.
- Better repository-aware coding prompts
- Stronger terminal-driven coding workflows
- Clearer handling of interactive Codex confirmations
- Better verification before reporting success
- A cleaner way to use Codex for real implementation work inside Agent Zero
This skill is especially useful if you run Agent Zero locally.
On smaller or resource-constrained machines, using a large local model for every coding task can get slow quickly. A more practical pattern is to let Agent Zero stay in the orchestrator role while Codex CLI handles the heavier coding work in the terminal.
That keeps the workflow more usable on local hardware:
- Agent Zero handles routing and task flow
- Codex handles the deeper coding passes
- You get stronger coding capability without needing a huge always-on model for every turn
- Makes Codex CLI the default path for coding tasks
- Uses Agent Zero's
code_execution_toolto runcodex - Teaches a full terminal workflow, not a one-shot prompt
- Covers implementation, debugging, refactoring, testing, and code review
- Adds guidance for interactive follow-up when Codex asks for confirmation or more context
This skill is intended for Agent Zero users who have:
- Agent Zero running and configured
- Codex CLI available in the runtime environment
- A workflow where Agent Zero can execute terminal commands through
code_execution_tool
If you are not using Agent Zero, you can still adapt the skill, but the examples and tool names in this repository are written for Agent Zero specifically.
SKILL.md— the skill itselfREADME.md— usage and installation guideLICENSE— MIT license
Copy this repository's SKILL.md into your Agent Zero user skills directory.
Example:
mkdir -p /a0/usr/skills/codex-coding
cp SKILL.md /a0/usr/skills/codex-coding/SKILL.mdIf your Agent Zero environment uses a different skills path, copy it into the equivalent user skill directory for that installation.
Activate the skill when the user asks for any coding task:
- write code
- edit code
- debug
- refactor
- add tests
- review code
- scaffold a script or app
The skill teaches the agent to:
- Gather enough repository context first
- Form a strong Codex prompt
- Run
codexthroughcode_execution_tool - Continue interacting through the terminal if Codex asks follow-up questions
- Verify results before reporting success
- "Implement this feature in the current repo"
- "Debug this failing test"
- "Refactor this module without changing behavior"
- "Review these changed files for regressions"
The default "just run codex once" pattern leaves a lot of Codex's value on the table.
This skill is designed to help Agent Zero use Codex as a real terminal coding engine:
- with repository-aware prompts
- with iterative follow-up
- with explicit verification
- with better handling of interactive confirmations
That makes the integration more useful for serious coding workflows.
- This repository does not include Codex CLI itself.
- It does not modify Agent Zero core behavior by itself.
- It only provides a reusable Agent Zero skill that you can install into your environment.
Improvements to the skill wording, examples, or Agent Zero-specific guidance are welcome.
If you make the skill more reliable with local models or stronger for repo-scale workflows, that is especially useful.