chore(docs): slim CLAUDE.md from 60KB to 16KB#20
Conversation
Each 'auto-load' of CLAUDE.md was burning ~17k tokens and triggering Claude Code's 'CLAUDE.md too large' warning. Replaces the long feature-by-feature bullet wall with three tighter sections: - Cross-cutting rules (the ones that bite if ignored): Tauri command convention, profile-scoped pool, persistence pattern, events, audio callback alloc-free contract, migration immutability, multi-artist GROUP_CONCAT, single-writer SQLite, Windows file-write safety, modal a11y, offline mode, player-bar overflow-first rule, etc. - Feature catalogue: one-liner per feature grouped by area, each pointing to the deeper docs/features/*.md page that already exists. - Conventions + Language: trimmed but kept the load-bearing rules (commit subject case, release-please triple-manifest bump, 17-locale propagation). Detail dropped from CLAUDE.md is preserved in docs/features/*.md where it already lived in duplicate.
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthrough
ChangesRepository guidance update
🎯 1 (Trivial) | ⏱️ ~3 minutes
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning Billing warning: we have not been able to collect payment for this subscription for more than 72 hours. Please update the payment method or pay any pending invoices in Billing to avoid service interruption. Comment |
Summary
Each `bun run claude` session was burning ~17k tokens just loading CLAUDE.md and triggering the `CLAUDE.md too large (53k tokens, should be < 40k)` warning. This PR cuts the file to ~14k tokens.
The trim is purely structural — every load-bearing rule (the "if you ignore this you break the codebase" stuff) is preserved or rephrased more tightly. The detailed feature notes were already duplicated in `docs/features/*.md`; CLAUDE.md now points there instead of carrying its own copy.
Three sections kept verbatim or tightened:
Cross-cutting rules — the contract every conversation needs:
Feature catalogue — one-liner per feature with pointer to the deeper `docs/features/*.md`
Conventions — trimmed but kept the release-please triple-manifest rule, lowercase commit subject (commitlint), and 17-locale key propagation
Test plan
Summary by CodeRabbit