Skip to content

feat(tools): cap mention attachment expansion#202

Open
martian56 wants to merge 1 commit into
mainfrom
feat-mention-attachment-budget
Open

feat(tools): cap mention attachment expansion#202
martian56 wants to merge 1 commit into
mainfrom
feat-mention-attachment-budget

Conversation

@martian56

Copy link
Copy Markdown
Owner

Fixes #169.

Summary:

  • Add a total character budget for file mention attachments.
  • Add a maximum attached-file count for one prompt.
  • Add an omitted-files notice that tells the model to use read_file when more content is needed.
  • Keep normal single-file mention expansion unchanged.
  • Bump the patch version and update the changelog.

Checks:

  • rvpm test
  • rvpm build
  • rvpm fmt --check

@martian56 martian56 added enhancement New feature or request memory Memory and instructions tools Agent tools ux User experience labels Jul 9, 2026
@coderabbitai

coderabbitai Bot commented Jul 9, 2026

Copy link
Copy Markdown

Warning

Review limit reached

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

Next review available in: 24 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: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 89221626-deca-4d74-b275-cdee8972e2de

📥 Commits

Reviewing files that changed from the base of the PR and between fd23b86 and 0641b4c.

📒 Files selected for processing (4)
  • CHANGELOG.md
  • rv.toml
  • src/tools/mentions.rv
  • src/tools/mentions_test.rv
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat-mention-attachment-budget

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request memory Memory and instructions tools Agent tools ux User experience

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a total budget for @ file mention attachments

1 participant