You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since v0.85 (2025-06), aider adds Co-authored-by: aider (<model>) <aider@aider.chat> to every commit by default (aider/repo.py). The catalog already has an Aider entry, but its patterns expect either Aider <email> or Some Name (aider), so the model in parentheses stopped either one from matching. Both forbid and disclose let the trailer through.
The trailer is now matched by its address, the same way Cursor's agent is matched by cursoragent@cursor.com. This holds whatever model aider names.
Before vs after
Message:
feat: add flag
Co-authored-by: aider (gpt-4o) <aider@aider.chat>
Policy
Before (2.19.4)
After
forbid
passes, exit 0
CC013 ai-attribution check failed ==> Aider
disclose
passes, exit 0
CC014 ai-disclosure check failed, CC015 ai-co-author check failed Suggest: Use "Assisted-by: aider (gpt-4o)" in place of the co-author line
fix under disclose
nothing to fix
replaces the line with Assisted-by: aider (gpt-4o)
Changes
commit_check/ai_signatures_data.py: adds an ... <aider@aider.chat> identity (co-author and sign-off) to the Aider entry.
Tests: detection for two model names, the trailer's role, a 50k-space linear-time case, the disclose fix, and forbid in the validator.
Testing
pytest: 1454 pass. The one failure, test_load_config_file_permission_error, happens only because the tests ran as root locally. It is unrelated.
Coverage stays at 100% lines and branches, and ruff check / ruff format --check are clean.
Summary by CodeRabbit
Bug Fixes
Aider co-author and sign-off trailers are now recognized when they use the aider@aider.chat address, regardless of the display name.
Aider co-author disclosures retain the model name, and the forbid policy correctly rejects these attributions.
aider has added "Co-authored-by: aider (<model>) <aider@aider.chat>"
by default since v0.85. The model in parentheses kept the existing Aider
patterns from matching, so forbid and disclose let the trailer through.
Match the trailer by its address, as for Cursor's agent.
No actionable comments were generated in the recent review.
Walkthrough
The Aider signature patterns now match trailers with any display name followed by aider@aider.chat. Tests cover detection, co-author role identification, disclosure text, and rejection under the forbid policy.
Changes: Aider trailer recognition
Layer / File(s)
Summary
Match Aider trailer identities commit_check/ai_signatures_data.py, tests/ai_signatures_test.py
The Aider patterns match any display name followed by aider@aider.chat. Tests cover model names, co-author role detection, and a long-space input.
The Aider trailer recognition change is ready to merge with normal checks.
Pre-merge checks: 5
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title names the main change: Aider's default co-author trailer is now detected. The raw summary says the Aider signature registry now matches trailers containing aider@aider.chat regardless of the…
Docstring Coverage
Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the main change: Aider's default co-author trailer is now detected. The raw summary says the Aider signature registry now matches trailers containing aider@aider.chat regardless of the display name, and tests cover the default Co-authored-by format. The title uses the conventional fix(ai): prefix and stays concise. It is a PASS.
Full details: Docstring Coverage
Explanation
Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 4 files.
Finishing Touches
Generate docstrings
Commit to this branch
Create a new PR
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: defaults
Review profile: CHILL
Plan: Advanced
Run ID: 044f4f3a-2d42-4ec2-ae65-f67b87ee3b6c
Commits
Reviewing files that changed from the base of the PR and between 7eec0ac and 8479796.
Files selected for processing: 4
commit_check/ai_signatures_data.py
tests/ai_policy_test.py
tests/ai_signatures_test.py
tests/engine_test.py
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Since v0.85 (2025-06), aider adds
Co-authored-by: aider (<model>) <aider@aider.chat>to every commit by default (aider/repo.py). The catalog already has an Aider entry, but its patterns expect eitherAider <email>orSome Name (aider), so the model in parentheses stopped either one from matching. Bothforbidanddiscloselet the trailer through.The trailer is now matched by its address, the same way Cursor's agent is matched by
cursoragent@cursor.com. This holds whatever model aider names.Before vs after
Message:
forbidCC013 ai-attribution check failed ==> AiderdiscloseCC014 ai-disclosure check failed,CC015 ai-co-author check failedSuggest: Use "Assisted-by: aider (gpt-4o)" in place of the co-author linefixunderdiscloseAssisted-by: aider (gpt-4o)Changes
commit_check/ai_signatures_data.py: adds an... <aider@aider.chat>identity (co-author and sign-off) to the Aider entry.disclosefix, andforbidin the validator.Testing
pytest: 1454 pass. The one failure,test_load_config_file_permission_error, happens only because the tests ran as root locally. It is unrelated.ruff check/ruff format --checkare clean.Summary by CodeRabbit
aider@aider.chataddress, regardless of the display name.