Repository navigation
feat(model): add the v1 subagent models and promote session/close to stable - #181
Merged
Merged
Conversation
This was referenced Dec 2, 2026
Merged
EugeneTheDev
force-pushed
the
eugenethedev/subagents-stack/06-models
branch
4 times, most recently
from
December 4, 2026 11:32
98a3cf2 to
7a68f90
Compare
slapoguzov
approved these changes
Dec 4, 2026
EugeneTheDev
force-pushed
the
eugenethedev/subagents-stack/06-models
branch
from
December 4, 2026 15:33
7a68f90 to
914b8f4
Compare
Base automatically changed from
eugenethedev/subagents-stack/05-protocol
to
master
December 4, 2026 16:28
…stable - Add the subagent models: `SubagentCapabilities` in `ClientCapabilities`, `SubagentState`, the `subagent_update`, `session_message` and `session_message_chunk` session updates, and `ToolCallContent.Session`, with their serializers and the shared `JsonObjectSerializer` helpers. - `MaybeUndefined` is no longer `@UnstableApi`. - `session/close`: its capability, request, response and method are no longer `@UnstableApi`. - v2 conversions reject the subagent fields and updates, which v2 does not model yet. - Serialization and conversion tests for the new models, and the `acp-model` API dump. - Samples: render the new session updates in `support/util.kt`. - AGENTS.md: where serializers live.
EugeneTheDev
force-pushed
the
eugenethedev/subagents-stack/06-models
branch
from
December 4, 2026 16:28
914b8f4 to
2422523
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part 6 of 11 of the stacked split of #158 (v1 subagents).
Contents
ClientCapabilities.subagents, with a lenient serializer;SubagentState;subagent_update,session_messageandsession_message_chunk;ToolCallContent.Session.SubagentSessionUpdateSerializers.kt. Shared helpers are inJsonObjectSerializer.kt.MaybeUndefinedis no longer@UnstableApi. Thesession/closecapability, request, response and method arestable.
null, and unknown values.support/util.ktrenders the new updates, because itswhenover updates is exhaustive.Caveats
ClientCapabilitiesgets thesubagentsparameter (after_meta, defaultnull): source compatible, but compiled callers must be recompiled.SessionUpdateandToolCallContentget new variants; an exhaustivewhenover either needs new branches or anelse.checkpasses.Stack
chore: add the multi-agent orchestration toolingbuild: move buildSrc to build-logic and check that internal packages hold no public APIdocs(samples): give each sample its own package, run task and READMErefactor: move MaybeUndefined to the model package and runtime internals to internal packagesfeat(protocol)!: order handler starts by arrival and add response hooksfeat(model): add the v1 subagent models and promote session/close to stable← this PRfix(client): make v2 close and delete idempotent and add PendingPermissionsfeat!: add v1 subagents to the agent runtime and deliver session events through ClientSessionOperations.notifyfeat(client)!: add v1 subagent sessions and the Opened marker to the client runtimetest(client): cover v1 client openings and subagents over the wire and across transportsdocs(samples): add a subagents sampleNext steps
master.master(git rebase --onto master <merged> <next>) and force-push it.