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.
Direct 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.
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.
25.6 MB median RSS. 25 agents ran in parallel on a Core 2 Duo with 4 GB RAM. Hundreds on your machine. Zero cloud required on the Ollama path.
Requires Rust/cargo to build from source. Linux and macOS today, Windows not yet supported. Pre-1.0, public beta. Pricing TBD.