Skip to content

Add subagent foundation and runtime events#29

Draft
jbreite wants to merge 20 commits into
mainfrom
codex/subagent-foundation-impl
Draft

Add subagent foundation and runtime events#29
jbreite wants to merge 20 commits into
mainfrom
codex/subagent-foundation-impl

Conversation

@jbreite

@jbreite jbreite commented Jun 16, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds the subagent foundation: profiles, registry/store/controller, AI SDK runner, lifecycle events, cost/depth/concurrency guardrails, control tools, and control-panel state.
  • Moves the default agent tool surface toward Codemode-first subagents, with UpdatePlan replacing legacy Task/TodoWrite surfaces.
  • Adds host-facing runtime primitives for Codex-style UIs: runtime event sinks, plan state, approvals, snapshots, and file-change events for Bash, Write, Edit, and Patch.
  • Updates docs, examples, and API/reference pages to explain subagents, runtime events, AI SDK UI data parts, and the breaking migration path.

Breaking changes

  • Removes the legacy Task and TodoWrite tools in favor of subagent control tools and UpdatePlan.
  • Changes the default createAgentTools direction to Codemode/subagent-oriented runtime tools rather than maintaining legacy compatibility switches.

Validation

  • bun run typecheck
  • bun run check
  • bun run check:ci
  • bun run check:agents
  • bun run test tests/context/runtime-events.test.ts
  • Relevant suites for context/runtime/tools/subagents were run during implementation, including the broader runtime/tool suite that passed 277 tests.

Notes

  • Linear follow-up for createAgentLoop: JZB-174

@vercel

vercel Bot commented Jun 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
bashkit-docs Ready Ready Preview, Comment Jun 16, 2026 12:25pm

@jbreite
jbreite marked this pull request as draft June 16, 2026 12:25
@jbreite jbreite self-assigned this Jun 16, 2026
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