Skip to content

agentuse/pr-review-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

🤖 AgentUse PR Review Agent

AI-powered pull request automation you can actually read and customize.

License: MIT

✨ Features

  • 🔓 Open Source - MIT licensed, fully transparent and hackable. Built on AgentUse, also open source
  • 🔍 Automatic Code Review - Reviews PRs on open/update
  • 💬 Comment Replies - Mention @agentuse to ask questions
  • ✏️ Fully Customizable - Edit prompts to match your team's standards
  • 🤖 Any Model - Claude, GPT, or open-source (GLM, MiniMax) via OpenRouter
  • 🔓 No Vendor Lock-in - Your prompts, your API keys, your control. Don't like a company? Switch providers anytime

🚀 Quick Start

1. Copy to your repo

# Clone this repo's .github folder to your project
cp -r .github/agents .github/workflows your-project/.github/

2. Add your API key

Go to Settings → Secrets → Actions and add one of:

Secret Provider Best For
ANTHROPIC_API_KEY Anthropic Console Pay-per-use
OPENAI_API_KEY OpenAI GPT models
OPENROUTER_API_KEY OpenRouter Multiple providers

💡 Using Claude Pro/Max subscription

Run this command in your project directory (the one with .github):

npx agentuse auth setup-github

3. Done!

Open a PR and watch the magic happen.


📁 What's Inside

.github/
├── workflows/
│   ├── agentuse-code-review.yml    # PR review workflow
│   └── agentuse-comment-reply.yml  # Comment reply workflow
└── agents/
    ├── code-review.agentuse        # PR review agent
    └── comment-reply.agentuse      # Comment reply agent

🎨 Customization

The agents are just text files. Edit them to fit your needs:

# Review focus areas, output format, etc.
vim .github/agents/code-review.agentuse

Example: Add custom review criteria

### 2.7 My Custom Check
- Check for our internal patterns
- Verify feature flags usage
- etc.

💬 Usage

Automatic Review

Every PR gets reviewed automatically:

## 🔍 Code Review Summary

| Files Changed | Additions | Deletions |
|---------------|-----------|-----------|
| 5             | +120      | -30       |

### 📋 Overview
This PR adds user authentication...

### 🔎 Findings
...

Ask Questions

Comment on any PR with @agentuse:

@agentuse explain what this function does
@agentuse are there any security concerns?
@agentuse suggest improvements for performance

🔧 Configuration

Change the model

Edit .github/agents/code-review.agentuse:

---
model: anthropic:claude-sonnet-4-5  # or openai:gpt-4o, openrouter:z-ai/glm-4.7
---

Disable automatic reviews

Comment out the pull_request trigger in .github/workflows/agentuse-code-review.yml:

on:
  # pull_request:  # Comment out to disable automatic reviews
  #   types: [opened, synchronize, reopened]
  workflow_dispatch:
    inputs:
      pr_number:
        description: 'PR number to review'
        required: true
        type: number

📚 Resources


📄 License

MIT - Do whatever you want with it.

About

Automated AI code review agent for GitHub PRs. Open-source and always-on.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published