rulesync icon indicating copy to clipboard operation
rulesync copied to clipboard

Follow up Qwen Code upstream updates: mcp, commands, subagents, skills, and hooks support

Open dyoshikawa opened this issue 5 months ago • 0 comments

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.json mcpServers (stdio/SSE/HTTP, per-server includeTools/excludeTools, global mcp.allowed/mcp.excluded). Constants already define QWENCODE_SETTINGS_FILE_NAME = "settings.json" but no qwencode-mcp.ts. Source: https://qwenlm.github.io/qwen-code-docs/en/users/features/mcp/
  • commands — unsupported. .qwen/commands/*.md Markdown with YAML description + {{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/*.md Markdown + YAML frontmatter (name, description, model, approvalMode, tools, disallowedTools, maxTurns, color, per-agent mcpServers/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.md Markdown + frontmatter (name, description, optional priority, 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.json hooks with event groups (PreToolUse, PostToolUse, UserPromptSubmit, SessionStart/End, Stop, SubagentStart/Stop, etc.), regex matchers, command/http/function/prompt executor types. Qwen's event set/executors differ from Gemini's — validate event names rather than reusing GEMINICLI_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, and qwencode-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.ts additionalConvention/simulated gating where relevant, refresh README + docs/**, re-run pnpm 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.

dyoshikawa avatar Jun 16 '26 06:06 dyoshikawa