Skip to content

feat(qwencode): add mcp, commands, subagents, skills, and hooks adapters - #1904

Merged
dyoshikawa merged 1 commit into
mainfrom
resolve-scrap-issue-1888-qwencode-features
Jun 16, 2026
Merged

feat(qwencode): add mcp, commands, subagents, skills, and hooks adapters#1904
dyoshikawa merged 1 commit into
mainfrom
resolve-scrap-issue-1888-qwencode-features

Conversation

@dyoshikawa

Copy link
Copy Markdown
Owner

Summary

Adds five missing feature adapters for the qwencode (Qwen Code) target, which previously supported only rules/ignore/permissions:

  • mcpmcpServers in .qwen/settings.json (project) / ~/.qwen/settings.json (global); stdio/SSE/HTTP transports, per-server includeTools/excludeTools, global mcp.allowed/mcp.excluded. Modeled on the Gemini CLI MCP adapter.
  • commands.qwen/commands/*.md (project) / ~/.qwen/commands/ (global). Markdown with description frontmatter — Qwen has deprecated the TOML command format, so this diverges from Gemini CLI and follows the Markdown command adapters instead.
  • subagents.qwen/agents/*.md (project) / ~/.qwen/agents/ (global), Markdown + YAML frontmatter (name, description, model, approvalMode, tools, disallowedTools, maxTurns, color, mcpServers, hooks).
  • skills.qwen/skills/<name>/SKILL.md (project) / ~/.qwen/skills/ (global) with supporting files; frontmatter name, description, priority, paths, user-invocable, disable-model-invocation.
  • hookshooks key in .qwen/settings.json. Qwen's event surface differs from Gemini's, so a Qwen-specific QWENCODE_HOOK_EVENTS constant + canonical mapping were added rather than reusing the Gemini set; only canonical HookEvent values with a genuine Qwen equivalent are mapped.

Also flips qwencode to supportsGlobal: true and wires each adapter into its processor, gitignore registry, README / docs/reference/supported-tools.md / docs/reference/file-formats.md (with the skills/rulesync/ mirror synced), and the Tool × Feature e2e happy-path matrices.

Validation evidence (primary sources)

Test plan

pnpm cicheck is fully green: format, oxlint, typecheck, 6546 unit tests / 275 files, skill-docs sync, cspell, secretlint. New co-located unit tests for each of the five adapters plus Qwen Code cases added to the e2e-{mcp,commands,subagents,skills,hooks} matrices.

Closes #1888

Closes #1888

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@dyoshikawa
dyoshikawa merged commit b2dece9 into main Jun 16, 2026
9 checks passed
@dyoshikawa

Copy link
Copy Markdown
Owner Author

@dyoshikawa Thank you!

@dyoshikawa
dyoshikawa deleted the resolve-scrap-issue-1888-qwencode-features branch June 16, 2026 17:33
@dyoshikawa dyoshikawa mentioned this pull request Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants