Каждый custom agent — это отдельный
.toml файл в .codex/agents/.Обязательные поля:
name, description, developer_instructions.Опционально можно задавать
model, model_reasoning_effort, sandbox_mode, mcp_servers, skills.config и nickname_candidates. Если их не указывать, они наследуются от родительской сессии.Пример агента-исследователя:
# .codex/agents/pr-explorer.toml
name = "pr_explorer"
description = "Read-only codebase explorer for gathering evidence before changes are proposed."
model = "gpt-5.3-codex-spark"
model_reasoning_effort = "medium"
sandbox_mode = "read-only"
developer_instructions = """
Stay in exploration mode.
Trace the real execution path, cite files and symbols, and avoid proposing fixes unless the parent agent asks for them.
Prefer fast search and targeted file reads over broad scans.
"""
🔜 Как настроить subagents в Codex
@data_engi
#agents #subagents #ai #llm #openai #codex #dev