rulesync
rulesync copied to clipboard
Follow up Qwen Code upstream updates: mcp, commands, subagents, skills, and hooks support
Summary
Qwen Code is a Gemini CLI fork that natively supports MCP, commands, subagents, skills, and hooks, but rulesync's qwencode target supports only rules, ignore, and permissions. Five feature surfaces are entirely unsupported.
Recent Releases
- Latest upstream v0.18.1 (2026-06): https://github.com/QwenLM/qwen-code
- Docs: https://qwenlm.github.io/qwen-code-docs/en/ (feature docs under
docs/users/features)
Gaps
- mcp —
unsupported..qwen/settings.jsonmcpServers(stdio/SSE/HTTP, per-serverincludeTools/excludeTools, globalmcp.allowed/mcp.excluded). Constants already defineQWENCODE_SETTINGS_FILE_NAME = "settings.json"but noqwencode-mcp.ts. Source: https://qwenlm.github.io/qwen-code-docs/en/users/features/mcp/ - commands —
unsupported..qwen/commands/*.mdMarkdown with YAMLdescription+{{args}}/!{...}/@{...}injection and subdir namespacing (/git:commit); TOML is deprecated. Note this differs from Gemini CLI (still TOML) — a qwencode adapter should target Markdown. Source: https://github.com/QwenLM/qwen-code/blob/main/docs/users/features/commands.md - subagents —
unsupported..qwen/agents/*.mdMarkdown + YAML frontmatter (name,description,model,approvalMode,tools,disallowedTools,maxTurns,color, per-agentmcpServers/hooks); project + user (~/.qwen/agents/) scopes. Source: https://github.com/QwenLM/qwen-code/blob/main/docs/users/features/sub-agents.md - skills —
unsupported..qwen/skills/<name>/SKILL.mdMarkdown + frontmatter (name,description, optionalpriority,paths,user-invocable,disable-model-invocation); project + user scopes; supporting-file copy. Source: https://github.com/QwenLM/qwen-code/blob/main/docs/users/features/skills.md - hooks —
unsupported..qwen/settings.jsonhookswith event groups (PreToolUse,PostToolUse,UserPromptSubmit,SessionStart/End,Stop,SubagentStart/Stop, etc.), regex matchers,command/http/function/promptexecutor types. Qwen's event set/executors differ from Gemini's — validate event names rather than reusingGEMINICLI_HOOK_EVENTS. Source: https://github.com/QwenLM/qwen-code/blob/main/docs/users/features/hooks.md
Proposed Follow-up
- Add
qwencode-mcp.ts,qwencode-command.ts(Markdown),qwencode-subagent.ts,qwencode-skill.ts, andqwencode-hooks.ts, modeled on the Gemini CLI adapters but adjusted for Qwen's Markdown commands and distinct hook events; support project + global (~/.qwen/) scopes. - Register each in its processor, update
rules-processor.tsadditionalConvention/simulated gating where relevant, refresh README +docs/**, re-runpnpm dev gitignore, and add e2e Tool×Feature happy-paths.
References
- https://qwenlm.github.io/qwen-code-docs/en/ — feature documentation root (mcp/commands/sub-agents/skills/hooks pages cited above), v0.18.1.