Skip to content

PR Commands

Comment on any PR to interact with ClearPR:

CommandWhat it does
@clearpr reviewTrigger a manual review
@clearpr diffPost the clean semantic diff as a comment
@clearpr ignore [pattern]Ignore a file pattern for this PR
@clearpr configShow active config for this repo

Commands are case-insensitive. The command word must immediately follow the @clearpr mention.

@clearpr review

Triggers a manual review, same as automatic review on PR open. Useful when:

  • You've pushed fixes and want a re-review
  • The automatic review was skipped (e.g., diff too large)

Manual reviews get higher priority in the queue.

@clearpr diff

Posts the semantic diff as a PR comment — shows only the lines that changed in behavior, with all formatting noise removed. No AI review is run.

The diff comment includes:

  • Raw → semantic line counts with noise-reduction percentage
  • Per-file breakdown with strategy used (AST or whitespace fallback)
  • Any active ignore patterns that were applied

Files matching active ignore patterns are excluded from the diff.

@clearpr ignore [pattern]

Adds a file glob pattern to the ignore list for this PR only. Example:

@clearpr ignore **/*.generated.ts
@clearpr ignore vendor/**

Ignored files are excluded from both the semantic diff and AI review.

Behavior:

  • Patterns are stored in Redis with a 30-day TTL (auto-cleaned after the PR goes stale)
  • Maximum 50 patterns per PR to prevent unbounded growth
  • Supports standard glob syntax: * (single segment), ** (recursive), ? (single char)
  • ClearPR confirms the addition with a comment listing all active patterns

@clearpr config

Posts a comment showing the active configuration:

FieldDescription
LLM providerActive provider and model (e.g., anthropic / claude-sonnet-4-20250514)
Max semantic diff linesReview is skipped if the semantic diff exceeds this
Max file sizeFiles larger than this skip AST parsing and use whitespace fallback
Review concurrencyMax parallel review jobs
Memory similarity thresholdMinimum cosine similarity for past feedback matches
GuidelinesWhether guidelines were found in the repo (claude.md, agent.md, or .reviewconfig)
Ignore patternsPer-PR ignore patterns currently active (from @clearpr ignore)

Released under the MIT License.