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

review-council

v1.0.0

Published

Review Council — multi-model AI code review CLI

Readme

review-council

Multi-model AI code review in your terminal — many models, many roles, one consensus.

npm license node


Install

npm install -g review-council

Requires Node.js >= 18.


Quick Start

# Review a GitHub PR with default models and roles
rcl review owner/repo#42

# Review with specific roles and post findings as a PR comment
rcl review owner/repo#42 --roles security-auditor,bug-hunter --post

# Review a local patch file; fail CI if critical/important findings exist
rcl review changes.patch --ci --markdown report.md

Built-in Roles

| Role | Description | |------|-------------| | 🔍 general | Comprehensive review covering all dimensions | | 🔒 security-auditor | Auth, injection, XSS, CSRF, IDOR, and sensitive data exposure | | ⚡ performance-engineer | N+1 queries, caching, algorithmic complexity, and memory efficiency | | 📐 api-design | API contracts, breaking changes, REST/gRPC conventions | | 🧪 test-coverage | Missing tests, edge cases, flawed test logic | | ✏️ dx-critic | Readability, naming, documentation, and developer ergonomics | | 🏗️ architecture | Module boundaries, coupling, and architectural patterns | | 🐛 bug-hunter | Logic errors, null paths, race conditions, off-by-one | | ♿ accessibility-auditor | WCAG compliance, ARIA roles, keyboard navigation | | 📋 project-rules | Enforces repo conventions from AGENTS.md, CLAUDE.md, etc. | | 📄 spec-compliance | Checks implementation against a spec or plan file |

List roles in the terminal:

rcl roles list
rcl roles show security-auditor

CLI Reference

rcl review <target>

Review a PR or local diff.

Target formats:

  • owner/repo#N — GitHub PR number
  • GitHub PR URL
  • Path to a .patch or .diff file

Options:

| Flag | Description | |------|-------------| | --role <name> | Use a single named role | | --roles <names> | Comma-separated list of roles | | --reviewer <model:role> | Explicit model:role pair (repeatable) | | --models <models> | Comma-separated list of models to use | | --context <path> | Context file or directory (repeatable) | | --spec <path> | Specification file for spec-compliance role | | --focus <areas> | Comma-separated focus areas | | --post | Post review as a GitHub PR comment | | --json | Print JSON output to stdout | | --json-file <path> | Write JSON output to a file | | --markdown <path> | Write Markdown report to a file | | --ci | Exit non-zero if critical/important findings exist | | --config <path> | Path to a config file |

--role, --roles, and --reviewer are mutually exclusive.

Examples:

# Use explicit model:role pairs
rcl review owner/repo#7 \
  --reviewer claude-opus-4-6:security-auditor \
  --reviewer gpt-5.4:bug-hunter

# Spec compliance review with context
rcl review ./feature.patch --role spec-compliance --spec SPEC.md --context src/

# Output JSON for downstream processing
rcl review owner/repo#99 --json > findings.json

rcl roles

rcl roles list             # List all built-in roles
rcl roles show <name>      # Show system prompt and details for a role

Config File

Place .review-council.yml in your project root (or any parent directory). All fields are optional.

# Models to use (provider-prefixed names)
models:
  - anthropic/claude-opus-4-6
  - openai/gpt-5.4
  - google/gemini-2.5-pro

# Default roles to run
roles:
  - security-auditor
  - bug-hunter
  - test-coverage

# Or pin explicit model:role pairs
reviewers:
  - model: anthropic/claude-opus-4-6
    role: security-auditor
  - model: openai/gpt-5.4
    role: bug-hunter

# Custom role overrides (extends a built-in or creates new)
customRoles:
  - name: my-style-guide
    focus: [best-practices]
    systemPrompt: |
      Enforce our team style guide. Flag any deviation from snake_case
      variable names and require docstrings on all public functions.

# Consensus and deduplication thresholds
thresholds:
  minConsensusScore: 0.4   # 0–1; findings below this are dropped
  minConfidence: 0.2
  dedupeLineWindow: 5      # lines within which findings are merged
  jaccardThreshold: 0.3    # token-overlap threshold for deduplication

# Output defaults
output:
  markdown: true
  markdownPath: review-report.md

# Concurrency and reliability
concurrency: 6
timeout: 120000       # ms per model call
maxRetries: 3

# Context files to attach to every review
context:
  - ARCHITECTURE.md
  - docs/api.md

# Spec file for spec-compliance role
spec: SPEC.md

# GitHub token (prefer GITHUB_TOKEN env var instead)
# githubToken: ghp_...

Supported config file names: .review-council.yml, .review-council.yaml, .review-council.json, review-council.config.js.


How Consensus Works

When multiple models and roles review the same diff, their findings are:

  1. Deduplicated — findings on the same file, overlapping line range, and similar category are grouped together using Jaccard token overlap.
  2. Scored — each group receives a consensus score based on three dimensions: reviewer diversity (how many distinct models and roles flagged it), role relevance (whether the reporting role specialises in that finding type), and isolation (what fraction of relevant reviewers flagged it).
  3. Classified — groups are assigned a confidence band (Very High → Minimal) and a final severity, with upward elevation when multiple high-relevance roles agree.
  4. Filtered — groups below minConsensusScore or minConfidence are dropped.

The result is a ranked list of findings that rewards agreement across independent reviewers and penalises noise from a single model.

For the full algorithm, see CONSENSUS_V2_SPEC.md.


Environment Variables

| Variable | Description | |----------|-------------| | ANTHROPIC_API_KEY | API key for Claude models | | OPENAI_API_KEY | API key for OpenAI models | | GEMINI_API_KEY | API key for Google Gemini models | | GITHUB_TOKEN | GitHub personal access token (PR fetch and post) | | RCL_DEBUG | Set to any value to print full error stack traces |


License

MIT © 2026 Michael Ströck