Summary
Add support for Qwen Code as an ACP-compatible agent backend.
Motivation
Qwen Code is a powerful open-source coding CLI optimized for Qwen3-Coder models. It already has native ACP support via the --experimental-acp flag, making it an excellent candidate for integration with agent-broker.
Benefits:
- Open-source alternative to Claude Code / Codex
- Cost-effective for teams already using Qwen models
- Multi-agent ecosystem - expands broker's agent options
- Already ACP-compatible - minimal integration effort required
Technical Feasibility
Qwen Code ACP Support
Qwen Code supports the Agent Communication Protocol (ACP):
- Native support via
qwen --experimental-acp flag
- Follows JSON-RPC 2.0 over stdio (same as Claude Code, Codex, Gemini)
- Community-verified: successfully integrated with Zed editor and Neovim
Related discussions:
Integration Approach
Since agent-broker is agent-agnostic (only requires ACP compatibility), integration is straightforward:
Option 1: Native Qwen Code (recommended)
[agent]
command = "qwen"
args = ["--experimental-acp", "--trust-all-tools"]
working_dir = "/home/agent"
env = { QWEN_API_KEY = "${QWEN_API_KEY}" }
Option 2: Using acp-qwen-code bridge
[agent]
command = "acp-qwen-code"
args = []
working_dir = "/home/agent"
env = {
ACP_PATH_TO_QWEN_CODE_EXECUTABLE = "qwen",
ACP_PERMISSION_MODE = "bypassPermissions"
}
Optional Enhancements
- Dockerfile.qwen - Similar to existing Dockerfile.claude, Dockerfile.codex
- Helm preset - Add
qwen preset to charts for easy deployment
- Documentation - Add Qwen to the "Pluggable Agent Backends" table in README
Proposed Changes
- Add configuration example to
config.toml.example
- (Optional) Add
Dockerfile.qwen
- (Optional) Add Helm preset for Qwen
- Update README.md to list Qwen as supported backend
Testing Plan
Additional Context
I'm happy to submit a PR for this if there's interest from the maintainers. The integration should be minimal since Qwen already speaks ACP natively. 🚀
Summary
Add support for Qwen Code as an ACP-compatible agent backend.
Motivation
Qwen Code is a powerful open-source coding CLI optimized for Qwen3-Coder models. It already has native ACP support via the
--experimental-acpflag, making it an excellent candidate for integration with agent-broker.Benefits:
Technical Feasibility
Qwen Code ACP Support
Qwen Code supports the Agent Communication Protocol (ACP):
qwen --experimental-acpflagRelated discussions:
Integration Approach
Since agent-broker is agent-agnostic (only requires ACP compatibility), integration is straightforward:
Option 1: Native Qwen Code (recommended)
Option 2: Using acp-qwen-code bridge
Optional Enhancements
qwenpreset to charts for easy deploymentProposed Changes
config.toml.exampleDockerfile.qwenTesting Plan
qwen --experimental-acpworks with broker's ACP protocol handlingAdditional Context
I'm happy to submit a PR for this if there's interest from the maintainers. The integration should be minimal since Qwen already speaks ACP natively. 🚀