-
Notifications
You must be signed in to change notification settings - Fork 3k
feat(cli): add native multi-agent coordination #8804
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
a814911
feat(core): add native multi-agent coordination
yiliang114 0dbb2f3
Merge remote-tracking branch 'origin/main' into cx/8718-native-coordi…
yiliang114 a6f51d5
feat(cli): add agent view pty workers
b38a42d
fix(cli): harden agent view pty workers
07cd280
fix(cli): harden agent view pty host teardown
842414b
fix(cli): fail fast on pty host auth rejection
5035f0d
test(cli): cover pty host remote exit polling
c5a1551
fix(cli): address agent view pty worker review nits
4808177
fix(cli): harden pty host socket fallback
885d38f
fix(cli): harden agent view pty workers
70f35ed
fix(cli): harden agent view pty workers
4f7c778
test(cli): cover pty host spawn contract
92553ec
fix(cli): guard agent view pty host socket takeover and races
qwen-code-ci-bot f0d4271
fix(cli): fit agent view pty logs under wire cap, strip host token af…
qwen-code-ci-bot a7ead9d
feat(cli): manage agent view session lifecycle
4ed6fb8
fix(cli): preserve agent view lifecycle state
54f26e5
fix(cli): harden agent view lifecycle persistence
95c48ca
fix(cli): harden agent view lifecycle
a60e6e7
fix(cli): harden agent view lifecycle recovery
4d29756
feat(cli): expose agent view commands
ac3f04b
fix(cli): wire agent view command safeguards
ede1ef1
fix(cli): resolve agent view command integration
yiliang114 995d67b
feat(cli): add agent view roster ui
038ee7e
feat(cli): add durable multi-agent coordination
yiliang114 9949ffd
fix(cli): harden multi-agent coordination
yiliang114 9a06509
fix(cli): complete native coordination flows
yiliang114 b9b4125
fix(cli): wait for agent view host cold starts
yiliang114 ddaba5c
fix(cli): allow coordination startup time
yiliang114 f17df3c
fix(cli): persist missing coordination results
yiliang114 b511e72
fix(cli): enforce exact Agent View answers
yiliang114 0b34b4e
refactor(cli): reuse existing agent team coordination
yiliang114 46066f1
Merge remote-tracking branch 'origin/main' into cx/8718-native-coordi…
yiliang114 9b166f7
docs(cli): clarify homogeneous coordination
yiliang114 8edf97f
Merge remote-tracking branch 'origin/main' into cx/8718-native-coordi…
yiliang114 fd84ca9
feat(core): complete native team coordination
yiliang114 3c79fcb
Merge remote-tracking branch 'origin/main' into cx/8718-native-coordi…
yiliang114 697f3c3
fix(agents): enforce teammate coordination boundaries
yiliang114 6c5704d
fix(agents): close teammate lifecycle gaps
yiliang114 cae7e4e
fix(agents): align empty teammate names with routing
yiliang114 f71e0f3
fix(core): close coordinator review gaps
yiliang114 b2614ae
fix(core): keep read-only teammates off writer tasks
yiliang114 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| # Multi-Agent Coordination | ||
|
|
||
| Qwen Code can coordinate several teammates with the experimental Agent Team runtime. Teammates receive separate tasks, share a task list, exchange messages, and appear in the existing Agent View tabs. `/coordinate` defaults investigation workers to an enforced read-only tool set and can place one writer in a leader-owned Git worktree. | ||
|
|
||
| ## Enable Agent Team | ||
|
|
||
| Set `experimental.agentTeam` to `true` in Qwen Code settings and restart, or start Qwen Code with `QWEN_CODE_ENABLE_AGENT_TEAM=1`. | ||
|
|
||
| ## Run a coordinated task | ||
|
|
||
| Use the bundled skill with a goal: | ||
|
|
||
| ```text | ||
| /coordinate investigate the authentication regression and propose the smallest fix | ||
| ``` | ||
|
|
||
| The leader creates a team, assigns up to three independent workstreams, and uses the existing team tools for messages and task state. Teammate conversations and approvals remain visible through the existing Agent View UI. Read-only teammates cannot execute shell commands or write files. If implementation is needed, the leader can create one Git worktree and pin one writer teammate to it; the leader remains the only merge authority for the current branch. | ||
|
|
||
| If Agent Team is disabled, `/coordinate` can still use ordinary foreground agents for read-only parallel investigation. That fallback is delegation, not a collaborating team: the workers report only to the leader. | ||
|
|
||
| ## Choosing the right multi-agent mode | ||
|
|
||
| | Mode | Use it for | Communication | Workspace behavior | | ||
| | ----------------------------- | --------------------------------------------------------------- | ---------------------------------- | ----------------------------------------------------------- | | ||
| | `/coordinate` with Agent Team | Different workstreams contributing to one result | Shared tasks and teammate messages | Enforced read-only workers; optional single worktree writer | | ||
| | Subagents | Small delegated tasks | Worker reports to parent | Depends on the selected agent | | ||
| | Arena | Several models competing on the same task | Agents do not collaborate | Isolated worktrees; one winner is selected | | ||
| | Herdr | Coordinating different CLI products or remote terminal sessions | External terminal-level control | Managed outside Qwen Code | | ||
|
|
||
| The current workflow deliberately reuses the in-process Agent Team runtime and Agent View UI. Teammates normally inherit the session model, although an agent definition can override it. Persistent independent PTY sessions, cross-vendor workers, and remote attach are separate product concerns and are not implemented by `/coordinate`. | ||
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.