Repository navigation
Description
What is the type of issue?
No response
What is the issue?
The subagent agent_tool.rs defines multi-agent tooling, however there is no documentation on that. This might lead to bad implementation of SKILL.md.
wait_agent is mentioned here https://developers.openai.com/codex/config-reference#configtoml but there is no explicit documentation about them.
I can see the implementation in the source code here
codex/codex-rs/tools/src/agent_tool.rs
Lines 202 to 224 in a4d5112
| pub fn create_wait_agent_tool_v1(options: WaitAgentTimeoutOptions) -> ToolSpec { | |
| ToolSpec::Function(ResponsesApiTool { | |
| name: "wait_agent".to_string(), | |
| description: "Wait for agents to reach a final status. Completed statuses may include the agent's final message. Returns empty status when timed out. Once the agent reaches a final status, a notification message will be received containing the same completed status." | |
| .to_string(), | |
| strict: false, | |
| defer_loading: None, | |
| parameters: wait_agent_tool_parameters_v1(options), | |
| output_schema: Some(wait_output_schema_v1()), | |
| }) | |
| } | |
| pub fn create_wait_agent_tool_v2(options: WaitAgentTimeoutOptions) -> ToolSpec { | |
| ToolSpec::Function(ResponsesApiTool { | |
| name: "wait_agent".to_string(), | |
| description: "Wait for a mailbox update from any live agent, including queued messages and final-status notifications. Does not return the content; returns either a summary of which agents have updates (if any), or a timeout summary if no mailbox update arrives before the deadline." | |
| .to_string(), | |
| strict: false, | |
| defer_loading: None, | |
| parameters: wait_agent_tool_parameters_v2(options), | |
| output_schema: Some(wait_output_schema_v2()), | |
| }) | |
| } |
Where did you find it?
Found it when asking Codex to review compatibility of a SKILL.md that was not behaving well. Reported the problem to tool developer in here Graphify-Labs/graphify#273
Codex output when asked about documentation on wait_agent was:
Primary official doc:
- `Subagents – Codex`: https://developers.openai.com/codex/subagents
This is the main OpenAI doc for Codex multi-agent workflows. It describes spawning subagents in parallel, waiting for results, and closing agent threads.
Useful supporting docs:
- `Subagent concepts – Codex`: https://developers.openai.com/codex/concepts/subagents
This explains why subagent workflows exist and the tradeoffs around multi-agent orchestration.
- `Codex web`: https://developers.openai.com/codex/cloud
This mentions Codex working on tasks in the background, including in parallel.
I did not find a public official OpenAI doc page that exposes the literal internal tool name `wait_agent` as text. The public docs describe the behavior instead of listing that exact tool symbol.And when asked the decision making in fixing SKILL.md with wait to wait_agent was:
From the live Codex tool schema in this session, not from a public doc page.
The basis was:
- This session exposes `spawn_agent`, `wait_agent`, and `close_agent` as actual callable tools.
- There is no `wait` tool in the available tool definitions.
- `graphify` had a Codex-specific section that said:
- `Uses spawn_agent + wait + close_agent`
- and later showed `result = wait(handle); close_agent(handle)`
- That mismatched the real tool contract available here, so I changed it to `wait_agent`.
So the fix was grounded in the runtime/tooling contract of this Codex environment, plus the mismatch in [graphify/SKILL.md](.codex/skills/graphify/SKILL.md), not in an external published doc.
Activity