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

pr-agent-cli

v1.1.5

Published

AI-powered CLI tool for generating PR descriptions, fixing review comments, and performing code reviews using Ollama, OpenAI, or Anthropic

Downloads

1,011

Readme

pr-agent-cli

npm version License: MIT

AI-powered CLI tool for PR descriptions, code reviews, and auto-fixing review comments.

Features

| Feature | Description | |---------|-------------| | 🤖 AI PR Generation | Auto-generate PR titles and descriptions from git diffs | | 🔍 AI Code Review | Intelligent code reviews with severity levels | | 🛠️ Auto-Fix Reviews | Fix PR comments using GitHub Copilot or AI | | 🌐 Multi-Provider | Ollama (local), OpenAI, Anthropic support | | 🚀 GitHub Integration | Create PRs directly from CLI |

Prerequisites

  • Node.js >= 14.0.0
  • Git repository
  • LLM Provider: Ollama (default), OpenAI, or Anthropic
  • GitHub CLI (gh) - Required for --fix-reviews

Installation

# Install CLI
npm install -g pr-agent-cli

# Install Ollama (for local AI)
# macOS
brew install ollama

# Linux
curl -fsSL https://ollama.ai/install.sh | sh

# Windows: Download from https://ollama.ai/download

# Install GitHub CLI
# macOS
brew install gh

# Windows
winget install --id GitHub.cli

# Linux: See https://cli.github.com/

Quick Start

# 1. Start Ollama and pull model
ollama serve
ollama pull deepseek-coder:6.7b

# 2. Authenticate GitHub CLI
gh auth login

# 3. Generate PR description
cd your-repo
git checkout -b feature/new-feature
# ... make changes ...
git add .
git commit -m "Add feature"
pr-agent

# 4. Get AI code review
pr-agent --review-pr

# 5. Auto-fix review comments
pr-agent --fix-reviews

Commands

| Command | Description | Example | |---------|-------------|---------| | pr-agent | Generate PR description | pr-agent --base main --create | | pr-agent --review-pr | AI code review | pr-agent --review-pr --base main | | pr-agent --fix-reviews | Fix PR review comments | pr-agent --fix-reviews | | pr-agent --diff-only | View diff statistics | pr-agent --diff-only |

Configuration

Quick Setup

Create .pr-agent.json in your repo:

{
  "llmProvider": "ollama",
  "model": "deepseek-coder",
  "baseBranch": "main",
  "reviewFixMode": "copilot"
}

Environment Variables

# Option 1: Export variables
export OPENAI_API_KEY=your_key_here
export ANTHROPIC_API_KEY=your_key_here

# Option 2: Create .env file in same dir (recommended)
echo "OPENAI_API_KEY=sk-your-key" > .env
echo "ANTHROPIC_API_KEY=sk-ant-your-key" >> .env

Key Configuration Options

| Option | Description | Default | |--------|-------------|---------| | llmProvider | ollama, openai, anthropic | ollama | | model | Model name | deepseek-coder | | baseBranch | Default base branch | development | | reviewFixMode | copilot or ollama | copilot |

LLM Providers

| Provider | Setup | Example | |----------|-------|---------| | Ollama | ollama pull deepseek-coder:6.7b | pr-agent | | OpenAI | Set OPENAI_API_KEY | pr-agent --provider openai --model gpt-4o | | Anthropic | Set ANTHROPIC_API_KEY | pr-agent --provider anthropic --model claude-3-5-sonnet-20241022 |

Available Models

OpenAI: gpt-4o, gpt-4o-mini, gpt-4-turbo, gpt-3.5-turbo
Anthropic: claude-3-5-sonnet-20241022, claude-3-opus-20240229, claude-3-sonnet-20240229, claude-3-haiku-20240307
Ollama: deepseek-coder:6.7b, codellama, llama2

Troubleshooting

| Issue | Solution | |-------|----------| | "Ollama is not running" | ollama serve | | "GitHub CLI not installed" | Install: brew install gh (macOS) or see cli.github.com | | "Not a git repository" | Run inside a git repo: git init | | "No pull request found" | Create PR first: gh pr create |

License

MIT - see LICENSE file

Support


Made with ❤️ by Shreyas Joshi