| name | qwen |
| description | Delegate tasks or get a second opinion from Qwen Code CLI. Infers mode (delegation vs validation) from prompt context. Detects available models at runtime via the CLI. Use when cross-validating code, plans, or architecture with Qwen Code, or offloading work to it. Do not use when already running inside Qwen Code CLI or for tasks that do not benefit from cross-model input. |
Cross-Agent Task Runner — Qwen Code CLI
Procedures
Step 1: Self-Call Detection
- Check for
QWEN_SESSION or QWEN_CODE environment variable, or qwen in process ancestry.
- If detected, stop and inform the user:
"Cannot invoke Qwen from within Qwen. Use a different target CLI."
Step 2: Execute Shared Procedure
- Read
references/shared-procedure.md for the core workflow
(mode inference, context gathering, prompt construction, result presentation).
- Read
references/cli-qwen.md for Qwen-specific flags, model selection
heuristics, and version compatibility matrix.
- Follow the shared procedure using the Qwen-specific details.