Skip to content

feat(app): orchestrator layer 2 — AgentRegistry uses runSubagent#24

Merged
codex-mohan merged 1 commit into
mainfrom
feat/app-orchestrator-layer2
Jun 23, 2026
Merged

feat(app): orchestrator layer 2 — AgentRegistry uses runSubagent#24
codex-mohan merged 1 commit into
mainfrom
feat/app-orchestrator-layer2

Conversation

@codex-mohan

Copy link
Copy Markdown
Owner

Summary

  • AgentRegistry now delegates to SDK's
    unSubagent instead of creating inline agents
  • Added DelegateOptions type for model override, budget, tools, events, parent session
  • executeParallel uses the same delegation path
  • Child sessions created/persisted via SessionManager when available
  • onEvent callback wires child events to separate stream (not parent stream)

Changes

File What
packages/app/src/types.ts DelegateOptions, updated DelegationResult/Orchestrator/TaskConfig
packages/app/src/orchestrator.ts AgentRegistry rewritten to use
unSubagent
packages/app/src/index.ts Export DelegateOptions
packages/app/src/tests/app.test.ts 7 new delegation tests (all pass)

Test results

  • Agent: 98/98 pass
  • App: 89/89 pass (41 + 48)
  • Lint, build clean

Layer

This is layer 2 of the multi-agent collaboration feature:

- AgentRegistry.delegate() now delegates to SDK's runSubagent instead of
  inline agent creation
- Added DelegateOptions type for model override, budget, tools, events
- executeParallel uses the same delegation path
- Child sessions created and persisted via SessionManager when available
- onEvent callback wires child events to separate stream
- Full test coverage: delegation, child sessions, model resolution, tools,
  events, error handling (7 new tests, all pass)
@codex-mohan codex-mohan merged commit f57386e into main Jun 23, 2026
1 check passed
Sign up for free to 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.

1 participant