Commit Graph

6 Commits

Author SHA1 Message Date
5c5cdb3aec refactor(subagent): split responsibilities and isolate child prompt
- Extract validateAgent, toToolResult, runAgentWithRetries so index.ts
  is wiring only; orchestration, validation, and result shaping each own
  their concern.
- Separate runner internals: createRunState, handleEvent (pure event
  reducer), spawnPi (process lifecycle), runOnce (single attempt).
- Track attempt/maxAttempts on SubagentStatus; surface "try x/y" in the
  UI without overwriting the user-facing task with the retry preamble.
- Replace pi's default system prompt (--system-prompt) instead of
  appending, so the subagent .md body is authoritative.
- Document prompt-replacement and retry/cache semantics in AGENTS.md.
2026-05-12 15:02:49 -04:00
4f80b590da refactor(subagent): split extension into modules 2026-05-12 14:15:11 -04:00
4d5584aa8c refactor(subagent): centralize finalize status values 2026-05-12 14:06:12 -04:00
d5f432f4cd feat(ui): render subagent results as markdown 2026-05-12 13:29:06 -04:00
9488aab237 feat(subagent): add sticky child finalization 2026-05-12 12:48:26 -04:00
9956b65e17 initial commit 2026-05-11 17:20:02 -04:00