Repository navigation
docs(bc-cmrs): move CLAUDE.md's domain rules into path-scoped .claude/rules files - #472
Merged
gitrgoliveira merged 2 commits intoOct 13, 2026
Merged
Conversation
…/rules files CLAUDE.md goes from 240 KB to 69 KB; a fresh session's first call drops from 135k to 72k tokens. The rulings move verbatim into seven files that Claude Code loads only when a matching file is read or edited, with a pointer table in CLAUDE.md and AGENTS.md/GEMINI.md. Subagents now default to Sonnet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
gitrgoliveira
deleted the
worktree-bridge-cse_01WKu23VAJUZQ91ZA9nxeWns
branch
October 13, 2026 07:05
Merged
15 tasks done
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
.claude/rules/. Claude Code loads each file only when a session reads or edits code in that file's area..claude/rules/, since only Claude Code loads those files on its own.model: "opus"for implementers and the final review round.Why
Bead bc-cmrs: CLAUDE.md was about 60k tokens, and every model call of every session and subagent loaded it. The bead suggested
docs/agents/or.claude/rules/. The rules went to.claude/rules/, notdocs/, becausedocs/is the public MkDocs site and these rules are full of bead ids and internal references. A plain@importwould not have helped, because Claude Code loads imports at launch.Files changed
CLAUDE.md.claude/rules/draw-and-seeding.md.claude/rules/match-results-and-marks.md.claude/rules/match-writes.md.claude/rules/teams-and-lineups.md.claude/rules/eligibility-and-queue.md.claude/rules/store.md.claude/rules/workbook.mdAGENTS.md,GEMINI.md.claude/rules/Test plan
make go/testpasses (lint + security scan + tests)TestNoDefaultWin*passes with the new files tracked.web-mobile/orweb/changedocs/: not applicable, no user-facing changeinternal/engine/match_merge.gountil.claude/rules/match-writes.mdhas been read; checked in a live session and with fake hook inputsCloses bc-cmrs
🤖 Generated with Claude Code