feat: auto-archive (or bulk/CLI archive) completed subagents
Paseo version: 0.10.2 (Windows desktop + CLI)
Problem Finished subagents stay in an agent's Subagents list indefinitely. A long-lived agent that spawns many background subagents (13 in my case) accumulates a long list of completed entries, and the only way to clean them up is archiving each one by hand in the UI.
The CLI can't help either: paseo ls -g --json (and ls -a) only lists top-level agents. Subagents don't show up, so there's nothing to pass to paseo archive.
Request (any one of these would solve it)
- A setting to auto-archive a subagent once it completes and its result has been delivered to the parent.
- A "Archive all completed" action on the Subagents list.
- CLI support, e.g.
paseo ls --subagents <parent>pluspaseo archiveaccepting subagent ids, orpaseo archive --completed-subagents <parent>.
Related: #1809 (subagents as child rows), #2874 (finished subagent shown as running).
Thanks for writing this up. I'm closing it because issues here are for bugs; ideas get read in Discussions, and there's one about this already at #3113.
In the meantime, the Archive finished subagents row at the bottom of the Subagents panel archives every finished subagent at once, and it's in 0.10.2.
Archive finished subagents in 0.10.2 helps with manual cleanup. I still have to clean up one-off children created through create_agent. Please add an option to archive the child and release its provider session automatically after the final result is returned to the parent. Keep the transcript available in archived history, and leave agents meant for reuse alone. This should work across providers, including OMP, Codex, Claude, and OpenCode.
Thanks for the detail, @sm1ee. This stays closed because issues here are for bugs. Archiving a one-off child automatically once it has returned its result is closest to the discussion at #3113, so adding your case there puts it where ideas get read.