Add an `announce` parameter to sessions_spawn that controls when findings are delivered to the parent agent: - "immediate" (default): announce per-completion (existing behavior) - "silent": defer until ALL silent runs from the same requester complete, then deliver ONE coalesced announcement with all findings This enables workflows like "spawn 10 parallel subagents to collect data, then summarize everything at once" without intermediate results. Changes: - types.ts: add `announce` field to SubagentRunRecord & RegisterSubagentRunParams - sessions-spawn.ts: add `announce` parameter to tool schema - registry.ts: split checkAndAnnounce into immediate/silent groups, extract announceGroup helper, use count-match guard for silent readiness - sections.ts: add announce mode guidance to system prompt - registry.test.ts: add silent mode tests (field storage, group isolation) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| core | ||
| hooks | ||
| sdk | ||
| store | ||
| types | ||
| ui | ||
| utils | ||