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.
One binary. 11+9 Rust crates. 545 tests. Hand-written HNSW index. Three transport modes. Four providers, Ollama, Anthropic, OpenAI, Siemens. Zero API keys required to start. Mind remembers everything after the first session.