Skip to content

chore: make CLAUDE.md rules more concise - #31892

Merged
ryan-crabbe-berri merged 2 commits into
litellm_internal_stagingfrom
litellm_make_claude_md_more_concise
Jul 1, 2026
Merged

chore: make CLAUDE.md rules more concise#31892
ryan-crabbe-berri merged 2 commits into
litellm_internal_stagingfrom
litellm_make_claude_md_more_concise

Conversation

@mateo-berri

@mateo-berri mateo-berri commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Cut out unneeded bloat in the CLAUDE.md

@mateo-berri
mateo-berri requested a review from tin-berri July 1, 2026 16:33
@greptile-apps

greptile-apps Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR condenses two verbose instructions in CLAUDE.md — the make pre-commit and make lint-budget-update guidance — from multi-sentence explanations into shorter, action-focused directives.

  • The make pre-commit instruction is trimmed to its essential sequence (stage → run → fix errors), dropping the detailed explanation of how unstaged edits skew CI results.
  • The make lint-budget-update instruction is similarly shortened, retaining the stage-first requirement but dropping the warning that staging unfixed violations over-tightens budgets and causes CI failures.

Confidence Score: 5/5

Documentation-only change with no effect on production code; safe to merge.

The change is limited to CLAUDE.md and only touches developer-facing instructions. The core staging-first requirement is preserved in both simplified paragraphs. The one nuance that was removed (the partial-staging/over-tightening footgun) is an edge case that would at worst cause a local CI mismatch rather than production impact.

No files require special attention.

Important Files Changed

Filename Overview
CLAUDE.md Simplified two developer workflow instructions; the core staging requirement is preserved, but the explanation of why partial staging causes budget over-tightening is removed.

Reviews (1): Last reviewed commit: "chore: make CLAUDE.md rules more concise" | Re-trigger Greptile

Comment thread CLAUDE.md Outdated
Don't hesitate to use values in .env to get needed API keys and other secrets, as long as you never add them to conversation history, commit them, or include them in GitHub issues / PRs

Run tests before you commit. Also, run `make pre-commit` right before each commit, which generates types (as needed) and formats/lints your code. Any errors found must be fixed. For `make pre-commit` to work properly you must stage your changes first (git add): it reports CI red or green based on what would happen if you committed your staged changes, but it runs the linters over the working tree, so any unstaged edits to tracked files or untracked files are folded into the result and will skew it away from what CI (which only sees your commit) would report
Run tests before you commit. Also, after you stage your changes and before you commit, run `make pre-commit`, which generates types (as needed) and formats/lints your code. Any errors found must be fixed

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Lost "partial-staging" warning for make lint-budget-update

The removed text explained a subtle footgun: if you have more linting fixes in the working tree than you actually plan to commit, make lint-budget-update will tighten the budget based on the full working-tree count, but CI will only see the committed subset — causing it to go red. The new text says "stage your changes" (which implies staging everything you have), but omits the instruction to stage only the fixes you're committing. An agent or developer with half-committed fixes could reliably fail CI without understanding why.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

@codecov

codecov Bot commented Jul 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@ryan-crabbe-berri
ryan-crabbe-berri merged commit 700afbb into litellm_internal_staging Jul 1, 2026
122 checks passed
@ryan-crabbe-berri
ryan-crabbe-berri deleted the litellm_make_claude_md_more_concise branch July 1, 2026 23:26
duanhongyi pushed a commit to duanhongyi/litellm that referenced this pull request Jul 2, 2026
Rodrigo-Palma pushed a commit to Rodrigo-Palma/litellm that referenced this pull request Jul 3, 2026
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.

2 participants