Skip to content

feat: add Qwen Code checks, MCP allow/deny lists and by-product gitignore entries - #3275

Merged
dyoshikawa merged 3 commits into
mainfrom
resolve-issue-2668-qwencode-followups
Oct 2, 2026
Merged

dyoshikawa merged 3 commits into
mainfrom
resolve-issue-2668-qwencode-followups

Conversation

@dyoshikawa

Copy link
Copy Markdown
Owner

Summary

Follows up three of the Qwen Code surfaces tracked in #2668, each re-verified against the current upstream docs (docs/users/features/{code-review,mcp,worktree}.md on QwenLM/qwen-code main).

  • checks → .qwen/review-rules.md. New QwencodeCheck (an AggregatedToolCheck, same shape as the Cursor Bugbot / Rovo Dev adapters): every check targeting qwencode collapses into one frontmatter-free Markdown file of marked sections, round-trips on import, warns before replacing a hand-written file, and never deletes one. Project scope only — /review reads the file from the repository (from the base branch for PR reviews) and there is no user-level rules file. Registered with committedOutput: true, so the derived .gitignore does not ignore it.
  • mcp → server-level mcp.allowed / mcp.excluded. Authored as allowed / excluded in the qwencode block of .rulesync/mcp.jsonc (the Kimi Code startupTimeoutMs / toolTimeoutMs precedent for tool-wide MCP settings) and written into the mcp object of .qwen/settings.json at both scopes; import reads them back into that block. The mcp key is now owned by the MCP feature in the shared-config gateway, and the object is recomputed from the existing file so other mcp.* keys survive.
  • gitignore → Qwen Code by-products. **/.qwen/review-cache/ (upstream tells users to ignore it), **/.qwen/reviews/ (timestamped saved review reports), **/.qwen/tmp/ (/review scratch worktrees and findings) and **/.qwen/worktrees/ (the fixed worktree root) are added to HAND_MAINTAINED_GITIGNORE_ENTRIES, per path rather than .qwen/ so committed config and .qwen/team-memory/ stay trackable.

Docs (file-formats.md), the generated tables/docs content, the project .gitignore, and the Qwen Code research map are updated; the e2e checks matrix gains the qwencode cell.

Design decisions (made autonomously)

  • mcp.allowed / mcp.excluded follow "write only when authored": a list left out of the qwencode block keeps whatever settings.json holds, so removing it from the source does not retract it (documented). This matches the Kimi Code defaults and avoids deleting a hand-written list rulesync never managed.
  • Flat qwencode.allowed / qwencode.excluded keys (not a nested mcp object), mirroring the flat Kimi Code block.
  • .qwen/reviews/ is ignored as a per-run artifact directory, like .takt/runs/.

Not covered here (why this uses Refs)

  • Fork profiles (.qwen/fork-profiles/<name>.md) — not implemented. A profile is frontmatter-only (name, required tools, promptHint ≤ 200 chars) and upstream rejects any body, while a rulesync subagent is defined by its body prompt; it is a fork tool restriction, not an agent. It does not map cleanly onto subagents and would need a new file kind.
  • The later follow-up comments on Follow up Qwen Code upstream updates: .qwen/review-rules.md checks surface, fork profiles, server-level mcp.allowed/excluded #2668 (skills.* kill-switches, general.outputStyle / .qwen/output-styles/, .qwen/workflows/, the command-hook timeout unit change in v0.23.4, tools.workflowNameOnly, tools.executionSandbox) live in the permissions/hooks/skills adapters and are left for separate changes.

Refs #2668

🤖 Generated with Claude Code

https://claude.ai/code/session_01Y4MwhqMc6s4ct5MzMReGJj

…nore entries

Emit .rulesync/checks into Qwen Code's /review project rules file .qwen/review-rules.md (project scope), round-trip the server-level mcp.allowed / mcp.excluded lists through the qwencode block of .rulesync/mcp.jsonc, and gitignore Qwen Code's .qwen/review-cache, reviews, tmp and worktrees by-product directories.

Refs #2668

Co-Authored-By: Claude Opus 5.5 <[email protected]>

Claude-Session: https://claude.ai/code/session_01Y4MwhqMc6s4ct5MzMReGJj
forTarget stripped the whole qwencode block before the translator ran, so allowed/excluded never reached settings.json during generate. Retain the block's tool-wide list fields for its own target, add an e2e round-trip for the lists and for qwencode checks import, and document how to clear a list.

Refs #2668

Co-Authored-By: Claude Opus 5.5 <[email protected]>

Claude-Session: https://claude.ai/code/session_01Y4MwhqMc6s4ct5MzMReGJj
@dyoshikawa
dyoshikawa merged commit f934da6 into main Oct 2, 2026
9 checks passed
@dyoshikawa
dyoshikawa deleted the resolve-issue-2668-qwencode-followups branch October 2, 2026 17:49
@dyoshikawa

Copy link
Copy Markdown
Owner Author

@dyoshikawa Thank you!

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.

1 participant