pi-subagent-manager 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,258 @@
1
+ # Claude Code subagents / Agent SDK research
2
+
3
+ _Research only. No implementation done._
4
+
5
+ ## Bottom line
6
+
7
+ - **Use file-based `.claude/agents/*.md` definitions if we need the full subagent feature surface** (`hooks`, `isolation: worktree`, `omitClaudeMd`, color, experimental cache TTL). **Programmatic SDK `AgentDefinition` is a subset**, and the Python SDK is the smallest subset. ([subagents docs](https://code.claude.com/docs/en/sub-agents), [TS SDK ref](https://code.claude.com/docs/en/agent-sdk/typescript), [Python SDK ref](https://code.claude.com/docs/en/agent-sdk/python), [Python source](https://github.com/anthropics/claude-agent-sdk-python/blob/main/src/claude_agent_sdk/types.py))
8
+ - **Capability restriction is `tools` + `disallowedTools`.** In SDK session options, **`allowedTools` / `allowed_tools` only auto-approve permissions; they do not restrict availability**. ([TS SDK ref](https://code.claude.com/docs/en/agent-sdk/typescript), [permissions guide](https://code.claude.com/docs/en/agent-sdk/permissions))
9
+ - **Subagents are context-isolated by default**: fresh conversation, own system prompt, own context window, separate tool loop. They do **not** inherit the parent conversation history/tool results/auto memory/output style. ([subagents docs](https://code.claude.com/docs/en/sub-agents), [SDK subagents](https://code.claude.com/docs/en/agent-sdk/subagents))
10
+ - **Background is the default** in SDK/programmatic subagent use, and resume is a first-class concept; if we need live steering/interrupts/status handling, the streaming/client APIs matter more than one-shot `query()`. ([SDK subagents](https://code.claude.com/docs/en/agent-sdk/subagents), [SDK sessions](https://code.claude.com/docs/en/agent-sdk/sessions), [Python source `query.py`](https://github.com/anthropics/claude-agent-sdk-python/blob/main/src/claude_agent_sdk/query.py), [Python source `client.py`](https://github.com/anthropics/claude-agent-sdk-python/blob/main/src/claude_agent_sdk/client.py))
11
+
12
+ ## 1) File-based frontmatter: supported fields
13
+
14
+ For custom subagent markdown files, the documented frontmatter fields are:
15
+
16
+ - **Required:** `name`, `description`
17
+ - **Optional:** `tools`, `disallowedTools`, `model`, `permissionMode`, `maxTurns`, `skills`, `mcpServers`, `hooks`, `memory`, `background`, `omitClaudeMd`, `effort`, `isolation`, `color`, `initialPrompt`, `experimental` (`cacheTtl` inside it)
18
+
19
+ Important config rules:
20
+
21
+ - **Exact camelCase matters** (`disallowedTools`, `maxTurns`, etc.).
22
+ - **Unknown fields are silently ignored**.
23
+ - `background: true` forces background execution.
24
+ - `isolation: worktree` is the documented file-based isolation mode.
25
+ - `omitClaudeMd: true` skips user/project/local `CLAUDE.md` loading for that subagent.
26
+
27
+ Source: [Create custom subagents](https://code.claude.com/docs/en/sub-agents)
28
+
29
+ ## 2) SDK parity vs file-based frontmatter
30
+
31
+ ### TypeScript `AgentDefinition` (documented)
32
+
33
+ Programmatic subagents in the TS Agent SDK support:
34
+
35
+ - `description`, `prompt`
36
+ - `tools`, `disallowedTools`
37
+ - `model`
38
+ - `skills`, `memory`, `mcpServers`
39
+ - `initialPrompt`, `maxTurns`
40
+ - `background`, `omitClaudeMd`
41
+ - `effort`, `permissionMode`
42
+ - `criticalSystemReminder_EXPERIMENTAL`
43
+
44
+ Source: [TS SDK reference](https://code.claude.com/docs/en/agent-sdk/typescript), [SDK subagents](https://code.claude.com/docs/en/agent-sdk/subagents)
45
+
46
+ ### Python `AgentDefinition` (documented + source-confirmed)
47
+
48
+ Current Python `AgentDefinition` supports:
49
+
50
+ - `description`, `prompt`
51
+ - `tools`, `disallowedTools`
52
+ - `model`
53
+ - `skills`, `memory`, `mcpServers`
54
+ - `initialPrompt`, `maxTurns`
55
+ - `background`, `effort`, `permissionMode`
56
+
57
+ Notably, the current Python implementation **does not define** `omitClaudeMd`, `hooks`, or `isolation` on `AgentDefinition`. That matches the narrower Python docs surface.
58
+
59
+ Sources: [Python SDK reference](https://code.claude.com/docs/en/agent-sdk/python), [Python source `types.py`](https://github.com/anthropics/claude-agent-sdk-python/blob/main/src/claude_agent_sdk/types.py)
60
+
61
+ ### Practical implication
62
+
63
+ If Pi needs per-agent `worktree` isolation, per-agent hooks, or full frontmatter parity, **do not assume programmatic `AgentDefinition` is enough**; the file-based subagent path is richer.
64
+
65
+ ## 3) Tool allow/block semantics
66
+
67
+ ### File-based / programmatic subagent capability shaping
68
+
69
+ - `tools` = **actual allowlist of tools present in the subagent session**.
70
+ - If `tools` is omitted, the subagent **inherits every tool available to subagents**.
71
+ - `disallowedTools` removes tools from the inherited/specified set.
72
+ - If a tool is left out, it is **not present at all** — no prompt, no fallback.
73
+
74
+ Sources: [Create custom subagents](https://code.claude.com/docs/en/sub-agents), [SDK subagents](https://code.claude.com/docs/en/agent-sdk/subagents)
75
+
76
+ ### Do not confuse with SDK `allowedTools` / `allowed_tools`
77
+
78
+ - SDK `allowedTools` / `allowed_tools` are **permission auto-approval** lists.
79
+ - The docs are explicit: **“This does not restrict Claude to only these tools.”**
80
+ - Use `disallowedTools` to block tools at the session level; use subagent `tools` / `disallowedTools` to shape a subagent’s tool inventory.
81
+
82
+ Sources: [TS SDK reference](https://code.claude.com/docs/en/agent-sdk/typescript), [permissions guide](https://code.claude.com/docs/en/agent-sdk/permissions)
83
+
84
+ ### Universal subagent removals
85
+
86
+ The subagent docs say these are removed from **every** subagent, even if listed in `tools`:
87
+
88
+ - `AskUserQuestion`
89
+ - `EndConversation`
90
+ - `EnterPlanMode`
91
+ - `ScheduleWakeup`
92
+ - `WaitForMcpServers`
93
+ - `Workflow`
94
+
95
+ Conditionals:
96
+
97
+ - `ExitPlanMode` is removed unless the subagent `permissionMode` is `plan`
98
+ - `Agent` is removed at the depth limit
99
+
100
+ Source: [Create custom subagents](https://code.claude.com/docs/en/sub-agents)
101
+
102
+ ### Foreground vs background tool surface
103
+
104
+ By default subagents inherit built-in + MCP tools from the main conversation, then Claude Code applies filters. The docs explicitly say **background subagents keep every MCP tool but only a reduced built-in set**:
105
+
106
+ `Read`, `Grep`, `Glob`, `LSP`, `Bash`, `PowerShell`, `Edit`, `Write`, `NotebookEdit`, `WebFetch`, `WebSearch`, `TodoWrite`, `Skill`, `ToolSearch`, `EnterWorktree`, `ExitWorktree`, `Monitor`, `TaskStop`, `SendMessage`, `Artifact` (plus `SubagentHandback` when applicable).
107
+
108
+ So the **same subagent definition can resolve to a different tool set in foreground vs background**.
109
+
110
+ Source: [Create custom subagents](https://code.claude.com/docs/en/sub-agents)
111
+
112
+ ## 4) Context inheritance and isolation
113
+
114
+ ### What a non-fork subagent gets at startup
115
+
116
+ The docs say a non-fork subagent starts fresh, but not empty. It gets:
117
+
118
+ - its **own system prompt** plus environment details
119
+ - the **delegation/task message**
120
+ - **`CLAUDE.md` files** (unless `omitClaudeMd`, and Explore/Plan skip them)
121
+ - a **git status snapshot** (Explore/Plan skip it)
122
+ - **preloaded skills** from the `skills` field
123
+ - a **sibling roster** reminder when `SendMessage` is available and other named agents exist
124
+
125
+ Sources: [Create custom subagents](https://code.claude.com/docs/en/sub-agents), [SDK subagents](https://code.claude.com/docs/en/agent-sdk/subagents)
126
+
127
+ ### What it does **not** inherit
128
+
129
+ The docs explicitly say the subagent does **not** get:
130
+
131
+ - the parent **conversation history**
132
+ - the parent’s already-invoked **skills**
133
+ - the files Claude already **read**
134
+ - the parent **system prompt**
135
+ - the parent’s **auto memory**
136
+ - the parent’s **output style**
137
+ - the parent’s **context-window size** (the subagent’s model controls that)
138
+
139
+ Also: **skills do not inherit from the parent conversation**; if we want startup preload, we must list them in `skills`.
140
+
141
+ Sources: [Create custom subagents](https://code.claude.com/docs/en/sub-agents), [SDK subagents](https://code.claude.com/docs/en/agent-sdk/subagents)
142
+
143
+ ### Working directory / isolation
144
+
145
+ - Subagents start in the parent session’s current working directory.
146
+ - `cd` inside Bash/PowerShell tool calls does not persist between calls.
147
+ - File-based agents can use `isolation: worktree` for a temporary git worktree.
148
+ - **Programmatic SDK AgentDefinition does not document per-agent `cwd`, `additionalDirectories`, or `isolation`.** Those controls are session-level, not per-agent.
149
+
150
+ Sources: [Create custom subagents](https://code.claude.com/docs/en/sub-agents), [TS SDK reference](https://code.claude.com/docs/en/agent-sdk/typescript), [Python SDK reference](https://code.claude.com/docs/en/agent-sdk/python)
151
+
152
+ ## 5) Foreground/background lifecycle
153
+
154
+ ### Defaults and launch behavior
155
+
156
+ - In SDK subagents, **background is the default**.
157
+ - If an `Agent` tool call omits `run_in_background`, it launches a background subagent.
158
+ - Claude sets `run_in_background: false` when it needs the result before continuing.
159
+ - `background: true` forces background execution even when Claude wants the result.
160
+
161
+ Sources: [SDK subagents](https://code.claude.com/docs/en/agent-sdk/subagents), [Create custom subagents](https://code.claude.com/docs/en/sub-agents)
162
+
163
+ ### Foreground behavior
164
+
165
+ - Foreground subagents **block the main conversation until complete**.
166
+ - Permission prompts are passed through to the user.
167
+
168
+ Source: [Create custom subagents](https://code.claude.com/docs/en/sub-agents)
169
+
170
+ ### Background behavior
171
+
172
+ - Background subagents run concurrently while the main conversation continues.
173
+ - If a background subagent hits a permissioned tool call, Claude Code surfaces the prompt in the main session and names the subagent.
174
+ - `Esc` denies just that one tool call without stopping the subagent.
175
+ - Longer-lived permission grants apply to the **whole session**, including the main conversation.
176
+ - Results come back later as a **completion notification**; if asked early, Claude reports the subagent is still running.
177
+
178
+ Source: [Create custom subagents](https://code.claude.com/docs/en/sub-agents)
179
+
180
+ ## 6) Steering, resume, stop/pause, status
181
+
182
+ ### Steering
183
+
184
+ Documented steering controls:
185
+
186
+ - When fork mode is off, ask Claude to run a task in the **foreground** or **background**.
187
+ - Press **`Ctrl+B`** to background a running task.
188
+
189
+ Source: [Create custom subagents](https://code.claude.com/docs/en/sub-agents)
190
+
191
+ ### Resume semantics
192
+
193
+ - Each subagent invocation is a **new instance** unless explicitly resumed.
194
+ - A resumed subagent retains **full conversation history, tool calls, results, and reasoning**.
195
+ - A completed subagent resumes **in the background** without a new `Agent` invocation.
196
+ - A resumed run keeps the **tool set from the first run**.
197
+ - Built-in **Explore** and **Plan** are **one-shot** and return no agent ID, so they **cannot be resumed**.
198
+
199
+ Source: [Create custom subagents](https://code.claude.com/docs/en/sub-agents)
200
+
201
+ ### Session-level continue / resume / fork
202
+
203
+ SDK session semantics:
204
+
205
+ - `continue` / `continue_conversation=True` = resume the **most recent** session in the current directory
206
+ - `resume` = resume a **specific** `session_id`
207
+ - `fork` = create a **new** session with a copy of an existing session’s history
208
+ - `session_id` is returned on result messages
209
+
210
+ Source: [SDK sessions](https://code.claude.com/docs/en/agent-sdk/sessions)
211
+
212
+ ### Status / monitoring surfaces
213
+
214
+ If Pi needs runtime observability, the official surfaces are:
215
+
216
+ - **SDK message stream**: background tasks (including subagents) emit `TaskStartedMessage`, `TaskProgressMessage`, and `TaskNotificationMessage` (`completed` / `failed` / `stopped`). ([Python SDK ref](https://code.claude.com/docs/en/agent-sdk/python))
217
+ - **Agent view CLI**: `claude agents --json` exposes session `state` = `working | blocked | done | failed | stopped`, live `status` = `busy | waiting | idle`, and `waitingFor` = `permission prompt | input needed | sandbox request | worker request | dialog open`. ([agent view](https://code.claude.com/docs/en/agent-view))
218
+
219
+ ### Stop / pause behavior
220
+
221
+ - The Python streaming client exposes `interrupt()` and `stop_task(task_id)`; one-shot `query()` explicitly says **no interrupts / no follow-up messages**. ([Python source `client.py`](https://github.com/anthropics/claude-agent-sdk-python/blob/main/src/claude_agent_sdk/client.py), [Python source `query.py`](https://github.com/anthropics/claude-agent-sdk-python/blob/main/src/claude_agent_sdk/query.py))
222
+ - I found **no dedicated documented “pause subagent” API**. The documented controls are **background**, **stop**, and **resume**.
223
+ - If the user explicitly stops a subagent, it **does not auto-resume**; while its row is still present, the user can resume it from its transcript.
224
+
225
+ Sources: [Create custom subagents](https://code.claude.com/docs/en/sub-agents), [agent view](https://code.claude.com/docs/en/agent-view)
226
+
227
+ ### Backgrounding a foreground session with active subagents
228
+
229
+ This is the closest thing to a “pause” semantic in the docs, and it matters:
230
+
231
+ - When backgrounding a foreground session, Claude Code tries to wait for running foreground subagents so work can carry over.
232
+ - If the user forces immediate backgrounding, **running subagents restart from the beginning** and previously spent tokens are spent again.
233
+ - Some work (for example active monitors) cannot carry over and is stopped.
234
+
235
+ Source: [agent view](https://code.claude.com/docs/en/agent-view)
236
+
237
+ ## 7) Unsupported features / assumptions to avoid
238
+
239
+ - **Do not assume unknown frontmatter keys fail loudly.** The docs say they are silently ignored.
240
+ - **Do not assume `allowedTools` means capability restriction.** It is permission pre-approval, not tool removal.
241
+ - **Do not assume subagents can ask the user clarifying questions themselves.** `AskUserQuestion` is removed from every subagent.
242
+ - **Do not assume parent memory/style/history carry over.** Auto memory, output style, prior reads, and prior tool results do not.
243
+ - **Do not assume programmatic SDK agents can express all markdown-frontmatter features.** File-based config is richer, especially for `hooks` and `isolation`; Python is narrower still.
244
+ - **Do not assume a generic pause primitive exists.** The documented controls are backgrounding, stop, resume, and workflow/session-level carry-over behavior.
245
+ - **Do not assume per-agent filesystem scoping exists in the SDK.** No documented per-agent `cwd`, `additionalDirectories`, or `isolation` field exists in SDK `AgentDefinition`.
246
+
247
+ ## Primary sources
248
+
249
+ - Claude Code subagents: https://code.claude.com/docs/en/sub-agents
250
+ - Agent SDK subagents: https://code.claude.com/docs/en/agent-sdk/subagents
251
+ - Agent SDK sessions: https://code.claude.com/docs/en/agent-sdk/sessions
252
+ - Agent SDK permissions: https://code.claude.com/docs/en/agent-sdk/permissions
253
+ - Agent view / background sessions: https://code.claude.com/docs/en/agent-view
254
+ - TypeScript SDK reference: https://code.claude.com/docs/en/agent-sdk/typescript
255
+ - Python SDK reference: https://code.claude.com/docs/en/agent-sdk/python
256
+ - Python SDK source (`AgentDefinition`): https://github.com/anthropics/claude-agent-sdk-python/blob/main/src/claude_agent_sdk/types.py
257
+ - Python SDK source (`query()`): https://github.com/anthropics/claude-agent-sdk-python/blob/main/src/claude_agent_sdk/query.py
258
+ - Python SDK source (`ClaudeSDKClient`): https://github.com/anthropics/claude-agent-sdk-python/blob/main/src/claude_agent_sdk/client.py
@@ -0,0 +1,143 @@
1
+ # Technical Research: OpenAI Codex subagents / multi-agent lifecycle
2
+
3
+ ## Summary
4
+ Current upstream Codex has **two distinct subagent tool surfaces**. **MultiAgent V1** matches the classic lifecycle you asked about (`spawn_agent` → `send_input` → `wait_agent` → `close_agent` / `resume_agent`), but it is centered on **thread IDs**. **MultiAgent V2** matches the **hierarchical `/root/...` path model** you want, but it changes the lifecycle to `spawn_agent` → `send_message` / `followup_task` → `wait_agent` → `interrupt_agent`, with **no model-facing `close_agent` or `resume_agent`**. This means your desired combination of **path hierarchy + V1 lifecycle verbs** is **not a single upstream interface today**; it is a custom requirement built from parts that upstream currently splits across V1 and V2. [Docs](https://developers.openai.com/codex/subagents) [V1/V2 source](https://github.com/openai/codex/blob/main/codex-rs/core/src/tools/handlers/multi_agents_spec.rs)
5
+
6
+ ## Key Code Examples & APIs
7
+
8
+ ### Surface comparison
9
+
10
+ | Concern | Upstream V1 | Upstream V2 |
11
+ | --- | --- | --- |
12
+ | Spawn result | `agent_id` + optional nickname | canonical `task_name` (+ optional nickname) |
13
+ | Primary targeting | thread id | hierarchical task path |
14
+ | Send more work | `send_input` | `send_message` or `followup_task` |
15
+ | Wait semantics | explicit target wait for final statuses | mailbox-activity wait, not target-specific |
16
+ | Stop/close | `close_agent` | `interrupt_agent` |
17
+ | Reopen | `resume_agent` | no model-facing resume |
18
+
19
+ Sources: [tool spec](https://github.com/openai/codex/blob/main/codex-rs/core/src/tools/handlers/multi_agents_spec.rs), [V1 handlers](https://github.com/openai/codex/blob/main/codex-rs/core/src/tools/handlers/multi_agents.rs), [V2 handlers](https://github.com/openai/codex/blob/main/codex-rs/core/src/tools/handlers/multi_agents_v2.rs)
20
+
21
+ ### V1 lifecycle shape
22
+ ```json
23
+ {
24
+ "tool": "multi_agent_v1.spawn_agent",
25
+ "arguments": { "message": "Investigate X", "fork_context": false }
26
+ }
27
+ ```
28
+ ```json
29
+ {
30
+ "tool": "multi_agent_v1.send_input",
31
+ "arguments": { "target": "<agent_id>", "message": "Continue", "interrupt": false }
32
+ }
33
+ ```
34
+ ```json
35
+ {
36
+ "tool": "multi_agent_v1.wait_agent",
37
+ "arguments": { "targets": ["<agent_id>"], "timeout_ms": 30000 }
38
+ }
39
+ ```
40
+ ```json
41
+ { "tool": "multi_agent_v1.close_agent", "arguments": { "target": "<agent_id>" } }
42
+ ```
43
+ ```json
44
+ { "tool": "multi_agent_v1.resume_agent", "arguments": { "id": "<agent_id>" } }
45
+ ```
46
+ Sources: [spec](https://github.com/openai/codex/blob/main/codex-rs/core/src/tools/handlers/multi_agents_spec.rs), [spawn](https://github.com/openai/codex/blob/main/codex-rs/core/src/tools/handlers/multi_agents/spawn.rs), [send_input](https://github.com/openai/codex/blob/main/codex-rs/core/src/tools/handlers/multi_agents/send_input.rs), [wait](https://github.com/openai/codex/blob/main/codex-rs/core/src/tools/handlers/multi_agents/wait.rs), [close](https://github.com/openai/codex/blob/main/codex-rs/core/src/tools/handlers/multi_agents/close_agent.rs), [resume](https://github.com/openai/codex/blob/main/codex-rs/core/src/tools/handlers/multi_agents/resume_agent.rs)
47
+
48
+ ### V2 lifecycle shape
49
+ ```json
50
+ {
51
+ "tool": "spawn_agent",
52
+ "arguments": {
53
+ "task_name": "researcher",
54
+ "message": "Investigate X",
55
+ "fork_turns": "none"
56
+ }
57
+ }
58
+ ```
59
+ ```json
60
+ {
61
+ "tool": "send_message",
62
+ "arguments": { "target": "researcher", "message": "One more angle" }
63
+ }
64
+ ```
65
+ ```json
66
+ {
67
+ "tool": "followup_task",
68
+ "arguments": { "target": "/root/researcher", "message": "Now verify Y" }
69
+ }
70
+ ```
71
+ ```json
72
+ { "tool": "wait_agent", "arguments": { "timeout_ms": 30000 } }
73
+ ```
74
+ ```json
75
+ { "tool": "interrupt_agent", "arguments": { "target": "/root/researcher" } }
76
+ ```
77
+ Sources: [spec](https://github.com/openai/codex/blob/main/codex-rs/core/src/tools/handlers/multi_agents_spec.rs), [spawn](https://github.com/openai/codex/blob/main/codex-rs/core/src/tools/handlers/multi_agents_v2/spawn.rs), [message flow](https://github.com/openai/codex/blob/main/codex-rs/core/src/tools/handlers/multi_agents_v2/message_tool.rs), [wait](https://github.com/openai/codex/blob/main/codex-rs/core/src/tools/handlers/multi_agents_v2/wait.rs), [interrupt](https://github.com/openai/codex/blob/main/codex-rs/core/src/tools/handlers/multi_agents_v2/interrupt_agent.rs)
78
+
79
+ ### Path hierarchy
80
+ - Root agent path is `/root`.
81
+ - If the current agent is `/root/task1` and it spawns `task_3`, upstream V2 makes the child `/root/task1/task_3`.
82
+ - That child can be referred to locally as `task_3` or canonically as `/root/task1/task_3`.
83
+ - A sibling branch like `/root/task2/task_3` does **not** get that shorthand; it must use the canonical path.
84
+
85
+ Sources: [spawn tool description](https://github.com/openai/codex/blob/main/codex-rs/core/src/tools/handlers/multi_agents_spec.rs), [path construction](https://github.com/openai/codex/blob/main/codex-rs/core/src/tools/handlers/multi_agents_common.rs)
86
+
87
+ ### Custom agent files
88
+ ```toml
89
+ # .codex/agents/reviewer.toml
90
+ name = "reviewer"
91
+ description = "PR reviewer focused on correctness, security, and missing tests."
92
+ model = "gpt-6.1-sol"
93
+ model_reasoning_effort = "medium"
94
+ sandbox_mode = "read-only"
95
+ developer_instructions = """
96
+ Review code like an owner.
97
+ Prioritize correctness, security, behavior regressions, and missing test coverage.
98
+ """
99
+ ```
100
+ Source: [official subagents docs](https://developers.openai.com/codex/subagents)
101
+
102
+ ## Findings
103
+ 1. **The public Codex docs are conceptual; the source is required for exact tool semantics.** Official docs say current local Codex clients support subagent workflows by default, surface subagent activity in the desktop app / CLI / IDE, and support custom agents in `~/.codex/agents/` or `.codex/agents/`. But the docs do **not** spell out the exact model-facing tool API; the current open-source implementation does. [Docs](https://developers.openai.com/codex/subagents)
104
+
105
+ 2. **Upstream currently ships two different multi-agent APIs, not one.** V1 exposes namespaced tools `multi_agent_v1.spawn_agent`, `send_input`, `resume_agent`, `wait_agent`, and `close_agent`. V2 exposes `spawn_agent`, `send_message`, `followup_task`, `wait_agent`, `interrupt_agent`, and `list_agents`. So `send_input` / `resume_agent` / `close_agent` are **V1 concepts**, while hierarchical task paths are a **V2 concept**. [Tool spec](https://github.com/openai/codex/blob/main/codex-rs/core/src/tools/handlers/multi_agents_spec.rs) [V1 module](https://github.com/openai/codex/blob/main/codex-rs/core/src/tools/handlers/multi_agents.rs) [V2 module](https://github.com/openai/codex/blob/main/codex-rs/core/src/tools/handlers/multi_agents_v2.rs)
106
+
107
+ 3. **The exact lifecycle you asked for exists upstream only in V1.** In V1, `spawn_agent` returns an `agent_id`; `send_input` targets that id and can queue or interrupt; `wait_agent` waits on explicit target ids and returns final statuses; `close_agent` shuts down the target and descendants; `resume_agent` reopens a closed agent by id. [spawn](https://github.com/openai/codex/blob/main/codex-rs/core/src/tools/handlers/multi_agents/spawn.rs) [send_input](https://github.com/openai/codex/blob/main/codex-rs/core/src/tools/handlers/multi_agents/send_input.rs) [wait](https://github.com/openai/codex/blob/main/codex-rs/core/src/tools/handlers/multi_agents/wait.rs) [close](https://github.com/openai/codex/blob/main/codex-rs/core/src/tools/handlers/multi_agents/close_agent.rs) [resume](https://github.com/openai/codex/blob/main/codex-rs/core/src/tools/handlers/multi_agents/resume_agent.rs)
108
+
109
+ 4. **V2 replaces that lifecycle with path-based messaging and runtime-managed reuse.** `send_message` queues text without triggering a turn; `followup_task` sends text and triggers a turn; `interrupt_agent` interrupts the current turn but explicitly keeps the agent reusable; `list_agents` enumerates live agents in the current root tree. There is **no model-facing `close_agent` or `resume_agent` in V2**, so load/unload/resume are runtime concerns, not agent tools. [spec](https://github.com/openai/codex/blob/main/codex-rs/core/src/tools/handlers/multi_agents_spec.rs) [message flow](https://github.com/openai/codex/blob/main/codex-rs/core/src/tools/handlers/multi_agents_v2/message_tool.rs) [followup_task](https://github.com/openai/codex/blob/main/codex-rs/core/src/tools/handlers/multi_agents_v2/followup_task.rs) [interrupt](https://github.com/openai/codex/blob/main/codex-rs/core/src/tools/handlers/multi_agents_v2/interrupt_agent.rs) [list_agents](https://github.com/openai/codex/blob/main/codex-rs/core/src/tools/handlers/multi_agents_v2/list_agents.rs)
110
+
111
+ 5. **V2 path behavior already matches most of the hierarchy you want.** Upstream V2 constructs a canonical child path by taking the caller’s current agent path (or `/root`) and appending `task_name`. That means `/a/b` spawning `c` yields `/a/b/c`, and `/k/l` is a different subtree. The tool description explicitly says a child can be referred to by local shorthand (`task_3`) or canonical path, but a sibling subtree must use the canonical path. This confirms hierarchical naming, not unconditional history inheritance: V2 separately controls history with `fork_turns`. Pi-subagent will make the lexical-parent snapshot rule explicit and will not inherit from an unrelated caller. [path construction](https://github.com/openai/codex/blob/main/codex-rs/core/src/tools/handlers/multi_agents_common.rs) [spawn description](https://github.com/openai/codex/blob/main/codex-rs/core/src/tools/handlers/multi_agents_spec.rs)
112
+
113
+ 6. **Important distinction: upstream separates `task_name` from role selection.** In V2, `task_name` is the path label segment, so `task_name = "researcher"` can produce `/root/researcher`. But the actual role/model/instructions come from `agent_type` and/or a custom agent file, not from `task_name` itself. That means “`/root/researcher`” is a valid upstream path label, but it does **not** automatically mean “spawn the `researcher` custom agent” unless role selection is also configured and exposed. [spawn args/spec](https://github.com/openai/codex/blob/main/codex-rs/core/src/tools/handlers/multi_agents_v2/spawn.rs) [official custom-agent docs](https://developers.openai.com/codex/subagents)
114
+
115
+ 7. **Context inheritance is explicit and different between V1 and V2.** V1 has `fork_context: bool`; `true` forks the current thread history, `false` starts from only the delegated prompt. V2 has `fork_turns`, which accepts `none`, `all`, or a positive integer string like `"3"`; in current source, omitted `fork_turns` defaults to `all`. So V2 supports fresh children, full-history forks, and partial-history forks. [V1 spec](https://github.com/openai/codex/blob/main/codex-rs/core/src/tools/handlers/multi_agents_spec.rs) [V2 spawn parser](https://github.com/openai/codex/blob/main/codex-rs/core/src/tools/handlers/multi_agents_v2/spawn.rs)
116
+
117
+ 8. **Child config inheritance is parent-first, then layered overrides.** The source builds a child config from the parent’s effective config and live turn state, then applies requested model/reasoning overrides, then optional role/custom-agent config, then reapplies runtime-only overrides such as approval policy, permission profile, and cwd. Official docs match this: custom agents can define `model`, `model_reasoning_effort`, `sandbox_mode`, `mcp_servers`, and `skills.config`, while omitted values inherit from the parent/default resolution chain. [child config source](https://github.com/openai/codex/blob/main/codex-rs/core/src/agent/child_config.rs) [docs](https://developers.openai.com/codex/subagents)
118
+
119
+ 9. **Officially documented agent config covers the key knobs you asked about.** `agents.enabled` defaults to `true`; `agents.max_concurrent_threads_per_session` caps spawned threads; `agents.max_threads` is a legacy alias; `agents.default_subagent_model` and `agents.default_subagent_reasoning_effort` provide defaults; `agents.interrupt_message` controls whether interruption is recorded into model-visible context. Custom agent files require `name`, `description`, and `developer_instructions`. [config reference summary](https://developers.openai.com/codex/config-file/config-reference) [subagents docs](https://developers.openai.com/codex/subagents)
120
+
121
+ 10. **`wait_agent` is materially different across versions, and this matters for any implementation that wants parity.** V1 `wait_agent` takes explicit `targets` and waits for final statuses, returning per-target status objects. V2 `wait_agent` takes only an optional timeout and waits for **mailbox activity or steered input**, returning a brief message plus `timed_out`; it is **not** a target-specific join/barrier API. [V1 wait](https://github.com/openai/codex/blob/main/codex-rs/core/src/tools/handlers/multi_agents/wait.rs) [V2 wait](https://github.com/openai/codex/blob/main/codex-rs/core/src/tools/handlers/multi_agents_v2/wait.rs) [spec text](https://github.com/openai/codex/blob/main/codex-rs/core/src/tools/handlers/multi_agents_spec.rs)
122
+
123
+ 11. **The current CLI/TUI explicitly surfaces subagent state and path-based activity.** Public docs say activity is visible in the app/CLI/IDE; current TUI code renders Started / Interacted / Interrupted / Completed activity rows, shows a `/subagents` picker, and surfaces states such as Pending init, Running, Interrupted, Completed, Error, Shutdown, and Not found. [docs](https://developers.openai.com/codex/subagents) [TUI source](https://github.com/openai/codex/blob/main/codex-rs/tui/src/multi_agents.rs)
124
+
125
+ 12. **Bottom line: your requested design partly matches upstream and partly extends it.** Hierarchical naming matches upstream V2; Pi-subagent’s mandatory lexical-parent snapshot rule is a custom constraint (upstream controls forks separately). The classic `send_input` / `resume_agent` / `close_agent` lifecycle is upstream V1 behavior. A system that wants **both together** would be implementing a **custom Pi surface**, not copying one current Codex surface verbatim. [V1/V2 spec](https://github.com/openai/codex/blob/main/codex-rs/core/src/tools/handlers/multi_agents_spec.rs)
126
+
127
+ ## Sources
128
+ - Kept: OpenAI Codex Subagents docs (<https://developers.openai.com/codex/subagents>) — official product-level behavior, inheritance, custom agent schema, and UI claims.
129
+ - Kept: OpenAI Codex config reference (<https://developers.openai.com/codex/config-file/config-reference>) — official `[agents]` settings and defaults/aliases.
130
+ - Kept: `multi_agents_spec.rs` (<https://github.com/openai/codex/blob/main/codex-rs/core/src/tools/handlers/multi_agents_spec.rs>) — authoritative model-facing tool schema for V1 and V2.
131
+ - Kept: V1 handler sources (`multi_agents/*.rs`) — authoritative lifecycle behavior for `send_input`, `resume_agent`, `wait_agent`, `close_agent`.
132
+ - Kept: V2 handler sources (`multi_agents_v2/*.rs`) — authoritative lifecycle behavior for `spawn_agent`, `send_message`, `followup_task`, `wait_agent`, `interrupt_agent`, `list_agents`.
133
+ - Kept: `child_config.rs` (<https://github.com/openai/codex/blob/main/codex-rs/core/src/agent/child_config.rs>) — authoritative config inheritance / override logic.
134
+ - Kept: `multi_agents_common.rs` (<https://github.com/openai/codex/blob/main/codex-rs/core/src/tools/handlers/multi_agents_common.rs>) — authoritative path construction for child agents.
135
+ - Kept: TUI source (`tui/src/multi_agents.rs`) — corroborates current user-visible status surfacing.
136
+ - Dropped: GitHub issues discussing docs/runtime mismatch for custom agents — useful background, but secondary to current docs + source and not needed for the checked conclusions here.
137
+ - Dropped: Community forum posts about subagent model selection — secondary and partially stale relative to current `main`.
138
+ - Dropped: PR discussions where current `main` source already reflects the merged behavior — helpful history, but less authoritative than the resulting code.
139
+
140
+ ## Gaps
141
+ - I did **not** audit every app-server/generated wire schema; if implementation later depends on exact desktop/web protocol payloads, inspect `codex-rs/protocol/src/items.rs` and app-server type exports directly.
142
+ - The public config docs I checked do **not** appear to document every V2-specific internal knob; where V2 behavior matters here, I relied on current source rather than public config docs.
143
+ - If later implementation needs exact name-resolution rules for every V2 tool (not just the documented path behavior), inspect the current `AgentControl::resolve` path in upstream source before coding.
@@ -0,0 +1,99 @@
1
+ # Technical Research: Coding-agent model roles
2
+
3
+ ## Summary
4
+
5
+ Research cutoff: **2026-10-03**. Recommend advisory defaults of **Opus 5.5 for architect**, **GPT-6.1 Sol for independent reviewer**, **Sonnet 5.5 for coder**, and **GPT-6 Luna for tasker**. The dedicated [writing research](research-model-roles-writing.md) supersedes this coding-focused report's economical documentation candidate: the final writer shortlist is Opus 5.5, access-conditional Gemini 4 Argon, and GPT-6 Astra. These are role-fit starting points, not a claim of a universal SOTA winner or runtime model pins; validate with repository-specific trials before changing execution configuration.
6
+
7
+ ## Access and evidence provenance
8
+
9
+ Read the requested web-research skill. The parent reports `mcp__exa__web_search_exa` and `mcp__exa__web_fetch_exa` available through codemode. Neither codemode nor these MCP functions is exposed in this sub-agent's callable tool set. Discovery nevertheless **used `functions.web_search(provider="exa")`**, with responses explicitly reporting Exa; full-page reading used `functions.fetch_content`, not Exa MCP fetch. Do not describe this as direct use of the named MCP tools or as Exa search being unavailable. Context7/code-search tools are also not exposed; this is model selection, not library API research.
10
+
11
+ Sources below were consulted for this cutoff. Live pages may change and are not archived historical snapshots. Release dates are reported source dates, not independently established deployment times. OpenAI's Sol launch page returned HTTP 403 on direct fetch; its model reference was readable. Some fetches used page-local answer extraction; treat extracted benchmark tables as vendor evidence rather than independent reproduction.
12
+
13
+ ## Recommendation matrix: advisory modelSuggestions
14
+
15
+ | Role | Suggested default | Alternatives / escalation | Rationale and limits |
16
+ | ---------------------------------- | ------------------------------ | ---------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
17
+ | architect (also evidence research) | Claude Opus 5.5 | GPT-6 Astra for expensive, high-stakes second opinions; GPT-6.1 Sol for cheaper planning | Anthropic positions Opus for complex, open-ended sustained judgment. Benchmark execution success is not an architecture-quality evaluation. Research needs browsing and citation verification regardless of model. |
18
+ | reviewer | **GPT-6.1 Sol** | **GPT-6 Astra** for security-sensitive or unusually difficult reviews | GPT-only by explicit user preference; a different family from the default Claude coder provides a second perspective, not proven statistical independence. No verified review-precision win for these candidates. |
19
+ | coder | Claude Sonnet 5.5 | GPT-6.1 Sol; pilot Muse Spark 1.3 and DeepSeek-V4.1-Flash; Opus for complex failures | Strong recent Terminal-Bench 4.0 vendor result, lower token prices than Opus, and faster positioning. DeepSWE alone does not establish Sonnet as the best implementer. |
20
+ | tasker | GPT-6 Luna | DeepSeek-V4.1-Flash; Sonnet for failed/ambiguous tasks | Low published token cost suits bounded extraction, formatting, test invocation, and mechanical changes. Constrain scope and require machine-checkable acceptance. |
21
+ | writer | See dedicated writing research | Final shortlist: Opus 5.5; Gemini 4 Argon only if accessible; GPT-6 Astra | Creative/editorial writing is a different workload from economical documentation. This coding report does not establish writing quality. See [final bundled suggestions](default-agents.md). |
22
+
23
+ These suggestions should remain descriptive/advisory metadata. Do not silently change provider IDs, harnesses, reasoning effort, or runtime routing. A GPT coder should still receive a separate reviewer session with independent context and explicit review criteria.
24
+
25
+ ## Verified names versus user aliases
26
+
27
+ | User wording | Verified public identity / documented ID | Availability evidence |
28
+ | -------------------- | ------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
29
+ | `sonnet-5.5` | Claude Sonnet 5.5 / `claude-sonnet-5-5` | Official docs list active, released Sep 28, 2026; availability across major Claude platforms. [Docs](https://platform.claude.com/docs/en/models/sonnet-5-5/overview) |
30
+ | `opus-5.5` | Claude Opus 5.5 / `claude-opus-5-5` | Official docs list active, released Sep 22, 2026. [Docs](https://platform.claude.com/docs/en/models/opus-5-5/overview) |
31
+ | `gpt-6.1-sol` | GPT-6.1 Sol / `gpt-6.1-sol` | Official model reference readable; Sep 29 launch identified by announcement/search sources. [Reference](https://developers.openai.com/api/docs/models/gpt-6.1-sol), [Announcement](https://openai.com/index/introducing-gpt-6-1-sol) |
32
+ | `gpt-6-astra` | GPT-6 Astra / `gpt-6-astra` | Public official model reference. [Reference](https://developers.openai.com/api/docs/models/gpt-6-astra) |
33
+ | `gpt luna` | Likely GPT-6 Luna / `gpt-6-luna` | Generation omitted by user; confirm intended generation, rather than treating the phrase as an exact ID. [Reference](https://developers.openai.com/api/docs/models/gpt-6-luna) |
34
+ | `must-spark-1.3` | **Unverified name**; likely Muse Spark 1.3 / `muse-spark-1.3` | Official Meta docs and launch identify Muse, not Must. Confirm typo with user. Standard and Contributor variants differ in data-use terms. [Models](https://dev.meta.ai/docs/models), [Launch](https://research.meta.ai/blog/introducing-muse-spark-1-3) |
35
+ | `deepseek 4.1 flash` | DeepSeek-V4.1-Flash / **`deepseek-flash`** | Sep 10, 2026 official release. Legacy `deepseek-v4-flash` aliases route to it; a guessed `deepseek-v4.1-flash` is not the documented direct-service ID. [Release](https://api-docs.deepseek.com/news/news260910) |
36
+
37
+ Public documentation does not guarantee access in a particular account, provider, region, or coding harness.
38
+
39
+ ## Findings
40
+
41
+ 1. **DeepSWE is especially relevant to implementation, but harness differences dominate narrow score gaps.** Datacurve's DeepSWE v1.1 describes long-horizon tasks across 113 tasks, 91 repositories and five languages, graded with functional and regression tests. The official board is the preferred reference. Secondary reporting updated Oct 2 separates provider runs from standardized mini-swe-agent entries: GPT-6.1 Sol 75.2%, Opus 5.5 74.2%, Sonnet 5.5 71.0%; it also reports Muse 75.4% and Astra 74.1%. These secondary numbers are **not independently verified primary-source scores here** and must not be presented as a common-harness ranking. Confidence intervals and task costs for new provider rows are incomplete. [Official board](https://deepswe.datacurve.ai/), [dated secondary report](https://codingfleet.com/blog/deepswe-v11-leaderboard-2026/)
42
+
43
+ 2. **DeepSeek provides particularly concrete harness-sensitivity evidence.** Its September model card reports DeepSWE v1.1 **74.2** using mini-SWE at maximum reasoning effort, versus **66.2 in Pi**, **65.6 in Codex**, and **69.8 in Claude Code** in its scaffold comparison. These are vendor evaluations, not a reproduction in this repository. The comparison uses eight samples/task for DeepSWE, three for Terminal-Bench 2.1, up to 500 steps, and max reasoning. Strong benchmark results at max effort do not establish cheap bounded-task latency at low effort. [Model card](https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash)
44
+
45
+ 3. **Terminal-Bench versions cannot be merged.** Anthropic's Sep 28 Sonnet launch reports **70.6% on Terminal-Bench 4.0**, with Opus 5.5 **66.4%** subject to the launch table's footnote/settings. DeepSeek's model card reports **90.6 on 2.1**, **30.0 on 3.0**, and **31.2 on 4.0**, with its own Minimal harness. This does not justify comparing 90.6 directly to 70.6 or declaring an unconditional winner. Use the official leaderboard and match task version, harness, effort, tool/network access, retries and scoring. [Sonnet launch](https://www.anthropic.com/claude-sonnet-5-5), [DeepSeek card](https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash), [Terminal-Bench](https://www.tbench.ai/leaderboard)
46
+
47
+ 4. **SWE-bench evidence remains a gap for this exact shortlist.** No adequately verified, version-matched SWE-bench Verified/Pro result set for all requested candidates was obtained. Do not substitute DeepSWE for SWE-bench or invent missing scores. Nor should issue-resolution pass rate be treated as review precision.
48
+
49
+ 5. **GPT reviewer recommendation is preference-constrained, not a proven precision ranking.** Sol's official model reference recommends comparing near-Astra capability against cost on one's own tasks. No current, matched review benchmark for Sol/Astra versus Sonnet/Opus was established. Review evaluation needs true actionable defect precision, false-positive comments/PR, recall, severity calibration and human acceptance—not just bug-fixing success. Require file/line, reproducible failure, impact and minimal suggested fix; permit an empty findings list, prohibit unsolicited rewrites, and cap comments. [Sol reference](https://developers.openai.com/api/docs/models/gpt-6.1-sol)
50
+
51
+ 6. **Conciseness is not a GPT-family invariant.** Meta reports Muse 1.3 uses about 20% fewer tool calls and 25% fewer tokens than Muse 1.2 in its engineers' comparisons; that is a vendor, within-family comparison, not GPT review evidence. OpenAI's Sol system-card text reports longer final answers than GPT-6 Sol/Luna but slightly shorter than Astra on HealthBench—non-coding evidence that cannot establish review concision. There is no support here for “GPT always writes less code.” Control reviewer length through task policy and evaluate it locally. [Meta launch](https://research.meta.ai/blog/introducing-muse-spark-1-3), [OpenAI system-card addendum](https://deploymentsafety.openai.com/gpt-6-1-sol/kernelgen-1p)
52
+
53
+ 7. **Latency depends on effort and total trajectory.** Anthropic describes Sonnet as fast, Opus as moderate, and claims Sonnet 5.5 output generation is 30%+ faster than Sonnet 5, not all competitors. Artificial Analysis's live comparison gives Sonnet-medium versus Opus-low about 92 versus 72 output tokens/s and 1.42 versus 12.76 seconds to first token, yet per-task time about 131 versus 87 seconds: token speed does not equal task speed. These are live, configuration-specific measurements, not archived Oct 3 guarantees. Sol's reference supports low through max, but **not none/minimal**. Measure p50/p95 wall time and accepted-result cost on the actual harness. [Launch](https://www.anthropic.com/claude-sonnet-5-5), [AA comparison](https://artificialanalysis.ai/models/comparisons/claude-sonnet-5-5-medium-vs-claude-opus-5-5-low), [Sol reference](https://developers.openai.com/api/docs/models/gpt-6.1-sol)
54
+
55
+ ## Cost snapshot
56
+
57
+ USD per million uncached input / output tokens; exclude tool fees, retry costs and cache discounts. OpenAI figures below are **Standard-processing short-context rates**, not unrestricted tariffs. Official long-context rates are Sol **$4 / $15**, Astra **$20 / $75**, and Luna **$0.20 / $0.75**. Luna's reference applies its higher rates to the full request when input exceeds **272K tokens**; consult each model's live reference for its applicable threshold before cost-sensitive routing. Live pricing is not a frozen historical tariff. [Official OpenAI pricing](https://developers.openai.com/api/docs/pricing).
58
+
59
+ | Model | Input / output | Evidence / qualification |
60
+ | ----------------------- | -----------------------------------------: | ------------------------------------------------------------------------------------------------------------------------------- |
61
+ | Sonnet 5.5 | $2 / $10 | Official Sep 28 launch and docs |
62
+ | Opus 5.5 | $4 / $20 | Official model docs |
63
+ | GPT-6.1 Sol | $2 / $10 | Readable official model reference and independently fetched official pricing; Standard short-context |
64
+ | GPT-6 Astra | $10 / $50 | Independently fetched official pricing; Standard short-context; verify live billing |
65
+ | GPT-6 Luna | $0.10 / $0.50 | Official model reference and pricing; Standard short-context, higher rates above 272K input tokens |
66
+ | Muse Spark 1.3 Standard | $1.25 / $4.25 | Official Meta product page; Contributor $0.10 / $0.20 allows product improvement/training, so is not an equivalent privacy tier |
67
+ | DeepSeek-V4.1-Flash | $0.15 / $0.60 off-peak; $0.30 / $1.20 peak | Official pricing fetched; cache-hit input $0.003 / $0.006 respectively; UTC schedule applies |
68
+
69
+ [Meta product/pricing](https://developer.meta.com/ai/models/muse-spark/), [DeepSeek pricing](https://api-docs.deepseek.com/quick_start/pricing), [Official OpenAI pricing](https://developers.openai.com/api/docs/pricing). Low token tariffs do not guarantee lowest cost per successful task.
70
+
71
+ ## Key APIs and usage constraints
72
+
73
+ No runtime configuration changes are proposed. Names above are verified direct-provider identities for disambiguation, not pins. Sol tool calling requires the Responses API; Chat Completions supports it without tool calling. Luna supports tools/function calling through Responses; Chat Completions function calling requires `reasoning_effort=none`, so check harness compatibility before using a reasoning-enabled tasker. [Luna reference](https://developers.openai.com/api/docs/models/gpt-6-luna). Meta Standard tier supports Muse 1.3 max reasoning; Contributor changes both data-use terms and available reasoning effort: max is Standard-only. Equivalent performance at shared efforts was not established. [Meta reasoning docs](https://ai.developer.meta.com/docs/reasoning/). DeepSeek's direct-service Flash alias is mutable, so record actual model version during evaluations.
74
+
75
+ Illustrative reviewer policy, not a model-specific API call:
76
+
77
+ ```text
78
+ Review independently; do not edit files.
79
+ Report only actionable defects introduced by the diff.
80
+ For each: severity, file:line, failure scenario, evidence, minimal fix.
81
+ No style-only findings or unsolicited rewrites. Maximum five findings.
82
+ Return “No actionable findings” when appropriate. Mark unverified claims.
83
+ ```
84
+
85
+ ## Sources
86
+
87
+ Kept: official Claude model pages/launch (identity, dates, costs and vendor evaluations); official OpenAI model references (identity and API constraints); Meta models/product/launch (identity, availability, data tiers and efficiency claims); DeepSeek release/pricing/model card (alias, costs and harness-specific results); Datacurve and Terminal-Bench boards (canonical benchmark context); Artificial Analysis (independent but live configuration-specific latency); CodingFleet Oct 2 report (explicitly secondary, distinguishes provider and standardized runs).
88
+
89
+ Dropped from decisive rankings: LLMBoard/Vector Wire leaderboard mirrors (mixed provenance and apparently precise ranks obscure harness differences); generic price/coding guides (not primary evaluations); older code-review comparisons involving Sonnet 4.6/GPT-5.4 mini (different models cannot settle the requested shortlist). Pricing catalog retained only as corroboration, not authority for identity or access.
90
+
91
+ ## Gaps and next steps
92
+
93
+ - Named Exa MCP fetch was not callable in the original research child. The parent subsequently fetched Sonnet's launch, Sol's reference, Google's Argon announcement, Arena creative writing, and Meta's model page through Exa MCP. Independent review also fetched official pricing and Luna/Meta reasoning references, leading to the corrections above. These are source checks, not benchmark reproductions.
94
+ - Need archived Oct 3 sources and primary Sol/Opus/Muse DeepSWE tables before promoting secondary scores to verified values.
95
+ - No matched SWE-bench suite or direct review precision/conciseness evidence for the exact candidates; no direct architecture or writer evaluation.
96
+ - Run a small blinded repository trial with identical harness/tool permissions: accepted patches plus regressions for coder; actionable precision/false positives for reviewer; requirement coverage and tradeoff accuracy for architect; exact acceptance checks for tasker; factuality and editing burden for writer. Track effort, retries, tokens, cache use and p50/p95 cost/latency.
97
+ - Confirm `must` → `muse` and intended Luna generation. Check account availability separately.
98
+
99
+ Only this new research Markdown file was written; no source code or runtime model configuration was edited. The target did not exist before writing; other files were not modified.