From 831f6f977c2ff979cd8b8034abc106413de44ed8 Mon Sep 17 00:00:00 2001 From: leonsong09 <59187950+leonsong09@users.noreply.github.com> Date: Wed, 29 Apr 2026 02:11:21 +0800 Subject: [PATCH] docs(codex-tools): fix subagent wait mapping to wait_agent Update the Codex tool mapping so Claude Code 'Task returns result' maps to the current Codex spawned-agent result tool, wait_agent. Also clarify that older Codex builds exposed spawned-agent waiting as wait, while current bare wait is the code-mode exec/wait surface for yielded exec cells. Verified with Drill: - codex-tool-mapping-comprehension fails against dev with task_returns_result=wait - codex-tool-mapping-comprehension passes against this PR with task_returns_result=wait_agent and exec/wait scoped correctly - codex-subagent-wait-mapping passes against this PR with spawn_agent -> wait_agent -> close_agent and PR963_OK returned --- skills/using-superpowers/references/codex-tools.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/skills/using-superpowers/references/codex-tools.md b/skills/using-superpowers/references/codex-tools.md index 539b2b1c..69f447fb 100644 --- a/skills/using-superpowers/references/codex-tools.md +++ b/skills/using-superpowers/references/codex-tools.md @@ -6,7 +6,7 @@ Skills use Claude Code tool names. When you encounter these in a skill, use your |-----------------|------------------| | `Task` tool (dispatch subagent) | `spawn_agent` (see [Named agent dispatch](#named-agent-dispatch)) | | Multiple `Task` calls (parallel) | Multiple `spawn_agent` calls | -| Task returns result | `wait` | +| Task returns result | `wait_agent` | | Task completes automatically | `close_agent` to free slot | | `TodoWrite` (task tracking) | `update_plan` | | `Skill` tool (invoke a skill) | Skills load natively — just follow the instructions | @@ -22,7 +22,12 @@ Add to your Codex config (`~/.codex/config.toml`): multi_agent = true ``` -This enables `spawn_agent`, `wait`, and `close_agent` for skills like `dispatching-parallel-agents` and `subagent-driven-development`. +This enables `spawn_agent`, `wait_agent`, and `close_agent` for skills like `dispatching-parallel-agents` and `subagent-driven-development`. + +Legacy note: Codex builds before `rust-v0.115.0` exposed spawned-agent +waiting as `wait`. Current Codex uses `wait_agent` for spawned agents. The +`wait` name now belongs to code-mode `exec/wait`, which resumes a yielded exec +cell by `cell_id`; it is not the spawned-agent result tool. ## Named agent dispatch