CLAUDE.md

Simple Definition

CLAUDE.md is a project instruction file used with Claude Code to store rules, context, coding preferences, and repeated corrections for future AI coding sessions.

Think of it as a memory file for Claude Code that tells the AI how to work inside your project.

Why It Matters

Without project memory, you re-explain the same rules every session. CLAUDE.md lets you write a rule once so future sessions follow it automatically, turning repeated corrections into lasting project knowledge.

Example

If Claude keeps changing global styles by mistake, you add a rule to CLAUDE.md telling it not to edit global CSS unless explicitly asked. Future sessions then respect that rule on their own.

Continue learning

Explore related guides, tools, workflows, and prompts that help you go deeper into this topic.

See AI terms in action

Browse practical AI workflows that use the concepts in this glossary.

Last updated: