How long should CLAUDE.md be?
As short as honesty allows: only non-inferable constraints. If it exceeds a page, move workflows to on-demand skills and history to memory.
Glossary · CLAUDE.md
Claude Code's standing orders.
The short answer
CLAUDE.md is the auto-loaded instruction file Claude Code reads at session start and preserves across compaction: project rules, architecture notes, commands.
Treat it like code (versioned, reviewed, tested by observing behavior shifts) and keep it short, since bloated files get ignored and every line re-bills each turn. Durable facts live here; accumulating session knowledge belongs in a memory layer, not a growing markdown file.
CLAUDE.md, working
The same request twice: first the agent explores, later the Mind serves what earlier sessions settled.
In Anvaya
Questions
As short as honesty allows: only non-inferable constraints. If it exceeds a page, move workflows to on-demand skills and history to memory.
Attention dilution plus lost-in-the-middle: rules sandwiched between file dumps read as background noise. Front-load, repeat critical constraints at the end.
Yes, auto-loaded files persist across compaction, unlike one-off prompts. Another reason to keep them curated.
23.4 MB median own-process memory, measured across 1030 runs (994 verified) and fourteen harnesses. One command installs the harness and the Mind together. Nothing leaves your machine on the Ollama path.
Developer beta. macOS on Apple Silicon and Linux on x86_64 or arm64. Memory figure: --no-mind, macOS/ARM, n=3 per cell. Pre-1.0, pricing not set.