docs(claude-md): exempt markdown/config files from the 400-line cap#40
Merged
docs(claude-md): exempt markdown/config files from the 400-line cap#40
Conversation
The workspace 400-line file cap is targeted at code files (TS, Py, JS, shell, SQL) where large single files reduce maintainability. It was being applied to markdown planning documents, roadmaps, and reference catalogs where length tracks the substance being captured, not code complexity. Clarify the scope so long documentation files like ROADMAP-benchmarks.md (≈580 lines after Codex review round 8) are not flagged as process violations.
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.
Summary
Scope the 400-line file cap in
CLAUDE.mdto code files only. Markdownand other prose/config files (
.md,.mdx,.yaml,.json,.toml)are exempt — long planning documents, roadmaps, and reference catalogs
are allowed to grow as substance requires.
Why
The cap exists to prevent code files from becoming unmaintainable. It
was being applied to long-form documentation where length tracks the
substance being captured, not code complexity. Concrete trigger: the
benchmark-parity roadmap (
ROADMAP-benchmarks.mdin the research repo)sits at ~580 lines after multiple review-pass revisions; it shouldn't
flag as a process violation, and neither should similarly thorough
planning or reference docs.
One-line change, 1 file:
CLAUDE.mdline 36 — widens the rule's phrasing to name code-fileextensions and explicitly exempt prose/config extensions.
Test plan
🤖 Generated with Claude Code