multica/packages
Jiang Bohan d7a02182ab feat(subagent): add announce:"silent" mode for deferred coalesced announcements
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>
2026-02-11 17:40:00 +08:00
..
core feat(subagent): add announce:"silent" mode for deferred coalesced announcements 2026-02-11 17:40:00 +08:00
hooks refactor: restructure to monorepo architecture 2026-02-10 18:00:23 +08:00
sdk refactor: restructure to monorepo architecture 2026-02-10 18:00:23 +08:00
store refactor: restructure to monorepo architecture 2026-02-10 18:00:23 +08:00
types refactor: restructure to monorepo architecture 2026-02-10 18:00:23 +08:00
ui chore(ui): switch primary color to shadcn default 2026-02-10 22:16:57 +08:00
utils refactor: restructure to monorepo architecture 2026-02-10 18:00:23 +08:00