npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

codex-claude-review

v0.1.6

Published

Codex plugin for read-only Claude Code reviews. Review working tree changes and branch diffs directly from Codex.

Readme

Claude Review for Codex

Smart code review powered by Claude Code

npm version License: MIT

🌐 Language / 语言

English | 简体中文


Table of Contents


What is this?

Claude Review for Codex is a plugin that integrates Claude Code into Codex for intelligent code review.

| Use Case | Description | |----------|-------------| | Pre-commit Check | Review your changes before committing | | PR Review | Compare branch diffs, get review feedback | | Code Learning | Understand code quality and improvement suggestions | | Security Scan | Detect potential vulnerabilities and performance issues |


How it works

How Claude Review works

The diagram shows the default Claude Code CLI path. If Direct API fallback is enabled and used, the diff and prompt are sent to the configured Anthropic-compatible endpoint.

┌─────────────────────────────────────────────────────────────┐
│                        Codex CLI                            │
│  ┌───────────────────────────────────────────────────────┐  │
│  │              claude-review plugin                     │  │
│  │  ┌─────────────┐  ┌─────────────┐  ┌──────────────┐  │  │
│  │  │ git diff    │  │ parse args  │  │ format       │  │  │
│  │  │ collection  │→ │ & validate  │→ │ output       │  │  │
│  │  └─────────────┘  └─────────────┘  └──────────────┘  │  │
│  └───────────────────────────────────────────────────────┘  │
│                           ↓                                 │
│  ┌───────────────────────────────────────────────────────┐  │
│  │              Claude Code CLI                          │  │
│  │  ┌─────────────────────────────────────────────────┐  │  │
│  │  │  Analyze diff → Generate review findings        │  │  │
│  │  └─────────────────────────────────────────────────┘  │  │
│  └───────────────────────────────────────────────────────┘  │
└─────────────────────────────────────────────────────────────┘

Workflow:

  1. Collect changes - Plugin uses git diff to collect your code changes
  2. Invoke Claude Code - Sends the diff to Claude Code CLI for analysis
  3. Get results - Claude Code returns structured review findings
  4. Display output - Plugin formats and displays the results

Key points:

  • Claude Code runs as a background process (subagent) within Codex
  • Analysis is local-first through Claude Code CLI by default
  • The plugin is read-only - it never modifies your code

Output Modes

Claude Review supports two output modes:

| Mode | Flag | Description | Use Case | |------|------|-------------|----------| | Text (default) | --format=text | Markdown table output | Quick review, lightweight | | Interactive | --format=table | HTML report with per-finding selection | Detailed review, batch actions |

Text Mode (Default)

Outputs a clean Markdown table:

| Severity | File | Issue | Suggestion |
|----------|------|-------|------------|
| P1 | src/app.js:42 | Missing null check | Add null check |
| P2 | src/utils.js:15 | Unused variable | Remove it |

Interactive HTML Mode

Generates an interactive HTML report with:

  • Color-coded severity levels (P0/P1 red, P2 yellow, P3 green)
  • Per-finding action selection (Fix / Skip / Custom)
  • Batch operations (Select All Fix, P3 → Skip, etc.)
  • Export selections as JSON for automation
# Generate and open HTML report
claude-review review --wait --format=table --open

Natural Language Triggers

When using with Codex, you can switch modes naturally:

| Say this | Result | |----------|--------| | "生成 HTML 报告" / "交互式确认" | Switches to interactive mode | | "简单模式" / "直接看结果" | Uses text mode |


Prerequisites

Before installing the plugin, make sure you have:

| Requirement | Install Command | Verify | |-------------|-----------------|--------| | Node.js 22+ | Download | node --version | | Git | Download | git --version | | Claude Code CLI | npm install -g @anthropic-ai/claude-code | claude --version | | Codex CLI | Install Guide | codex --version |

After installing Claude Code, authenticate:

claude auth login

Quick Start

Quick start steps

Option 1: Agent Install (Recommended)

Just say this in Codex:

install Claude Review from https://github.com/sljdxde/claude-review-plugin

The agent will handle everything automatically.

Option 2: Manual Install

# Install the latest GitHub version
npm install -g github:sljdxde/claude-review-plugin

# Enable Codex integration (registers the package root as a local marketplace and installs the plugin)
claude-review enable

# Verify environment and dependencies
claude-review doctor

Note: enable uses the Codex CLI to register the package root as a local marketplace and enable claude-review@local-codex-plugins.

npm registry: when the npm package is published, npm install -g codex-claude-review is also supported.


Usage Examples

Usage examples

Example 1: Review your changes before committing

You made some changes and want to check them:

$ claude-review review --scope working-tree --wait

Output:

Code Review Findings

1. Missing Tests (High)
   File: src/utils.js:15
   New exported function "calculate" has no unit tests.
   Suggestion: Add tests for edge cases (negative numbers, zero, large values).

2. Input Validation (Medium)
   File: src/utils.js:18
   Function doesn't validate if inputs are numbers.
   Suggestion: Add type checking before calculation.

3. Magic Number (Low)
   File: src/utils.js:22
   Hard-coded value 100 should be a named constant.
   Suggestion: const MAX_RETRIES = 100;

Summary: 3 issues found (1 high, 1 medium, 1 low)

Example 2: Review a branch before creating PR

You finished a feature branch and want to review it against main:

$ claude-review review --base main --wait

Output:

Code Review Findings

1. Bug: Export Overwrite (High)
   File: src/index.js:10
   First export "module.exports = { add }" is overwritten by second export.
   Fix: Combine into single export statement.

2. Missing Error Handling (Medium)
   File: src/api.js:45
   fetch() call has no error handling for network failures.
   Fix: Add try/catch or .catch() handler.

3. Performance (Low)
   File: src/render.js:78
   Array is recreated on every render cycle.
   Fix: Use useMemo to memoize the array.

Summary: 3 issues found. Consider fixing high severity issues before merging.

Example 3: Run review in background

For large codebases, run the review in background:

# Start background review
$ claude-review review --background
Started background review: review-abc123-def456

# Check status later
$ claude-review status
Running: review-abc123-def456 (working tree diff)

# Get results when done
$ claude-review result review-abc123-def456

Command Reference

| Command | Description | |---------|-------------| | claude-review enable | Enable Codex plugin integration | | claude-review doctor | Check environment dependencies | | claude-review review | Run code review | | claude-review status | Show background job status | | claude-review result | Show review results | | claude-review cancel | Cancel a running job |

Review Options

| Option | Description | |--------|-------------| | --scope <type> | Review scope: working-tree, branch, or auto (default) | | --base <ref> | Base branch for comparison (e.g., main, master) | | --wait | Wait for result in foreground | | --background | Run in background (default) | | --timeout <min> | Timeout in minutes (default: 30) | | --format <mode> | Output format: text (default) or table (interactive HTML) | | --output <dir> | Output directory for HTML reports (default: .claude-review/) | | --open | Auto-open HTML report in browser | | --json | JSON output format (best-effort; falls back to raw text if parsing fails) |


Security

  • Read-only - Plugin never modifies your code
  • Local-first - By default, analysis runs locally via Claude Code CLI
  • Direct API fallback - When the Claude CLI cannot be reached, the plugin may fall back to a configured Anthropic-compatible API endpoint. In this mode, your diff and prompt are sent to the remote endpoint. Set CLAUDE_REVIEW_FORCE_CLAUDE_CLI=1 to disable fallback entirely
  • Git-only - Only works with Git repositories

License

MIT