multica/src/agent/subagent
yushen a3acd732e0 fix(subagent): persist LLM summary after internal announce to parent context
After child subagents complete, the coalesced announcement runs as an
internal turn which rolls back all messages from the parent's in-memory
context. This causes the parent LLM to lose findings in subsequent turns.

Add persistResponse option to writeInternal that re-injects the LLM's
summary as a non-internal assistant message after the internal run
completes. The internal prompt stays hidden while the summary persists
in both memory and session JSONL for future turns.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 19:38:18 +08:00
..
announce-findings.test.ts fix(subagent): capture latest non-empty findings from child runs 2026-02-06 19:10:44 +08:00
announce.test.ts fix(subagent): require coalesced announce to include all findings 2026-02-06 19:12:51 +08:00
announce.ts fix(subagent): persist LLM summary after internal announce to parent context 2026-02-06 19:38:18 +08:00
index.ts feat(subagent): coalesce announcements into single parent notification 2026-02-06 17:24:39 +08:00
registry-recovery.test.ts fix(subagent): recover delete cleanup after crash 2026-02-06 17:31:21 +08:00
registry-store.test.ts test(subagent): add coalescing announcement tests 2026-02-06 17:24:44 +08:00
registry-store.ts feat(agent): add subagent orchestration core 2026-02-03 16:48:49 +08:00
registry.test.ts test(subagent): add coalescing announcement tests 2026-02-06 17:24:44 +08:00
registry.ts fix(subagent): recover delete cleanup after crash 2026-02-06 17:31:21 +08:00
types.ts feat(subagent): coalesce announcements into single parent notification 2026-02-06 17:24:39 +08:00