@@ -27,7 +27,7 @@ Prefer these tools in normal Claude usage:
2727- ` codex_task ` - one Task-like Codex subagent with an answer-first result.
2828- ` codex_task_group ` - several independent Task-like Codex subagents in parallel.
2929- ` codex_followup ` - continue, steer, or wait on the ` session_id ` returned by
30- ` codex_task ` or ` codex_task_group ` .
30+ ` codex_task ` or ` codex_task_group ` when ` background ` or ` keep_session ` is used .
3131
3232Legacy compatibility tools are hidden by default. Set
3333` CODEX_SUBAGENTS_ENABLE_LEGACY_TOOLS=1 ` only for older clients that still call
@@ -39,6 +39,10 @@ Diagnostic resources are available without cluttering the tool picker:
3939- ` codex://status `
4040- ` codex://doctor `
4141
42+ Native tool responses are intentionally lean by default. For a single debugging
43+ call, set ` advanced.include_diagnostics: true ` to include cwd/model/sandbox,
44+ event summaries, command events, and compacted session state in the response.
45+
4246Tool-callable diagnostics are hidden by default. Set
4347` CODEX_SUBAGENTS_ENABLE_DEBUG_TOOLS=1 ` only when a client needs:
4448
@@ -55,8 +59,8 @@ Use this decision path when writing prompts or debugging Claude tool choice:
5559| User intent | Best tool |
5660| --- | --- |
5761| One normal read-only second opinion | ` codex_task ` |
58- | Two or more independent workstreams | ` codex_task_group ` |
59- | Same Codex agent should keep context | ` codex_task ` , then ` codex_followup ` |
62+ | Two or more independent workstreams | Multiple parallel ` codex_task ` calls, or ` codex_task_group ` for one rolled-up response |
63+ | Same Codex agent should keep context | ` codex_task ` with ` keep_session: true ` , then ` codex_followup ` |
6064| Long first turn, user wants to keep working | ` codex_task ` with ` background: true ` |
6165| Add a normal follow-up to a running session | ` codex_followup ` with ` mode: "queue" ` |
6266| Redirect the active app-server turn | ` codex_followup ` with ` mode: "steer" ` |
@@ -129,11 +133,12 @@ Use a persistent session when Codex should keep context across prompts.
129133 "description" : " Investigate session manager" ,
130134 "prompt" : " Investigate the session manager read-only. Keep a compact working map of the code." ,
131135 "project_dir" : " /path/to/project" ,
132- "reasoning" : " medium"
136+ "reasoning" : " medium" ,
137+ "keep_session" : true
133138}
134139```
135140
136- ` codex_task ` returns a ` session_id ` . Then:
141+ ` codex_task ` returns a ` session_id ` when ` keep_session ` is true . Then:
137142
138143``` json
139144{
0 commit comments