docs: rewrite the CLAUDE.md comment rule with explicit exceptions - #36301
Merged
mateo-berri merged 5 commits intoAug 8, 2026
Merged
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Contributor
Greptile SummaryThis PR rewrites the repository’s agent guidance on code comments, replacing the blanket prohibition with explicit exceptions and rationale
Confidence Score: 5/5The PR appears safe to merge No blocking failure remains
|
| Filename | Overview |
|---|---|
| CLAUDE.md | Clarifies the comment policy and documents narrowly described exceptions without introducing an eligible follow-up defect |
Reviews (5): Last reviewed commit: "chore: mention AI slop reason" | Re-trigger Greptile
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Author
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Author
Contributor
Contributor
Author
mateo-berri
enabled auto-merge
August 8, 2026 21:32
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
TLDR
Problem this solves:
How it solves it:
User Flow
Docs-only change to the agent guidelines, so there's no end user flow
Relevant issues
Linear ticket
Pre-Submission checklist
@greptileaito re-request a review after pushing changes)Tests aren't applicable here: the only change is prose in CLAUDE.md
Delays in PR merge?
If you're seeing a delay in your PR being merged, ping the LiteLLM Team on Slack (#pr-review).
Screenshots / Proof of Fix
Prose-only edit to CLAUDE.md, nothing to run or capture
Type
📖 Documentation
Changes
CLAUDE.md now opens with the comment rule spelled out as a short list of allowed cases: concise explanations of genuinely complex business logic, comments tools read and act on (
.git-blame-ignore-revsentries, lint or type checker suppressions like# mutable-okfor truly unavoidable violations), and TODO or FIXME markers that carry a strong, concise reason or link a follow-up issue. It closes with the reasoning, that the rule exists to keep out the excessive and verbose comments AI writes, and that comments duplicate logic in a second place and make code harder to change, so clear code beats explaining unclear codeFinal Attestation
Link to Devin session: https://app.devin.ai/sessions/9e264d2b82534afcb7be4d562cfca696
Requested by: @mateo-berri