Skip to content

Add foreground read-only subagents - #51

Merged
Astro-Han merged 13 commits into
mainfrom
codex/i49-subagent
Jun 18, 2026
Merged

Add foreground read-only subagents#51
Astro-Han merged 13 commits into
mainfrom
codex/i49-subagent

Conversation

@Astro-Han

Copy link
Copy Markdown
Contributor

Summary

  • Add first-class child AgentRun lineage with parentRunId / agentName, keeping child runs out of the parent transcript and model history by default.
  • Add foreground agent_spawn, agent_list, and bounded agent_output over the existing runtime/run/event/artifact spine.
  • Run child agents with a separate explore-mode backend, local read-only non-prompting tools, parent abort propagation, recovery handling, and desktop subagent result rendering.
  • Wire the same read-only subagent surface into headless isolated runs.

Closes#49

Review notes

  • Fresh-eye final review: ship; no P0/P1/P2/P3 findings.
  • Claude final review: no P0/P1 blockers; remaining P3 notes addressed where zero-cost, with typecheck confirming the narrowing concern is not a build break.

Verification

  • git diff --check
  • npm run typecheck
  • npm run -w @maka/runtime test -- packages/runtime/src/__tests__/ai-sdk-backend.test.ts packages/runtime/src/__tests__/session-manager.test.ts packages/runtime/src/__tests__/subagent-tools.test.ts
  • npm run -w @maka/headless test -- packages/headless/src/__tests__/tools.test.ts
  • npm run -w @maka/desktop build:main && node --test apps/desktop/dist/main/__tests__/ipc-surface-contract.test.js apps/desktop/dist/main/__tests__/subagent-ui-contract.test.js
  • npm run build
  • npm run check:stale

@Astro-Han
Astro-Han merged commit 1e25c32 into mainJun 18, 2026
@Astro-Han
Astro-Han deleted the codex/i49-subagent branch July 14, 2026 05:05
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Subagent: reuse runtime spine for agent-as-tool delegation

1 participant

@Astro-Han