{
  "id": "terminal-pr-review",
  "title": "Review PRs from your terminal",
  "category": "code-review",
  "job": "Have your coding agent review, comment on and fix PRs on GitHub.",
  "difficulty": "Intermediate",
  "tools": [
    {
      "id": "claude-code",
      "name": "Claude Code",
      "url": "https://claude.com/product/claude-code",
      "kind": "coding-agent",
      "summary": "Anthropic's agentic coding tool for the terminal and IDEs. Included in paid Claude plans.",
      "open_source": false,
      "pricing": {
        "plans": [
          {
            "name": "Pro",
            "usd_month": 20,
            "note": "$17/mo billed yearly; 5-hour and weekly usage limits"
          },
          {
            "name": "Max 5x",
            "usd_month": 100,
            "note": "5x Pro usage per session"
          },
          {
            "name": "Max 20x",
            "usd_month": 200,
            "note": "20x Pro usage per session"
          }
        ],
        "source": "https://claude.com/pricing?mode=code",
        "status": "verified",
        "notes": "Free Claude plan does not include Claude Code."
      },
      "last_checked": "2026-10-21"
    },
    {
      "id": "copilot",
      "name": "GitHub Copilot",
      "url": "https://github.com/features/copilot",
      "kind": "ide",
      "summary": "GitHub's AI pair programmer and coding agent across IDEs, GitHub.com and the Copilot CLI. Usage-based AI credits since June 1, 2026.",
      "open_source": false,
      "pricing": {
        "plans": [
          {
            "name": "Free",
            "usd_month": 0,
            "note": "2,000 completions/month, limited chat and agent"
          },
          {
            "name": "Pro",
            "usd_month": 10,
            "note": "1,500 AI credits/month (1,000 base + 500 flex)"
          },
          {
            "name": "Pro+",
            "usd_month": 39,
            "note": "7,000 AI credits/month"
          },
          {
            "name": "Max",
            "usd_month": 100,
            "note": "20,000 AI credits/month"
          }
        ],
        "source": "https://docs.github.com/en/copilot/get-started/plans",
        "status": "verified",
        "notes": "Code completions don't consume AI credits. 1 AI credit = $0.01."
      },
      "last_checked": "2026-10-21"
    }
  ],
  "model": "Claude Opus 5.5 for review depth",
  "mcp_servers": [
    "GitHub MCP (https://api.githubcopilot.com/mcp/)"
  ],
  "config": {
    "filename": "terminal",
    "language": "bash",
    "code": "claude mcp add --transport http github https://api.githubcopilot.com/mcp/ \\\n  --header \"Authorization: Bearer YOUR_GITHUB_PAT\""
  },
  "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.",
  "monthly_cost": {
    "min_usd": 20,
    "max_usd": 20,
    "note": "Uses your Claude plan (Pro $20). Use a fine-grained GitHub token limited to the repos you need."
  },
  "steps": [
    "Create a fine-grained GitHub PAT.",
    "Add the GitHub MCP server (command above).",
    "Run /mcp to confirm it connected.",
    "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.",
  "unverified": [],
  "tested": false,
  "last_checked": "2026-10-21"
}