impeccable
Design guidance for AI coding agents. 1 skill, 24 commands, live browser iteration, and 61 deterministic detector rules for AI-generated frontend design.
Manage GitHub PR review comments from the terminal and from AI coding agents. PR review bots (Copilot, Cursor Bugbot, CodeRabbit, etc.) leave inline comments on your pull requests.
> /plugin marketplace add pbakaus/agent-reviews
Repo: pbakaus/agent-reviews
What's inside
Manage GitHub PR review comments from the terminal and from AI coding agents.
PR review bots (Copilot, Cursor Bugbot, CodeRabbit, etc.) leave inline comments on your pull requests. agent-reviews gives you a CLI to list, filter, reply to, and watch those comments, plus agent skills that automate the entire triage-fix-reply loop.
gh CLI is fragile for review comments. Agents frequently get the syntax wrong, fail to paginate, and can't reliably detect whether a comment has been replied to. agent-reviews provides a single, purpose-built interface that handles all of this correctly.
Bot reviews create a doom loop. You fix one round of findings, push, and new comments appear. Fix those, push again, more comments. This cycle can eat hours. The included skills solve this with an integrated watcher that keeps fixing and replying until the bots go quiet.
Works in cloud environments. Most solutions rely on local tooling that isn't available in cloud or remote agent environments. agent-reviews works everywhere, so you can kick off a session, let the agent resolve all findings autonomously, and come back to a clean PR.
npm install -g agent-reviews
Three skills are available, each as a slash command (no npm install required):
| Skill | What it resolves |
|---|---|
resolve-reviews | All comments (human + bot) |
resolve-agent-reviews | Bot comments only (Copilot, Cursor, etc.) |
resolve-human-reviews | Human comments only |
Works with any agent that supports Agent Skills (Claude Code, Cursor, Codex, etc.):
npx skills add pbakaus/agent-reviews@resolve-agent-reviews
Replace resolve-agent-reviews with whichever skill you want. Skills use npx agent-reviews at runtime, so the CLI is fetched automatically.
You can also use both: install the CLI globally for direct terminal use, and a skill for the agent workflow.
The simplest method is the GitHub CLI. If you're logged in with gh auth login, agent-reviews picks up the token automatically. No configuration needed.
For cloud/remote environments or HTTPS proxy setups, set GITHUB_TOKEN or GH_TOKEN directly. agent-reviews includes undici ProxyAgent support and will route requests through HTTPS_PROXY automatically when set.
Resolution order (first match wins):
GITHUB_TOKEN environment variableGH_TOKEN environment variable.env.local in the repo rootgh auth token (GitHub CLI)Branch discovery keeps the head repository separate from the PR's base repository. It uses the branch push remote, remote.pushDefault, tracking remote, or origin (in that order), and looks for the current branch in configured GitHub repositories and the fork's parent/source repositories. The selected remote's push URL determines the head repository, including when its fetch URL points upstream. An upstream remote is not required. A single GitHub remote with another name also works.
GH_REPO=organisation/project restricts the target repository without changing the head owner. Use GH_REPO=organisation/project agent-reviews --pr 123 to select a PR explicitly, including from detached HEAD. Malformed GH_REPO values fail explicitly. If multiple open PRs match, or a matching PR has a deleted/inaccessible head repository that cannot be verified, the CLI asks for an explicit target instead of choosing one. Discovery uses the GitHub API and works with token authentication without requiring gh.
Set GITHUB_API_URL to point agent-reviews at a GitHub Enterprise host or any API-compatible server (useful for testing, recording, or routing through a local mediator). Defaults to https://api.github.com.
# GitHub Enterprise Server
GITHUB_API_URL=https://github.example.com/api/v3 agent-reviews
# Local API-compatible server
GITHUB_API_URL=http://127.0.0.1:8080 agent-reviews
GraphQL endpoint resolution: agent-reviews uses ${GITHUB_API_URL}/graphql by default. For GitHub Enterprise Server, where REST lives under /api/v3 and GraphQL under /api/graphql on the same origin, the trailing /api/v3 is rewritten to /api/graphql automatically. Set GITHUB_GRAPHQL_URL directly if you need full control over the GraphQL endpoint.
# List all review comments on the current branch's PR
agent-reviews
# Only unresolved comments
agent-reviews --unresolved
# Only unanswered bot comments
agent-reviews --unanswered --bots-only
# Full detail for a specific comment (diff hunk + replies)
agent-reviews --detail 12345678
# Reply to a comment
agent-reviews --reply 12345678 "Fixed in abc1234"
agent-reviews --reply 12345678 --body-file body.md
# JSON output for scripting / AI agents
agent-reviews --json
# Watch for new comments (polls every 30s, exits after 10 min idle)
agent-reviews --watch --bots-only
# Target a specific PR (otherwise auto-detects from branch)
agent-reviews --pr 42
Unknown options, unexpected arguments, and invalid numeric values fail before authentication or network requests. To pass an inline reply starting with a dash, put options first and use agent-reviews --reply 12345 -- "- Fixed the issue". Everything after -- is literal text.
| Flag | Short | Description |
|---|---|---|
--unresolved | -u | Only unresolved/pending comments |
--unanswered | -a | Only comments without any replies |
--reply <id> "msg" | -r | Reply to a comment |
--body-file <path> | Read reply text from a UTF-8 file instead of a positional message | |
--resolve | Resolve the review thread after replying (use with --reply) | |
--detail <id> | -d | Full detail for a comment |
--pr <number> | -p | Target a specific PR |
--json | -j | JSON output |
--bots-only | -b | Only bot comments |
--humans-only | -H | Only human comments |
--ignore-author <login> | Exclude an author from listing and watching; repeat for multiple authors | |
--expanded | -e | Show full detail for each listed comment |
--watch | -w | Poll for new comments |
--interval <sec> | -i | Poll interval in seconds (default: 30) |
--timeout <sec> | Inactivity timeout in seconds (default: 600) |
To hide workflow status comments, use agent-reviews --ignore-author 'github-actions[bot]'. Repeat the flag for multiple authors, including with --watch. Matching is case-insensitive and uses the full GitHub login, including [bot] when present. Excluded authors' top-level findings are hidden, but their replies remain visible as context in other authors' threads. Explicit --detail lookups and replies are unaffected. No authors are excluded by default.
The skills automate the full PR review resolution workflow:
Fixed in {commit}Won't fix: {reason}agent-reviews fetches three types of GitHub PR comments:
| Type | Label | Description |
|---|---|---|
| Review comment | CODE | Inline comment attached to a specific line |
| Issue comment | COMMENT | General PR-level comment |
| Review | REVIEW | Review summary (approved, changes requested) |
Bot review bodies (REVIEW type) are always filtered out since actionable findings come through as inline comments. Additionally, these bot issue comments are filtered:
| Bot | What's filtered |
|---|---|
| Vercel | Deployment status ([vc]:...) |
| Supabase | Branch status ([supa]:...) |
| Cursor Bugbot | Review summary ("Cursor Bugbot has reviewed your changes...") |
| Copilot | PR review summary ("Pull request overview") |
| CodeRabbit | Walkthrough, summary, and "review skipped" comments |
| Sourcery | Reviewer's guide and PR summary |
| Codacy | Analysis summary and coverage summary |
| SonarCloud | Quality Gate pass/fail summary |
| Gemini Code Assist | "Summary of Changes" issue comment |
Each comment displays its reply status:
| Status | Meaning |
|---|---|
no reply | No one has replied |
replied | A human has replied |
bot replied | Only bots have replied |
Polls the GitHub API at a configurable interval and reports new comments as they appear. Outputs both formatted text and JSON for AI agent consumption. Exits automatically after a configurable inactivity timeout (default: 10 minutes).
Reply files preserve Markdown and newlines exactly. For multiline or complex replies, write the text to a file and pass --body-file body.md to avoid shell quoting and command substitution. Both absolute and relative paths are supported; relative paths are resolved from the current directory. Prefer uniquely named temporary files outside the repository so later commits cannot accidentally include reply text. Use either a positional message or --body-file, not both; empty or whitespace-only replies are rejected. The flag works with --resolve and --json.
--body-file, without shell command substitution.-- for replies beginning with a dash.--ignore-author.Development tests now require Node.js 22.12+, 24, or 26+ as supported by Vitest 5. CLI runtime support remains Node.js 18+.
GITHUB_API_URL env var (also works for local API-compatible servers used in testing). REST and GraphQL endpoints both honor it, with GHES /api/v3 automatically rewritten to /api/graphql. Optional GITHUB_GRAPHQL_URL for unusual setups.## Summary of Changes issue comment is now dropped, while inline severity-badged findings are preserved.Three skills instead of one. The single agent-reviews skill has been split into three, each tailored for different workflows:
resolve-reviews resolves all comments (human + bot)resolve-agent-reviews resolves bot comments onlyresolve-human-reviews resolves human comments onlyThread resolution. The new --resolve flag marks GitHub review threads as resolved after replying. Uses the GraphQL resolveReviewThread mutation. Works with --reply in any argument order.
Expanded bot support. Added detection and meta-comment filtering for CodeRabbit, Sourcery, Codacy, SonarCloud/SonarQube Cloud, and Copilot PR reviewer, in addition to the existing Cursor Bugbot, Vercel, and Supabase filters.
Agent-harness universal. Skills now work with any agent that supports Agent Skills (Claude Code, Cursor, Codex, etc.), not just Claude Code.
Design guidance for AI coding agents. 1 skill, 24 commands, live browser iteration, and 61 deterministic detector rules for AI-generated frontend design.
FAQ
agent-reviews is a Claude Code plugin with 3 hand-picked skills for code review work, indexed on Flowy. Install it with the command on its page. It includes resolve-agent-reviews, resolve-human-reviews, resolve-reviews. Its skills do not fire on their own yet. Request auto-invocation to have Flowy route them as you prompt. Free and open source.
Is this plugin yours?
Claim it with GitHubSubmit a pluginPromote it