dev.codex
Overview
Use this skill to manage Codex's own configuration and runtime setup. Start with MCP server management; expand with new capabilities as needed.
Core capabilities
1. MCP management
- Use when asked to add, remove, or update MCP servers or edit Codex MCP settings.
- Read
references/mcp-management.mdfor CLI syntax and config options from the docs. - Prefer the CLI for adding servers; edit
~/.codex/config.tomlfor fine-grained config. - Remove a server by deleting its
[mcp_servers.<server-name>]table or setenabled = falseto disable. - Confirm the active set via
/mcpin the Codex TUI or by inspecting the config file.
2. Session summaries (by session id)
- Use when the user provides a Codex session id and asks for a summary of that session.
- If the user needs help finding or mapping session ids, use the
dev.llm-sessionskill. - Locate the session data under
~/.codex/sessions/(preferred) or~/.codex/history.jsonland load only the relevant session. - Summarize with: time range, primary goals, key actions/commands, decisions, errors/blocks, and concrete next steps.
- Redact or avoid sensitive data; include short code paths/filenames only when they are essential to the summary.
3. Multi-agent role management (add/update agents)
- Use when asked to add, update, or tune Codex sub-agent roles.
- Source of truth:
https://developers.openai.com/codex/multi-agent/. - Ensure multi-agent is enabled first:
- Enable via
/experimentalin Codex CLI and restart, or set:[features] multi_agent = true
- Enable via
- Configure roles in
[agents]in either:~/.codex/config.tomlfor personal defaults..codex/config.tomlfor project-shared roles.
- Add or update role entries as
[agents.<name>]with:description: short guidance for when Codex should choose the role.config_file: TOML layer for that role (relative paths resolve from the owningconfig.toml).
- Create or update each role
config_fileto set role-specific overrides such as:model,model_reasoning_effort,sandbox_mode,developer_instructions.- Optional role-local MCP and skills settings when needed.
- Important validation and behavior:
- Unknown keys in
[agents.<name>]are rejected. config_filemust exist and load cleanly or role spawns can fail.- If a custom role name matches a built-in role (
default,worker,explorer,monitor), the custom role takes precedence. - Unset settings inherit from the parent session.
agents.max_depthdefaults to1(child can spawn, deeper nesting blocked).
- Unknown keys in
- Verify changes by restarting Codex, then:
- Use
/agentto inspect/switch active agent threads in CLI. - Spawn explicitly with
agent_type = "<name>"when testing a role.
- Use