
CLAUDE.md Best Structure: The Section Order That Holds
A section-by-section layout for CLAUDE.md, derived from three real config files rather than a template, plus the length ceilings that keep each rule findable.
CATEGORY · 65 ARTICLES

A section-by-section layout for CLAUDE.md, derived from three real config files rather than a template, plus the length ceilings that keep each rule findable.

How Claude Code compaction works under the hood, before-and-after token measurements, prompt caching dynamics, and when to use /compact vs /clear.

Local Node.js process RSS vs remote LLM context memory, V8 heap benchmarks, child process spikes, and how to optimize Claude Code on RAM-constrained machines.

Does CLAUDE.md have a hard character or token limit? We debunk the 150k limit myth, test instruction compliance degradation, and show how to modularize large rule sets.

The median turn fills 96% of a 200k window and 46.9% exceed one outright. Context came back down exactly zero times in 89 sessions.

Across 20,285 billed turns the operator typed 47,296 tokens and the input side came to 4.25 billion. Shorter prompts move a rounding error.

Every assistant turn stamps its own version and its own token count, so the question is answerable retroactively. Across 17 versions the cost per turn fell 47% from its peak.

Ten --model values, one billed turn each. One alias bills as a different family, one resolves a version behind its own help text, and the default is not the alias.