feat: support local team composition from external files - #3869
Draft
Sayt-0 wants to merge 4 commits into
Draft
Conversation
Collaborator
|
Where does the idea comes from ? I am not against but while its adding some value it will add a lot of complexity |
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.
Summary
sub_agentsimports and the repeatable CLI form--team "Team name=path"Usage
docker agent run ./examples/local-team/primary-cli.yaml \ --team "Research team=./secondary-team.yaml"The first positional argument remains the primary manifest, and subsequent positional arguments remain user messages. Additional teams use repeated
--teamflags.TUI preview
Idle state:
While a private team member is active:
Only public leads receive shortcuts and click targets. Private members are visible for progress feedback but remain unavailable as direct switch targets.
Design notes
Primary teamis the default title for the primary manifest.=is presentation-only. A distinct routing ID is generated internally, so imported leads retain their manifest-local display name.transfer_taskis blocking: control returns to the parent lead only after the delegated lead finishes.permissions,budget,budgets, orruntime.safetyare rejected instead of silently dropping policy. Those policies belong in the primary manifest.--teamis currently local-only and is incompatible with--remoteand--sandbox.Validation
task buildgolangci-lint rungo mod tidy --diffThe real smoke test used
DOCKER_AGENT_MODELS_GATEWAY=https://ai-backend-service-stage.docker.com/proxywith direct provider API keys removed. It completedroot -> research-team -> researcher -> research-team -> rootwith no runtime error events.Known CI environment note
The full local suite is affected by existing SSRF tests when the host proxy replaces
http.DefaultTransport; focused changed packages, build, lint, race checks, example loading, and the real gateway flow pass.Issue mapping
No linked issue was identified for this change.