Skip to content

Accept qwen as a name for Qwen Code - #316

Merged
yourconscience merged 3 commits into
mainfrom
qwen-alias
Nov 21, 2026
Merged

yourconscience merged 3 commits into
mainfrom
qwen-alias

Conversation

@yourconscience

@yourconscience yourconscience commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

What and why

Qwen Code's key is qwen-code, while every other harness goes by its short name, so a config can end up with name: qwen. tackroom 3.0.0 read that as an unknown custom harness: it got skills only, config inventory reported qwen with no MCP, hooks or roles, and the web view and the Herdr panel showed "qwen" in lowercase and said it takes no roles.

qwen is now read as qwen-code, the way claude-code is read as claude: one entry in legacyAgentNames. It applies in agents:, in --agents and in the agents: lists of MCP servers, hooks and skill sources. tackroom.yaml is not rewritten.

Things to know:

  • The first sync after the upgrade adds what Qwen Code gets: skills.directories in ~/.qwen/settings.json, MCP servers, hooks, roles in ~/.qwen/agents and ~/.qwen/QWEN.md. It deletes nothing; the skills link an earlier sync made stays and counts as external.
  • A real ~/.qwen/QWEN.md is a conflict, as for any harness with a root file: sync skips Qwen Code until sync --replace-conflicts, which backs the file up.
  • A config with both qwen and qwen-code now stops with config agent qwen-code is duplicated, as claude with claude-code does. 3.0.0 accepted the pair as two harnesses.
  • status --json and config inventory report the entry as qwen-code.

How I checked it

In throwaway homes, with the 3.0.0 binary for the "before" state:

  • config inventory for a name: qwen entry: 3.0.0 gives qwen / qwen with roles and MCP false; this branch gives qwen-code / Qwen Code with both true.

  • Upgrade path: a home synced by 3.0.0 with the qwen entry, then sync --dry-run and sync on this branch: 0 conflicts, the plan adds skills, 6 roles, 2 MCP servers, 1 hook and the root link; a second dry run plans nothing. With existing user files in ~/.qwen, settings.json is merged and a real QWEN.md is reported as a conflict.

  • agents: [qwen] on an MCP server and a hook, and setup --agents claude,qwen: failed with "unknown agent" on 3.0.0, work here.

  • Not checked: the web view and the Herdr panel were not rendered with this build, and whether Qwen Code itself lists a skill twice when the old link and skills.directories both point at it.

  • go test ./... and go vet ./... pass

  • I can explain this change without an AI tool

Summary by Sourcery

Treat qwen as the legacy alias for qwen-code throughout agent configuration and synchronization.

Bug Fixes:

  • Recognize qwen as an alias for Qwen Code across configuration, CLI agent selection, and agent-targeted resource lists, so Qwen receives its MCP servers, hooks, roles, root file, and skill settings.
  • Report aliased Qwen configurations consistently as qwen-code and detect duplicate qwen/qwen-code entries.

Documentation:

  • Document the accepted qwen alias and describe the upgrade behavior and conflict handling.

@sourcery-ai

sourcery-ai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Implementation

Map the alternate harness name qwen to qwen-code so existing name normalization handles it across configuration and CLI inputs.

  • internal/app/config.go L594-598

Documentation

Document qwen as an accepted alias and explain the resulting upgrade behavior.

  • docs/harnesses.md L72
  • docs/upgrading.md L12

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 57 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f2e2498a-5be5-42e2-b215-fd101c570740
Commits

Reviewing files that changed from the base of the PR and between fc2b612 and 067b5eb.

Files selected for processing: 3

  • docs/harnesses.md
  • docs/upgrading.md
  • internal/app/config.go
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!

Sourcery assessment

Needs a human reviewer. Canonicalizing qwen makes existing MCP servers and hooks configured for that name reach Qwen Code, where they may receive context or run commands during sync or use. Reverting stops future routing, but cannot undo data already disclosed or actions already taken.


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

@yourconscience
yourconscience merged commit 47f655a into main Nov 21, 2026
11 checks passed
@yourconscience yourconscience mentioned this pull request Nov 21, 2026
2 tasks done
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