feat(subagents): complete queue, budgets, audit, and inspection controls

This commit is contained in:
William Valentin
2026-02-26 13:28:10 -08:00
parent b679261683
commit 3cc9e16ef5
23 changed files with 741 additions and 51 deletions
+14
View File
@@ -618,6 +618,7 @@ Notes:
| `/deny [id] [reason]` | Deny latest (or specific) pending gate |
| `/skill <list|search|install>` | In-chat skill discovery/install (`list`, `search <term>`, `install <registry-id>`) |
| `/runtime <status\|activate pi\|deactivate pi\|use config>` | Show or control global runtime backend mode (`/backend ...` alias also supported) |
| `/subagents [list\|summary <id> [limit]\|cancel <id>\|delete <id>]` | Inspect and control spawned subagent sessions |
## Web UI Dashboard
@@ -661,6 +662,7 @@ pnpm tui:fs
| `/tools` | Show authoritative runtime tool list for this session |
| `/research <task>` | Delegate a task to `agent_configs.research` |
| `/council <task>` | Run dual D/P councils pipeline with bridge+meta merge (brief in TUI, full artifacts saved to disk) |
| `/subagents [list\|summary <id> [limit]\|cancel <id>\|delete <id>]` | Inspect and control spawned subagent sessions |
| `/compact` | Compact conversation context |
| `/usage` | Show token usage and cost |
| `/context` | Show estimated context-window usage |
@@ -806,6 +808,13 @@ Available tools:
- `subagent.delete` — remove a child session and clear its history
- `subagent.summary` — inspect transcript summary for a child session
Session controls:
- Queue modes: `followup` (FIFO) or `interrupt` (latest-wins cancellation + supersede).
- Budget guardrails: max turns, max total tokens, and per-turn timeout.
- Tool profile override per subagent spawn (`minimal|messaging|coding|full`).
- Runtime inspection command: `/subagents [list|summary <id> [limit]|cancel <id>|delete <id>]`.
Example flow:
```json
@@ -823,6 +832,11 @@ agents:
enabled: true
max_active_sessions: 6
idle_ttl_ms: 3600000
queue_mode: followup
default_tool_profile: minimal
max_turns: 40
max_total_tokens: 200000
turn_timeout_ms: 120000
```
## Running as Service