Add Qwen CLI driver - #114
Open
simone-stacks wants to merge 20 commits into
Open
Conversation
simone-stacks
force-pushed
the
feat/qwen-cli-driver
branch
2 times, most recently
from
August 18, 2026 16:31
983e53d to
9235c22
Compare
simone-stacks
force-pushed
the
feat/qwen-cli-driver
branch
from
August 18, 2026 21:42
9235c22 to
24b3ae8
Compare
simone-stacks
marked this pull request as draft
August 24, 2026 10:48
simone-stacks
marked this pull request as ready for review
September 1, 2026 16:14
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.
Builds on top of #113 (kimi driver); the diff shrinks to the qwen commits once that merges.
Summary
qwen-clidriver so swarms can run Qwen Code CLI alongside the existing drivers.qwen_cli_versionpin.wire.jsonl, so the swarmfilepricingmap produces real costs for kimi (small fix riding on this branch).Changes
lib/drivers/qwen-cli.sh: new driver implementing the swarm interface.Dockerfile+launch.sh: install Qwen Code CLI and exposeqwen_cli_version; forwardQWEN_CONTEXT_WINDOWinto agent containers.dashboard.sh,USAGE.md,README.md,CHANGELOG.md: surface the new driver.lib/drivers/kimi-cli.sh: read token usage from the sessionwire.jsonl(stream-json carries no usage object).tests/: driver/config/dashboard/harness/launch coverage and qwen fixture swarmfiles.Self-review checklist
shellcheck -s bashpasses on all modified.shfiles.Test plan
shellcheck -s bash lib/drivers/qwen-cli.sh lib/drivers/kimi-cli.sh dashboard.sh launch.sh tests/test_config.sh tests/test_dashboard.sh tests/test_drivers.sh tests/test_harness.sh tests/test_launch.shtests/test_drivers.sh(557 passed)tests/test_config.sh(375 passed)./tests/test.sh --unit(note:test_harvest.shhas pre-existing failures on this machine — signing env, green in CI)qwen3.8-max): real token counts in the dashboard, quota backoff triggered instead of agent death, one triaged finding produced.