Skip to content

feat: add PR-Agent setup as comment-only code reviewer#30

Merged
lyssieth merged 2 commits into
mainfrom
lyssieth/pr-agent-setup
Jul 23, 2026
Merged

feat: add PR-Agent setup as comment-only code reviewer#30
lyssieth merged 2 commits into
mainfrom
lyssieth/pr-agent-setup

Conversation

@lyssieth

Copy link
Copy Markdown
Contributor

Sets up self-hosted PR-Agent as a GitHub Action.

Workflow (.github/workflows/pr-agent.yml)

  • Triggers only on issue_comment — no auto-review on PR open/update
  • Scoped to lyssieth as the only allowed commenter

Configuration (.pr_agent.toml)

  • Model: openrouter/meituan/longcat-2.0 via OpenRouter
  • Fallback: openrouter/deepseek/deepseek-v4-flash
  • Output cap: 120K tokens, token limits bumped to 1M
  • Custom review instructions flagging security-critical subsystems
  • Context files: AGENTS.md + CONTRIBUTING.md injected into prompts

Secrets required (already set):

  • OPENAI_KEY — OpenRouter API key
  • OPENAI_API_BASEhttps://openrouter.ai/api/v1

Usage: Comment /agentic_review, /agentic_describe, or /ask on any PR.

@coderabbitai

coderabbitai Bot commented Jul 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@lyssieth, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 33 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 707df200-83ed-4327-9914-7c44d13a3b3f

📥 Commits

Reviewing files that changed from the base of the PR and between 905b7c8 and 1723722.

📒 Files selected for processing (2)
  • .github/workflows/pr-agent.yml
  • .pr_agent.toml

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

lyssieth added 2 commits July 23, 2026 06:59
- Workflow triggers on issue_comment, only responds to lyssieth
- .pr_agent.toml: OpenRouter (meituan/longcat-2.0), 1M context, 120K output cap
- Custom review instructions for security-critical subsystems
- Pulls AGENTS.md + CONTRIBUTING.md for project context
@lyssieth
lyssieth force-pushed the lyssieth/pr-agent-setup branch from 1723722 to a12c2cf Compare July 23, 2026 03:59
@lyssieth
lyssieth merged commit 6cf5487 into main Jul 23, 2026
4 checks passed
@lyssieth
lyssieth deleted the lyssieth/pr-agent-setup branch July 23, 2026 03:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant