Qwen CLI Agent

Run Alibaba Qwen Code CLI headlessly via qwen-exec.sh. Use when the user asks for qwen, Qwen Code, or qwen review / Agent-tool subagents. -r enables sandbox + read-only guard; -T asks for Agent tool / configured subagents. On 429/quota mark BLOCKED — do not retry-loop. Orchestrator owns git (--no-git).

ImL1s 163092d 5 files · 16.5 KB Updated

File contents

Qwen Code CLI (qwen) Executor

When to use

  • User wants qwen / Qwen Code as the coding agent
  • Need Qwen /agents, Agent tool parallel launches, or qwen review style workflows from a wrapper

Wrapper

./qwen-exec.sh -C /path/to/repo -t 1800s "Implement phase A. NO git."
./qwen-exec.sh -r -m qwen3.8-max-preview "Review this diff; do not edit."
./qwen-exec.sh -T -f /tmp/bundle.txt

Flags: -m (default qwen3.8-max-preview) · -t · -C · -o text|json|stream-json · -f · -r (sandbox + read-only guard) · -T subagent preamble · --no-git · -- passthrough.

No PTY needed. Text mode extracts final result via lib/parse_stream_json.py. -C is absolutized before use.

Native multi-agent

  • In-session: /agents create/manage; Agent tool for parallel subagents (.qwen/agents/)
  • Review pipeline: qwen review … (PR worktree, chunk plan, multi-agent prompts, submit)
  • -T asks the model to use Agent tool / configured subagents

Discipline

Exit code untrusted. Orchestrator owns git. On 429/quota: BLOCKED stub, no retry loop.

Models

Prefer ids from ~/.qwen/settings.json / qwen --help. Pin explicitly in automation.

ImL1s/agent-cli-skills/tree/main/skills/qwen-cli-agent commit 163092d185

Frequently asked questions

npx skillmds@latest add iml1s/qwen-cli-agent