Skip to content

feat: add Codex CLI/App plugin for Qwen Code review#1

Closed
doudouOUC wants to merge 1 commit into
mainfrom
feat/codex-plugin
Closed

feat: add Codex CLI/App plugin for Qwen Code review#1
doudouOUC wants to merge 1 commit into
mainfrom
feat/codex-plugin

Conversation

@doudouOUC

Copy link
Copy Markdown
Owner

Summary

  • Add a Codex CLI/App plugin (plugins/qwen-codex/) that brings Qwen Code review to Codex via the $qwen-review skill
  • Refactor the Claude Code plugin (plugins/qwen/) to extract shared utilities into plugins/qwen/lib/ so each plugin is self-contained within its source directory
  • Both plugins share the same companion script and lib, one repo serves two platforms

Codex plugin details

  • .codex-plugin/plugin.json with Codex interface metadata (displayName, category, capabilities, defaultPrompt)
  • skills/qwen-review/SKILL.md instructs the Codex model to run reviews through the bundled companion script (not raw qwen commands)
  • agents/openai.yaml for OpenAI agent surface routing
  • Companion script + lib bundled in plugin source for correct caching
  • Background execution by default to avoid blocking/context truncation

Marketplace files

  • .claude-plugin/marketplace.json — Claude Code discovers and installs the qwen plugin
  • .agents/plugins/marketplace.json — Codex CLI discovers and installs the qwen plugin

Install

Claude Code:

/plugin marketplace add doudouOUC/qwen-code-plugin-cc
/plugin install qwen@qwen-code

Codex CLI:

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

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 plugin
  • codex plugin add qwen@qwen-code installs successfully
  • Companion script runs from Codex cache path (find ~/.codex/plugins/cache -path '*/qwen/*/scripts/qwen-companion.mjs')
  • Setup, review, status, result, cancel all work from cache path
  • Claude Code /qwen:review still works (no regression)

🤖 Generated with Qwen Code

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>
Copilot AI review requested due to automatic review settings July 1, 2026 16:21
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Copilot AI 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.

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.mjs by extracting reusable logic into plugins/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');
@doudouOUC doudouOUC closed this Jul 1, 2026
@doudouOUC doudouOUC deleted the feat/codex-plugin branch July 1, 2026 23:36
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.

2 participants