feat: add Codex CLI/App plugin for Qwen Code review#1
Closed
doudouOUC wants to merge 1 commit into
Closed
Conversation
Add a Codex CLI plugin (plugins/qwen-codex/) that brings Qwen Code review to Codex CLI and Codex App via the $qwen-review skill. The plugin bundles the same companion script used by the Claude Code plugin and instructs the Codex model to run reviews through it. Also refactors the Claude Code plugin (plugins/qwen/) to extract shared utilities into plugins/qwen/lib/ so each plugin is fully self-contained within its source directory. Both plugins in one repo, two marketplace files: - .claude-plugin/marketplace.json (Claude Code) - .agents/plugins/marketplace.json (Codex CLI) 🤖 Generated with [Qwen Code](https://github.com/QwenLM/qwen-code) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
Pull request overview
This PR adds a new Codex CLI/App plugin for running Qwen Code’s /review via a $qwen-review skill, while refactoring the existing Claude Code plugin to use extracted shared utilities (argv parsing, job tracking, filesystem helpers) within each plugin’s source tree.
Changes:
- Add
plugins/qwen-codex/with a Codex plugin manifest, skill documentation, agent routing, and a bundled companion script. - Refactor
plugins/qwen/scripts/qwen-companion.mjsby extracting reusable logic intoplugins/qwen/lib/*.mjs(argv parsing, job state, tracked execution). - Update repository metadata/docs and expand tests to validate both Claude Code and Codex marketplace/plugin manifests.
Reviewed changes
Copilot reviewed 19 out of 19 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/plugin.test.mjs | Expands tests for Codex marketplace + plugin/skill existence; updates version assertions and helper naming. |
| README.md | Updates documentation to describe both plugins (Claude Code + Codex) and their install/usage. |
| plugins/qwen/scripts/qwen-companion.mjs | Refactors companion to use extracted libs and updated job tracking plumbing. |
| plugins/qwen/lib/tracked-review.mjs | New shared tracked execution helper for job state + child PID tracking. |
| plugins/qwen/lib/jobs.mjs | New shared job persistence and workspace/job resolution utilities. |
| plugins/qwen/lib/fs-utils.mjs | New shared filesystem/process helpers (status checks, JSON IO, PID kill, workspace hashing). |
| plugins/qwen/lib/argv.mjs | New shared argv parsing/tokenization helpers (model flags, raw arg stripping). |
| plugins/qwen/.claude-plugin/plugin.json | Bumps plugin version to 0.5.0. |
| plugins/qwen-codex/skills/qwen-review/SKILL.md | Adds Codex skill instructions for running review via the bundled companion script. |
| plugins/qwen-codex/skills/qwen-review/agents/openai.yaml | Adds OpenAI agent routing metadata for the Codex skill surface. |
| plugins/qwen-codex/scripts/qwen-companion.mjs | Adds Codex companion script (review/status/result/cancel/setup) using the bundled libs. |
| plugins/qwen-codex/lib/tracked-review.mjs | New tracked execution helper for the Codex plugin copy. |
| plugins/qwen-codex/lib/jobs.mjs | New job persistence utilities for the Codex plugin copy. |
| plugins/qwen-codex/lib/fs-utils.mjs | New fs/process utilities for the Codex plugin copy. |
| plugins/qwen-codex/lib/argv.mjs | New argv parsing utilities for the Codex plugin copy. |
| plugins/qwen-codex/.codex-plugin/plugin.json | Adds Codex plugin manifest (name/version/interface/skills). |
| package.json | Bumps package version to 0.5.0 and updates description for both platforms. |
| .claude-plugin/marketplace.json | Updates marketplace metadata/version to 0.5.0 and description to include Codex. |
| .agents/plugins/marketplace.json | Adds Codex plugin marketplace entry pointing to ./plugins/qwen-codex. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+28
to
+32
| const REVIEW_ONLY_SYSTEM_PROMPT = [ | ||
| 'You are running from the Claude Code Qwen plugin in review-only mode.', | ||
| 'When executing /review, report findings only.', | ||
| 'Do not apply autofixes, edit files, stage files, commit, push, or mutate the working tree.', | ||
| ].join(' '); |
| const npmStatus = commandStatus('npm', ['--version'], { cwd }); | ||
| const qwenStatus = getQwenAvailability(cwd); | ||
|
|
||
| console.log('Qwen Code plugin for Claude Code'); |
| return; | ||
| } | ||
|
|
||
| console.log('Ready. Try: /qwen:review'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
plugins/qwen-codex/) that brings Qwen Code review to Codex via the$qwen-reviewskillplugins/qwen/) to extract shared utilities intoplugins/qwen/lib/so each plugin is self-contained within its source directoryCodex plugin details
.codex-plugin/plugin.jsonwith Codex interface metadata (displayName, category, capabilities, defaultPrompt)skills/qwen-review/SKILL.mdinstructs the Codex model to run reviews through the bundled companion script (not raw qwen commands)agents/openai.yamlfor OpenAI agent surface routingMarketplace files
.claude-plugin/marketplace.json— Claude Code discovers and installs the qwen plugin.agents/plugins/marketplace.json— Codex CLI discovers and installs the qwen pluginInstall
Claude Code:
Codex CLI:
Test plan
npm test— 19 tests pass (manifest validation for both platforms, command structure, argument forwarding, background lifecycle, cancellation)codex plugin marketplace add <local-path>discovers the plugincodex plugin add qwen@qwen-codeinstalls successfullyfind ~/.codex/plugins/cache -path '*/qwen/*/scripts/qwen-companion.mjs')/qwen:reviewstill works (no regression)🤖 Generated with Qwen Code