@debangsu__/create-pr-review-agent
v1.0.4
Published
One-command installer for an AI PR review agent (GitHub Action) - drops a working, LLM-powered PR reviewer into any repo.
Readme
AI PR Review Agent
Automatic, AI-powered code review on every pull request. Install it once, give it an API key, and it reviews every PR from then on - no further setup, no config files to edit, no scripts to understand.
What it does
When someone opens or updates a pull request, this agent:
- Reads the diff
- Reviews each changed file with an LLM (Claude or GPT - your choice)
- Posts one comment on the PR summarizing what it found, sorted by severity (blocking issues first)
That's it. It runs as a GitHub Action - no server to host, no webhook to configure.
Install (2 minutes)
From inside your repo, run: npx @debangsu__/create-pr-review-agent
It will ask you two things:
- Which LLM to use - Anthropic (Claude) or OpenAI (GPT). Pick whichever one you have an API key for.
- Your API key - pasted once, sent straight to GitHub's secret store. Never written to a file, never logged.
If you have the GitHub CLI installed and logged in (gh auth login), the installer sets the secret for you automatically. If not, it prints 4 lines telling you exactly where to paste it on GitHub.com.
Then run: git push
Open a pull request. The agent reviews it automatically.
What the review looks like
A single comment on your PR summarizing what was found in each changed file, sorted with blocking issues first, then warnings, then info-level notes.
Requirements
- A GitHub repository
- An API key from Anthropic (console.anthropic.com) or OpenAI (platform.openai.com)
- Node.js 18+ (only needed to run the installer once)
Known limitations (v1)
- No cross-file context - each file is reviewed independently.
- Per-PR file cap - by default only the first 30 changed files are reviewed, to keep cost and runtime bounded.
- One comment per push, not inline line-comments (yet).
Cost
Every reviewed file is one LLM API call, billed by your own Anthropic/OpenAI account - this tool adds no markup.
Uninstalling
Delete .github/workflows/pr-review.yml and the scripts/ directory it added, then remove the API key secret from your repo settings.
Questions or issues
This is a young project - if something doesn't work the way this README says, please report it.
