Create and update Codex custom agents using standalone custom-agent TOML files.
67
58%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./skills/role-creator/SKILL.mdUse this skill to author, update, or troubleshoot custom Codex agents as standalone TOML files.
Current behavior:
~/.codex/agents/<agent-name>.toml<project>/.codex/agents/<agent-name>.toml~/.codex/config.toml is only for global/runtime settings (for example [agents] thread limits), not per-role registration.Step 1 is required before writing files:
name (role identifier used by agent_type)description (short, human-readable purpose)developer_instructionsmodel (recommend gpt-5.3-codex unless requested)model_reasoning_effort (none|minimal|low|medium|high|xhigh)global or project)nickname_candidates and exact valuesExecution rule:
From Codex custom agent docs (/codex/subagents):
name, description, developer_instructions.nickname_candidates, model, model_reasoning_effort, sandbox_mode, web_search, mcp_servers, skills.config, etc.name is the spawn identifier and source of truth.description + developer_instructions define behavior and usage boundaries.nickname_candidates is optional and used only for display.nickname_candidates requirements:
global → ~/.codex/agents/<name>.tomlproject → <project>/.codex/agents/<name>.toml{"agent_type":"<name>","message":"<task>"}# 1) Write a standalone custom-agent file
/home/willr/Applications/skills/skills/role-creator/scripts/write_role_config.sh \
--output ~/.codex/agents/reviewer.toml \
--role-name reviewer \
--description "PR reviewer focused on correctness, security, and risk." \
--model gpt-5.4 \
--reasoning high \
--developer-instructions "Review code like an owner. Lead with concrete findings and residual risks."
# Optional: include nickname candidates for display
/home/willr/Applications/skills/skills/role-creator/scripts/write_role_config.sh \
--output ~/.codex/agents/reviewer.toml \
--role-name reviewer \
--description "PR reviewer focused on correctness, security, and risk." \
--model gpt-5.4 \
--reasoning high \
--developer-instructions "Review code like an owner. Lead with concrete findings and residual risks." \
--nickname-candidates "Atlas,Delta,Echo" \
--sandbox-mode read-only \
--web-search disabledunknown agent_type, verify the active scope and confirm the file exists at the expected path.tomlq or tomlq -C.https://developers.openai.com/codex/subagentshttps://developers.openai.com/codex/subagents#display-nicknamestemplates/ca2c3b3
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.