What is CLAUDE.md?
CLAUDE.md is a markdown file that holds persistent instructions for Claude Code, read at the start of every session for a project, a user or an organization.
Also written: Claude memory file, CLAUDE.local.md
Explained
Claude Code starts every session with an empty context window, and CLAUDE.md files are one of two mechanisms that carry knowledge forward. The other is auto memory, where Claude writes its own notes. CLAUDE.md is the one a person writes, and it is meant for build commands, coding standards, project layout and other rules that should hold in every session.
Files can live at several scopes: a managed policy location for organization-wide rules, a user file in the home directory's .claude folder, a project file in the repository that is shared through version control, and a CLAUDE.local.md for personal project preferences that are kept out of git. Files in the directory tree above the working directory load at launch, and those in subdirectories load on demand. A file can pull in others with an at-sign import syntax.
The docs say Claude treats these files as context, not enforced configuration, so a rule can be missed. They suggest keeping each file under about 200 lines, writing instructions concrete enough to verify, and using a PreToolUse hook when an action must be blocked regardless of what the model decides. The docs also note that when a repository has no CLAUDE.md, Claude Code reads its AGENTS.md as the project instructions.
Primary source
How Claude remembers your project (code.claude.com), read Oct 26, 2026
This entry paraphrases the page above. Sources change; check it for the current wording.
Listings that use this
The 5 top-ranked listings tagged for CLAUDE.md. Rank weighs adoption, freshness, documentation and publisher identity; how we rank and grade. Money never changes the order.
- 0.888score
caveman-compress
JuliusBrussee
Compress a memory file such as CLAUDE.md or a todo list into caveman format to save input tokens, keeping a readable backup.
SkillAFreshness: A★ 114.8KClaude Code +9 - 0.858score
context-engineering-collection
muratcankoylan
A comprehensive collection of Agent Skills for context engineering, harness engineering, multi-agent architectures, and production agent systems.
SkillAFreshness: A★ 18.2KClaude Code +9 - 0.842score
translate-skill
vinvcn
将 mattpocock/skills 的内容翻译、刷新或复核到简体中文本地化仓库 vinvcn/mattpocock-skills-zh-CN 时使用这个项目级 skill。适用于 skill files、README content、CLAUDE.md、GLOSSARY.md、docs,以及其他需要保留行为关键…
SkillAFreshness: A★ 5.2KClaude Code +9 - 0.835score
writing-for-agents
vinvcn
为 agent 编写文档。适用于创建或编辑 skills,或修改 AGENTS.md 或 CLAUDE.md 时。
SkillAFreshness: A★ 5.2KClaude Code +9 - 0.822score
check-context
zylos-ai
Accurately check current context window and token usage.
SkillAFreshness: A★ 1.2KClaude Code +9
Related
Cite this page
What is CLAUDE.md?. Agent Mart. https://agentmart.dev/glossary/claude-md (last updated 2026-10-26)
Written Oct 26, 2026, updated Oct 26, 2026. All glossary terms