paseo icon indicating copy to clipboard operation
paseo copied to clipboard

feat: auto-archive (or bulk/CLI archive) completed subagents

Open MeiMeiGO-Code opened this issue 2 months ago • 3 comments

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)

  1. A setting to auto-archive a subagent once it completes and its result has been delivered to the parent.
  2. A "Archive all completed" action on the Subagents list.
  3. CLI support, e.g. paseo ls --subagents <parent> plus paseo archive accepting subagent ids, or paseo archive --completed-subagents <parent>.

Related: #1809 (subagents as child rows), #2874 (finished subagent shown as running).

MeiMeiGO-Code avatar Oct 01 '26 10:10 MeiMeiGO-Code

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.

paseo-bot[bot] avatar Oct 01 '26 11:10 paseo-bot[bot]

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.

sm1ee avatar Oct 05 '26 13:10 sm1ee

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.

paseo-bot[bot] avatar Oct 16 '26 17:10 paseo-bot[bot]