feat: add AI agent branch prefixes from conventional branch spec v1.1.0 - #438
Conversation
Add ai, claude, codex, copilot, and cursor to DEFAULT_BRANCH_TYPES so branches created by AI coding agents are recognized as valid by default. Closes #435
✅ Deploy Preview for commit-check ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Warning Review limit reached
More reviews will be available in 51 minutes and 10 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the 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 credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate. 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, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthrough
ChangesAI Agent Branch Type Support
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Dogfood the new AI agent branch support (conventional branch spec v1.1.0) in the project's own config so CI passes on claude/, codex/, cursor/, ai/ branches before the default list is updated in the released package.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #438 +/- ##
=======================================
Coverage 95.97% 95.97%
=======================================
Files 10 10
Lines 1167 1167
=======================================
Hits 1120 1120
Misses 47 47 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
AI agent prefixes are now part of DEFAULT_BRANCH_TYPES, so the explicit allow_branch_types list in cchk.toml is no longer needed.
Merging this PR will not alter performance
Performance Changes
Comparing Footnotes
|
The pre-commit hook uses the installed (released) version of commit-check, which does not yet include AI agent prefixes in DEFAULT_BRANCH_TYPES. Keep an explicit allow_branch_types until this PR is merged and released.
|



Summary
Closes #435
The conventional branch spec v1.1.0 introduced five new branch prefixes for AI coding agents. This PR adds them to
DEFAULT_BRANCH_TYPESso they are recognized as valid out of the box.New prefixes added:
ai/— generic AI agentclaude/— Anthropic Claude Codecodex/— OpenAI Codexcopilot/— GitHub Copilotcursor/— Cursor IDEExample valid branches after this change:
Changes
commit_check/__init__.py: Add 5 AI agent prefixes toDEFAULT_BRANCH_TYPEStests/rule_builder_test.py: Addtest_ai_agent_branch_types_in_defaultto verify all new prefixes are present in defaults and that concrete AI agent branch names pass the regexTest plan
rule_builder_test.pypassGenerated by Claude Code
Summary by CodeRabbit
New Features
Tests