Skip to content

Latest commit

 

History

History
133 lines (87 loc) · 3.03 KB

File metadata and controls

133 lines (87 loc) · 3.03 KB

Qwen Code Review Plugin

Use Qwen Code review from Claude Code, Codex CLI, and Codex App.

This repository contains two host plugins for the same Qwen Code review capability:

  • Claude Code plugin (plugins/qwen/) — adds /qwen:review and job management commands.
  • Codex plugin (plugins/qwen-codex/) — adds the $qwen-review skill.

Both plugins call the local qwen CLI to run Qwen Code's built-in /review skill.

Requirements

  • Node.js 18.18 or later.
  • Qwen Code installed and available on PATH.

Install Qwen Code if needed:

npm install -g @qwen-code/qwen-code

Install — Claude Code

/plugin marketplace add doudouOUC/qwen-code-review-plugin
/plugin install qwen@qwen-code
/reload-plugins
/qwen:setup

Install — Codex CLI / App

codex plugin marketplace add doudouOUC/qwen-code-review-plugin
codex plugin add qwen@qwen-code

Claude Code Usage

Review local changes:

/qwen:review

/qwen:review starts in a Claude Code background task by default. Claude Code will report when the background command finishes and surface the final Qwen Code review output.

Wait for a small review in the foreground:

/qwen:review --wait

Run with a specific Qwen Code model:

/qwen:review --model qwen3-coder-plus
/qwen:review -m qwen3-coder-plus 123 --comment

Review a pull request:

/qwen:review 123

Review a specific file:

/qwen:review src/auth.ts

Post Qwen Code inline comments on a PR:

/qwen:review 123 --comment

Manage jobs:

/qwen:status
/qwen:status qwen-review-1234abcd
/qwen:result qwen-review-1234abcd
/qwen:cancel qwen-review-1234abcd

Codex CLI / App Usage

Once installed, the $qwen-review skill is available in Codex CLI and Codex App. Ask Codex to review your code:

Use $qwen-review to review the current changes

The skill requires explicit $qwen-review invocation. Generic review or audit requests do not start Qwen Code automatically.

Codex will run the qwen CLI with review-only flags and present the findings.

Notes

/qwen:review (Claude Code) and $qwen-review (Codex) are both review-only. They forward your review target arguments to Qwen Code's /review skill and append a review-only system prompt.

--wait, --background, --model <model>, --model=<model>, and -m <model> are handled by the companion scripts. Other arguments are passed to Qwen Code's /review prompt unchanged.

The companion scripts run Qwen Code with --approval-mode yolo so headless review can execute the analysis commands required by /review. Sandboxing is enabled by default. If your environment cannot run Qwen Code sandboxing, explicitly disable it with:

export QWEN_PLUGIN_NO_SANDBOX=1

Background job state is stored under:

~/.qwen-code-review-plugin/workspaces/

Existing installs that already have ~/.qwen-code-plugin-cc/ keep using that legacy directory until the new state directory exists.

Development

Run tests:

npm test

License

Apache-2.0