# Review PRs from your terminal

> Have your coding agent review, comment on and fix PRs on GitHub.

- Category: Code review · Difficulty: Intermediate
- Estimated monthly cost: $20/mo. Uses your Claude plan (Pro $20). Use a fine-grained GitHub token limited to the repos you need.
- Model: Claude Opus 5.5 for review depth
- MCP servers: GitHub MCP (https://api.githubcopilot.com/mcp/)
- Last checked: 2026-10-21 · Hands-on tested: no (built from official docs)
- Canonical: https://getagentloadout.com/loadouts/terminal-pr-review/ · JSON: https://getagentloadout.com/data/loadouts/terminal-pr-review.json

## Tools
- [Claude Code](https://claude.com/product/claude-code): Anthropic's agentic coding tool for the terminal and IDEs. Included in paid Claude plans. Pricing: Pro $20/mo ($17/mo billed yearly; 5-hour and weekly usage limits); Max 5x $100/mo (5x Pro usage per session); Max 20x $200/mo (20x Pro usage per session). Source: https://claude.com/pricing
- [GitHub Copilot](https://github.com/features/copilot): GitHub's AI pair programmer and coding agent across IDEs, GitHub.com and the Copilot CLI. Usage-based AI credits since June 1, 2026; Copilot Fusion model routing and code-review approvals GA since Oct 28. Pricing: Free $0/mo (2,000 completions/month, limited chat and agent); Student $0/mo (Verified students; Auto model selection only, no third-party agents); Pro $10/mo (1,500 AI credits/month (1,000 base + 500 flex)); Pro+ $39/mo (7,000 AI credits/month (3,900 base + 3,100 flex)); Max $100/mo (20,000 AI credits/month (10,000 base + 10,000 flex)). Source: https://docs.github.com/en/copilot/get-started/plans

## Starter prompt

```
Review PR #<number>. Check out the branch, run the tests, and read the diff. Post a review with: blocking issues, non-blocking suggestions, and questions. Don't push changes unless I say so.
```

## Config (terminal)

```bash
claude mcp add --transport http github https://api.githubcopilot.com/mcp/ \
  --header "Authorization: Bearer YOUR_GITHUB_PAT"
```

## Setup steps
1. Create a fine-grained GitHub PAT.
2. Add the GitHub MCP server (command above).
3. Run /mcp to confirm it connected.
4. Run the prompt on a real PR.

## Why this works
The agent can run the code, not just read the diff, which catches more real bugs.

## Watch out
A PAT gives the agent whatever scopes you grant. Start read-only.

## Related loadouts
- [Automatic PR code review](https://getagentloadout.com/loadouts/pr-code-review/)
- [Agent-driven data notebook](https://getagentloadout.com/loadouts/data-analysis-notebook/)
- [Agent-ready website: let AI agents read, compare and sign up on your site](https://getagentloadout.com/loadouts/agent-ready-website/)

Some links may be affiliate links; it never affects rankings. Rankings are never for sale.
