Skip to content

docs(samples): add a subagents sample - #186

Open
EugeneTheDev wants to merge 1 commit into
eugenethedev/subagents-stack/10-client-testsfrom
eugenethedev/subagents-stack/11-sample
Open

EugeneTheDev wants to merge 1 commit into
eugenethedev/subagents-stack/10-client-testsfrom
eugenethedev/subagents-stack/11-sample

Conversation

@EugeneTheDev

@EugeneTheDev EugeneTheDev commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

Part 11 of 11 of the stacked split of #158 (v1 subagents).

Contents

  • The sample: a scripted v1 agent that delegates to subagents, and relays a native agent's workers as nested
    subagents. The client shows, cancels and closes them, then loads the session again.
  • Its runSubagents task with logback-subagents.xml, its README, and a row in samples/README.md. The README
    also gets the "unstable APIs" sentence and step 5 of "Adding a sample".
  • The testing block in the sample module's build.gradle.kts, and JVM tests that run the sample end to end, so
    check catches an SDK change that breaks it.
  • AGENTS.md: how samples are laid out and tested. "Runnable examples" now lists authentication and subagents.

Caveats

  • None. This layer's tree equals d41c266 outside the excluded paths.

Stack

  1. chore: add the multi-agent orchestration tooling #176 — chore: add the multi-agent orchestration tooling
  2. build: move buildSrc to build-logic and check that internal packages hold no public API #177 — build: move buildSrc to build-logic and check that internal packages hold no public API
  3. docs(samples): give each sample its own package, run task and README #178 — docs(samples): give each sample its own package, run task and README
  4. refactor: move MaybeUndefined to the model package and runtime internals to internal packages #179 — refactor: move MaybeUndefined to the model package and runtime internals to internal packages
  5. feat(protocol)!: order handler starts by arrival and add response hooks #180 — feat(protocol)!: order handler starts by arrival and add response hooks
  6. feat(model): add the v1 subagent models and promote session/close to stable #181 — feat(model): add the v1 subagent models and promote session/close to stable
  7. fix(client): make v2 close and delete idempotent and add PendingPermissions #182 — fix(client): make v2 close and delete idempotent and add PendingPermissions
  8. feat!: add v1 subagents to the agent runtime and deliver session events through ClientSessionOperations.notify #183 — feat!: add v1 subagents to the agent runtime and deliver session events through ClientSessionOperations.notify
  9. feat(client)!: add v1 subagent sessions and the Opened marker to the client runtime #184 — feat(client)!: add v1 subagent sessions and the Opened marker to the client runtime
  10. test(client): cover v1 client openings and subagents over the wire and across transports #185 — test(client): cover v1 client openings and subagents over the wire and across transports
  11. docs(samples): add a subagents sample #186 — docs(samples): add a subagents sample ← this PR

Next steps

- A scripted v1 agent that delegates to subagents and relays a native
  agent's workers as nested subagents, and a client that shows, cancels and
  closes them, then loads the session again.
- Its `runSubagents` task, logback configuration and README, and a row in
  `samples/README.md`.
- JVM tests that run the sample end to end, so `check` catches an SDK change
  that breaks it.
- AGENTS.md: how samples are laid out and tested.
@EugeneTheDev
EugeneTheDev force-pushed the eugenethedev/subagents-stack/11-sample branch from cb8bea3 to 310ae8c Compare December 4, 2026 16:29
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