Codex Agent Creator¶
Create and troubleshoot custom subagents for OpenAI Codex, defined as standalone TOML files
in .codex/agents/ or ~/.codex/agents/.
- Skill name:
agent-creator-codex - Source: skills/agent-creator-codex
- Codex version: verified against Codex CLI 0.163.0 (released 2026-10-15)
What it does¶
A Codex agent has no Markdown body: its instructions are a field in the TOML file. Codex also delegates only when asked, and it applies only a bounded set of keys from an agent file. The skill gives an agent a workflow for planning, writing, validating, and testing a Codex agent, and loads detailed reference material only when the task needs it.
Topics covered:
- The agent file format and its three required fields
- Which keys Codex applies from an agent file, and which it accepts but ignores
- Model and reasoning-effort precedence
- Sandbox, approval, and MCP inheritance from the parent session
- The
[agents]table and[agents.<name>]role tables inconfig.toml - Built-in
default,worker, andexploreragents - How to trigger delegation
- Symptom-to-cause troubleshooting, based on the messages Codex actually prints
- A validator script for a file or directory of agents
Where it applies¶
Use it when an agent writes or debugs custom Codex subagents.
Install¶
Using npx skills (recommended — works across all agents)¶
# Install globally for all detected agents
npx skills add CowboyLogic/ai-dev --skill agent-creator-codex -g
# Install for Codex only
npx skills add CowboyLogic/ai-dev --skill agent-creator-codex --agent codex -g
Verify installation¶
Related¶
- Codex Configuration Manager — the rest of Codex configuration
- Claude Code Agent Creator — the equivalent skill for Claude Code
- Copilot Agent Creator — the equivalent skill for GitHub Copilot
- OpenCode Agent Creator — the equivalent skill for OpenCode