feat(subagents): add idle ttl cleanup and summary tool

This commit is contained in:
William Valentin
2026-02-26 13:12:53 -08:00
parent 2171346116
commit b679261683
17 changed files with 226 additions and 15 deletions
+3
View File
@@ -804,12 +804,14 @@ Available tools:
- `subagent.list` — list active child sessions
- `subagent.cancel` — request cancellation for a running child turn
- `subagent.delete` — remove a child session and clear its history
- `subagent.summary` — inspect transcript summary for a child session
Example flow:
```json
{"name":"subagent.spawn","args":{"agent":"research","subagent_id":"plan-research","task":"Survey backup strategies for a 3-node homelab."}}
{"name":"subagent.send","args":{"subagent_id":"plan-research","message":"Now compare operational risk and recovery-time tradeoffs."}}
{"name":"subagent.summary","args":{"subagent_id":"plan-research","limit":20}}
{"name":"subagent.list","args":{}}
```
@@ -820,6 +822,7 @@ agents:
subagents:
enabled: true
max_active_sessions: 6
idle_ttl_ms: 3600000
```
## Running as Service