Skip to content

Documentation / Qwen Code

On this page

Qwen Code

Natamux starts Qwen Code with a hook file in the task’s worktree.

Install Qwen Code and sign in. Follow the Qwen Code project page. Check that qwen runs in your terminal.

Program qwen
Command line qwen --approval-mode yolo [extra args] -i '<prompt>'
Prompt -i runs the prompt and stays open. Without it, Qwen runs the prompt once and ends
Permission flag --approval-mode yolo, left out with "agents": { "permissionMode": "ask" } in .natamux.json
Model --model '<name>' from the Model field of Start a task
Resume --resume <id>, or --continue for the newest session of the folder
Change the program NATAMUX_QWEN_COMMAND
Add arguments NATAMUX_QWEN_ARGS

Start the agent from the dashboard, or:

Terminal window
natamux agent start T-42 --agent qwen

Natamux writes .qwen/settings.json in the task’s worktree each time a terminal opens, and adds it to .git/info/exclude. Each hook runs natamux hook qwen.

If a file of your own with that name exists, Natamux leaves it alone, and the dashboard follows the terminal only.

Hook event Meaning Task state
UserPromptSubmit A prompt was sent running
PreToolUse, PostToolUse, PostToolUseFailure The agent works no change
PermissionRequest, Notification (permission_prompt) Qwen asks for permission needs input
Stop The turn ended idle
StopFailure The turn failed failed
Where Folder Shown as
Project .qwen/skills/<name>/SKILL.md Project
You ~/.qwen/skills or ~/.agents/skills Only on this machine

Source: the skills page in the Qwen Code docs, checked 2026-11-17.

For the rules in general, see Skills in a prompt.

Not supported. The dashboard shows no token numbers for Qwen Code.

Not run against a real Qwen Code session. The hooks follow its docs and are tested with made-up input.

  • Project hooks need the approval above.
  • No known sign-in screen line, so a task that waits for a login is not marked “sign in”.
  • If qwen is not found, the task fails in the first 30 seconds with a message that names NATAMUX_QWEN_COMMAND.