Repository navigation
Agent Teams: Per-teammate model selection #8324
ivbrajkovic
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi team 👋 — per
CONTRIBUTING.mdI'm bringing this here as an Ideas discussion, since external pull requests aren't accepted at the moment.Problem
In Agent Teams, every teammate inherits the Lead's model. There is no way to route individual teammates to different providers/models (a cheap reviewer next to a strong implementer, for example), even though the one-shot subagent tool already supports per-delegation selection through the
subagent-model-selectionsetting.Proposal
Let
spawn_teammateaccept optionalprovider,model, andreasoning_effortwith the same semantics as the subagent tool:subagent-model-selectionuser setting and the same per-session route allowlist, so one toggle governs both delegation surfaces and no new user-facing configuration is needed.list_subagent_modelsserves route discovery for Team members as well.list_agentsshows each member's actual model.The continuation seam already supports this:
startContinuableacceptsagentOptions, persists the resolved route in the child's own subagent descriptor, and restores it on cold resume — so no new durability machinery is required.One finding that may matter independently
While testing the shipped web composition (standard preset + Agent Teams bundle enabled), both selection surfaces registered
list_subagent_modelsinto the same agent scope, and new session creation failed withtool "list_subagent_models" is already registered in this scope. The web preset's nestedtool-subagentrow (withmodelSelectionSettings: true) coexists with the Agent Teams bundle, whose disables only cover top-level rows. The implementation fixes this with a reference-counted, per-scope shared registration, so a composition mounting both surfaces presents exactly one discovery definition.Status
A complete implementation is running and tested locally (based on
masterat639ed01539, i.e. 0.2.0-rc.2) and pushed to my fork:feat/agent-team-teammate-model-selection— four commits: shared model-selection machinery, service-level route pass-through, thespawn_teammatesurface, and docs/records.srcfiles; full repository typecheck, lint, and doc gates pass.team-targetssnapshot is updated; bilingual package READMEs, subsystem docs, and theteam/memberpersistence-type acknowledgement follow the repo's own policy files.deepseek-official/deepseek-flash, teammate spawned withzai/glm-5.3-flash+loweffort — the teammate runs and replies on the selected route, andlist_agentsreports both models.Offer
Happy to share the patch, walk through the design, or rebase onto whatever base the team prefers — and equally fine if you would rather implement it internally; the design notes and the registration-collision finding above are the main takeaways. Thanks for a great harness!
All reactions