Codex Desktop: aggregate subagent edits into the parent task’s “Edited files” card
Feature request
When a parent Codex task delegates implementation work to subagents, the parent task’s Edited N files card and Review view should aggregate every file changed on behalf of that task, including edits performed by descendant subagents.
The displayed file count, additions/deletions, per-file list, Review diff, and Undo scope should represent the complete task-level change set—not only edits issued directly by the main agent.
Why this matters
In a multi-agent task, the parent card reported an edited-file count that excluded several required changes made by subagents. Those files were present in the Git working tree, so the card looked authoritative while showing only a partial manifest.
This creates:
- incomplete review coverage;
- a risk that users believe files or packages were untouched;
- uncertainty about whether Undo reverts the full task;
- a mismatch between the assistant’s completion report and the visible artifact list.
The parent task is the unit the user authorized. Delegation to subagents should be an implementation detail rather than a reason for the task-level review surface to omit changes.
Expected behavior
For a parent task, collect mutations from the main agent and every descendant subagent, then show their final union:
- all modified, added, deleted, and renamed files;
- aggregate additions/deletions;
- co-edited files deduplicated to the final task diff;
- optional provenance per file (main agent or subagent);
- Undo scoped to the entire aggregated task, or clearly labeled if child edits cannot be included.
Child-agent transcripts can remain separate, but task-level review and Undo should be complete.
Reproduction
- Start a Codex Desktop task in a Git worktree.
- Have the main agent spawn one or more subagents that edit files.
- Have the main agent edit other files.
- Finish the task.
- Open the parent task’s Edited N files card.
- Compare the card with
git statusor the worktree diff.
Actual: Only files attributed to the main agent appear in the parent card.
Expected: All files changed by the task and its subagents appear.
Environment
Observed in Codex Desktop on macOS during a multi-agent task. No private repository details are included.