How to Write a CLAUDE.md: The File with 187k GitHub Stars
PawelHuryn · x · 2026-07-04
A deep dive into CLAUDE.md best practices. The author points out that since CLAUDE.md is loaded every turn, each line acts as a 'rent' paid per request. Therefore, it should focus on project-specific, hard-learned rules (like user-initiated version upgrades or three testing categories) rather than repeating default model behaviors. He emphasizes that matching existing code styles is already a default behavior for Claude Code, hardcoded into the Opus 4.8 system prompt.
More from coding & agent
- Bugbot rejects an MCP permission flag because it would break path-scoped isolation — zeeg · 2026-07-27
- One GPT-5.6 agent is guarding a Blink security system while another makes a parody rap album — repligate · 2026-07-27
- An agent got unblocked by reusing a logged-in browser, not stealth tricks — armanidev_ · 2026-07-27
- Paper argues graph topology can become the core operating system for AI agents — theomitsa · 2026-07-27
- Claude Code desktop adds UI markup feedback for smoother visual editing — EricBuess · 2026-07-27
- Anthropic says Claude Code can drop 80% of its system prompt with no coding loss — krishnan · 2026-07-27