Kadima-code/dsh-subagent-fold ↗★ 1
@dsh-external/dsh-subagent-fold
子代理列表折叠:在原生「子代理」下拉里按使用批次分为 历史/今日/上次/本次 四组,本次始终展开,其余可折叠。 适合子代理较多,需要按时间分组折叠和便捷删除子代理的用户。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Kadima-code/dsh-subagent-foldUsage
- Open the built-in Subagent button (native hover-open is untouched).
- The bottom shows a "Current N" label plus the current batch (always expanded); above it are Previous N / Today N / History N.
- Click any group header to expand/collapse; headers show only "name + count".
- Also works inside a subagent session: its header (parent/directory dropdown) is grouped the same way.
- Delete a subagent: the trailing ⋯ on each row opens "Delete subagent" (confirmed twice; a running one is stopped first). The row disappears and the "N subagents" count decreases accordingly.
| Group | Meaning | Default |
|---|---|---|
| Current | the most recent batch of subagents (parallel spawns = one batch) | always expanded |
| Previous | the batch before that | collapsed |
| Today | other batches from today | collapsed |
| History | anything before today | collapsed |
A "batch" is clustered by creation time; a gap of ≤ 120 s counts as the same batch.