Loading...
Loading...
Create and install Codex custom agent roles in ~/.codex/config.toml, generate role config files, enforce supported keys, and guide users through required role inputs (model, reasoning effort, developer_instructions).
npx skill4agent add am-will/codex-skills role-creator[agents.<role>]config_file~/.codex/config.tomlcodex-rs/core/config.schema.jsonmodelmodel_reasoning_effortdeveloper_instructions~/.codex/config.toml.codex/config.tomlmodelmodel_reasoning_effortdeveloper_instructionsglobalprojectrole_namedescriptionrole_config_fileWhich model should this role use?gpt-5.3-codexWhat reasoning effort should it use?mediummedium|high|xhighWhat should the role's developer instructions prioritize?Do you want this installed globally (~/.codex/config.toml) or in a project (.codex/config.toml)?Do you want any sandboxing, web_search, MCP, or other restrictions?What role name and description should be shown in spawn_agent?web_searchconfig_fileconfig_filemodelmodel_reasoning_effortmodel_reasoning_summarymodel_verbositypersonalitydeveloper_instructionssandbox_mode[sandbox_workspace_write]network_accesswritable_rootsweb_searchdisabled|cached|live[features]memory_toolshell_tool[mcp_servers.<name>]enabledrequiredcommandargsenv_vars[apps.<name>]enabledtemplates/minimal-role-config.tomltemplates/restricted-role-config.tomltemplates/full-role-config.tomltemplates/frontend-architecture-role.toml[agents.<role_name>]descriptionconfig_file[agents.<role_name>]codex-rs/core/config.schema.jsonglobal~/.codex/config.tomlproject<project>/.codex/config.tomlscripts/write_role_config.shsandbox_modeweb_searchdisabledmcp_clearmcp_enablemcp_disablemodel_reasoning_summaryfeaturesappstemplates/Configured now:Available but not set:scripts/install_role.shfeatures.multi_agent = true[agents.<role_name>] description/config_fileconfig.tomlconfig.toml--update-existingscripts/validate_role.shdescription/config_file{"agent_type":"<role_name>","message":"<task>"}# 1) Write role config file (required fields only; default behavior)
.codex/skills/role-creator/scripts/write_role_config.sh \
--output ~/.codex/agents/researcher.toml \
--role-name researcher \
--model gpt-5.3-codex \
--reasoning medium \
--developer-instructions "Research code and docs only; no edits; return file:line evidence."
# 1b) Optional controls (only when explicitly requested)
.codex/skills/role-creator/scripts/write_role_config.sh \
--output ~/.codex/agents/researcher.toml \
--role-name researcher \
--model gpt-5.3-codex \
--reasoning medium \
--developer-instructions "Research code and docs only; no edits; return file:line evidence." \
--sandbox-mode workspace-write \
--network-access false \
--writable-roots "/home/willr/Applications/codex1" \
--web-search disabled
# 2) Register role in ~/.codex/config.toml
.codex/skills/role-creator/scripts/install_role.sh \
--role-name researcher \
--description "Read-only codebase research specialist" \
--role-config-file ~/.codex/agents/researcher.toml
# 2b) Intentionally update an existing role definition
.codex/skills/role-creator/scripts/install_role.sh \
--role-name researcher \
--description "Updated role description" \
--role-config-file ~/.codex/agents/researcher.toml \
--update-existing
# 3) Validate role config and declaration keys
.codex/skills/role-creator/scripts/validate_role.sh \
--role-name researcher \
--config ~/.codex/config.toml \
--role-config ~/.codex/agents/researcher.toml \
--schema /home/willr/Applications/codex1/codex-rs/core/config.schema.jsonunknown agent_typeconfig_fileagent type is currently not availablereferences/role-config-reference.mdtemplates/