name: qwen-code-skill description: Reference guide for integrating and operating Qwen Code CLI in Ode, focused on headless mode, stream-json events, and session resume behavior.
What I do
- Summarize Qwen Code headless invocation for Ode agent integrations.
- Document non-interactive command patterns for
stream-jsonoutput. - Explain session continuation (
--continue,--resume) and project-scoped chat state. - Highlight automation-safe defaults for CI scripts and long-running workflows.
When to use me
Use this when adding or debugging Ode's qwen provider, especially command construction, parsing streamed JSON events, and live status compatibility.
Recommended invocation pattern
- Base command:
qwen --output-format stream-json --include-partial-messages --yolo -p <prompt> - Resume existing context: append
--resume <sessionId>(or--continuefor latest project session) - Text-only one-shot output: omit
--output-formatand use default text mode
Integration notes for Ode
- Qwen headless supports
text,json, andstream-json; usestream-jsonfor live status updates. --include-partial-messagesemits incremental events (for examplecontent_block_delta) that map well to status rendering.- Session history is project-scoped under
~/.qwen/projects/<sanitized-cwd>/chats; restoring a session recovers history and tool context. - Keep channel model selection disabled for Qwen in Ode UI; provider logic does not require per-channel model overrides.