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

claude-plan-reviewer

v0.2.3

Published

Auto-review Claude Code plans using external AI CLIs (Codex, Gemini CLI, etc.)

Readme

claude-plan-reviewer

Automatically review Claude Code plans using external AI CLIs (Codex, Gemini CLI). Uses Claude Code's PreToolUse hook to intercept ExitPlanMode, send the plan for external review, and inject feedback back into Claude's context.

How It Works

Claude writes a plan and calls ExitPlanMode
  → PreToolUse hook fires → hook runs
  → Finds the latest plan file from ~/.claude/plans/
  → Runs review via Codex / Gemini CLI
  → If LGTM → permissionDecision:"allow" → Claude exits plan mode
  → If not  → permissionDecision:"deny" + review feedback
            → Claude revises the plan → calls ExitPlanMode again
  → After maxReviews reached → allow without review

Note: Due to a Claude Code limitation, the review result is only displayed in the chat when the reviewer returns feedback (deny). When the reviewer returns LGTM (allow), the review result is streamed to stderr but not shown in the chat UI.

Install

npm install -g claude-plan-reviewer

Setup

claude-plan-reviewer setup

Note: The hook takes effect in Claude Code sessions started after setup. Already-running sessions are not affected.

Teardown

claude-plan-reviewer teardown

Uninstall

npm uninstall -g claude-plan-reviewer

Configuration

# Show current config
claude-plan-reviewer config show

# Change adapter (codex | gemini)
claude-plan-reviewer config set adapter gemini

# Change max reviews per session
claude-plan-reviewer config set maxReviews 3

# Set Codex model
claude-plan-reviewer config set codex.model o3

# Set Gemini model
claude-plan-reviewer config set gemini.model gemini-2.5-pro

Config File

~/.claude-plan-reviewer.json

{
  "adapter": "codex",
  "maxReviews": 2,
  "prompt": "",
  "codex": {
    "model": "",
    "sandbox": "read-only"
  },
  "gemini": {
    "model": ""
  }
}

| Key | Description | Default | |-----|-------------|---------| | adapter | Reviewer to use (codex or gemini) | codex | | maxReviews | Max reviews per session | 2 | | prompt | Additional review instructions | "" | | codex.model | Codex CLI model | "" (default) | | codex.sandbox | Codex sandbox mode | read-only | | gemini.model | Gemini CLI model | "" (default) |

CLI Commands

| Command | Description | |---------|-------------| | setup | Add PreToolUse hook to Claude Code settings | | teardown | Remove PreToolUse hook | | config show | Show current configuration | | config set <key> <value> | Update a config value | | review <file> | Manually review a plan file (for testing) | | hook | Internal command called by Claude Code |

Manual Review (Testing)

claude-plan-reviewer review ~/.claude/plans/my-plan.md

Prerequisites

  • Node.js >= 18.0.0
  • A reviewer CLI installed:
    • Codex: npm install -g @openai/codex
    • Gemini: Gemini CLI

Test

npm test

Disclaimer

Use at your own risk. This tool automatically sends your Claude Code plans to external AI services (Codex CLI, Gemini CLI) for review. The authors are not responsible for any damages or losses arising from the use of this tool, including but not limited to:

  • Unintended plan content being sent to third-party AI services
  • Inaccurate or misleading review feedback leading to flawed implementations
  • Workflow disruption caused by misconfiguration or incompatible Claude Code versions

Not a substitute for human review. External AI reviews may miss critical issues or provide incorrect suggestions. Always review plans yourself before proceeding to implementation.

This software is provided "AS IS" without warranty of any kind, as stated in the MIT License.

License

MIT