Run Qwen Code from a Kanban board
Qwen Code forked Gemini CLI but took Claude Code's hook names, so Kangentic wires thirteen hooks, follows /clear and /branch, and moves an approved plan on.
Kangentic is our product. Qwen Code is not. Kangentic runs the copy you install, on your own login or API key, and this page says what Kangentic does with it.
Qwen Code is a soft fork of Gemini CLI. It replaced Gemini’s hook system with Claude Code’s event names and skips any hook key it does not know, which is why Kangentic writes Claude’s names into its settings, not Gemini’s.
| In Kangentic | Qwen Code |
|---|---|
| Status read from | Hooks |
| Turn-end automations run | Yes |
| Resumes its conversation | Yes |
| Hands its conversation to the next agent | Yes |
| Permission modes | 5 |
| An approved plan moves the card on | Yes |
| Kangentic approves its plans | No |
| Accounts | No |
| Kangentic's MCP server | Yes |
| Runs from a WSL distro | Yes |
Thirteen hooks
Kangentic registers PreToolUse, PostToolUse, PostToolUseFailure, UserPromptSubmit, Stop, StopFailure, PermissionRequest, SubagentStart, SubagentStop, Notification, PreCompact, SessionStart and SessionEnd in the folder’s .qwen/settings.json. The file is reference-counted across sessions in one project. Before v0.47.0 Kangentic wrote Gemini’s names there, so only the session and notification hooks ever fired.
A background subagent can keep working after the main agent’s Stop, so that Stop ends the turn only once the last subagent stops. A background run_shell_command holds the card until task_stop ends it or it exits. If the hooks do not fire, Kangentic falls back to Gemini’s closed-box border and a 3-second silence timer.
Sessions that follow /clear
Kangentic picks each session’s UUID, starts Qwen with --session-id, and resumes with --resume <uuid>. Since v0.54.0 a /clear, a /branch, or a /resume typed in the TUI moves the session to the new conversation through the SessionStart hook, so a pause and resume reopens the one on screen.
Qwen moved its chats out of Gemini’s layout. Each one is a file in the working folder’s chats/ under ~/.qwen/projects/, unless QWEN_RUNTIME_DIR or advanced.runtimeOutputDir moves them, and Kangentic follows QWEN_HOME too. A handoff out of Qwen points the next agent at that file. Every assistant event carries the context window’s size, so the context bar shows a percentage.
Since v0.54.0 Kangentic checks Qwen’s session folder before a resume, and starts a new conversation from a recap of the task when the old one is gone.
Permission modes
New tasks start in Auto Edit.
| Mode | Shown as |
|---|---|
plan |
Plan (Read-Only Research) |
default |
Default (Confirm Actions) |
acceptEdits |
Auto Edit (Auto-Approve Edits) |
auto |
Auto (Classifier Approves Safe Actions) |
bypassPermissions |
YOLO (Auto-Approve All) |
Auto is Qwen’s classifier mode on Qwen 0.16 and later, and runs as Auto Edit on an older Qwen.
Plans
exit_plan_mode fires PostToolUse for a plan Qwen did not act on too. So Kangentic counts a plan exit only when the result starts with “User approved”, and only then does a plan column’s task move to the next column. A rejection in Qwen’s dialog never runs the tool. Kangentic cannot approve Qwen’s plans for you, because Qwen ignores a hook’s answer to a prompt that needs the user.
MCP and trust
On Qwen 0.16 and later, Kangentic’s MCP server arrives through --mcp-config, pointing at a file in the session’s own folder, which keeps Qwen’s approval prompt for project MCP servers from stopping every session. An older Qwen has no such flag, and gets an mcpServers entry in the folder’s .qwen/settings.json instead.
Kangentic pre-populates trust for each worktree, so a worktree skips the folder-trust prompt Qwen inherited from Gemini, and removes the entry when the worktree goes. Account support for Qwen Code is written and switched off until it can be run on a second real account (Agent accounts).
Try Kangentic with the Qwen Code you have
Free and open source, on Windows, macOS and Linux.