CLAUDE.md
A configuration file that provides project-specific context and instructions to Claude Code and other Claude-based agents.
What is CLAUDE.md?
CLAUDE.md is a configuration file that provides project-specific context and instructions to Claude Code and other Claude-based AI agents. Placed at the root of a project directory, it tells the agent how to work within that specific codebase.
Think of CLAUDE.md as project onboarding for AI:
- Explains the project structure
- Defines coding conventions
- Lists key commands
- Sets behavioral expectations
When Claude Code enters a directory with a CLAUDE.md file, it reads and follows those instructions throughout the session.
Why CLAUDE.md matters
Consistency Without CLAUDE.md, you'd repeat the same context every session. With CLAUDE.md, project context is always available.
Team alignment Every team member's Claude Code sessions follow the same guidelines.
Reduced errors By specifying patterns and anti-patterns, CLAUDE.md helps the AI avoid common mistakes.
Faster onboarding New AI sessions start productive immediately—no warm-up period explaining project basics.
Anatomy of a CLAUDE.md file
A well-structured CLAUDE.md includes:
- Overview: Tech stack and project description
- Key Commands: Common development commands
- Project Structure: Directory layout explanation
- Coding Conventions: Style and pattern preferences
- Things to Avoid: Anti-patterns and common mistakes
- Current Focus: What you're working on now
CLAUDE.md vs other config files
| File | Purpose | Scope |
|---|---|---|
| CLAUDE.md | Claude Code project instructions | Project-level AI guidance |
| SOUL.md | Agent identity and personality | Agent-level identity |
| AGENTS.md | Workspace conventions | Workspace-wide rules |
| README.md | Human documentation | Project documentation |
CLAUDE.md is specifically for Claude Code; SOUL.md defines who the agent is across all projects.
Best practices
Be specific ❌ "Use good coding practices" ✅ "Use async/await instead of .then() chains"
Include examples Show actual code patterns you want followed.
List actual commands Document the commands you use frequently with explanations.
Note project quirks Document known issues and workarounds so the AI doesn't get confused.
Evolve over time Start minimal, add guidance as you discover edge cases, review periodically as the project changes.
Related Terms
Claude Code
Anthropic's agentic coding tool that operates in your terminal, capable of understanding codebases, making edits, and executing commands autonomously.
AI Agent Soul File (SOUL.md)
A configuration file that defines an AI agent's core identity, personality, values, and behavioral guidelines.
Context Engineering
The practice of designing and optimizing all information provided to an AI model—including system prompts, retrieved documents, conversation history, tools, and examples—to get better results.
Claude Skills
Modular capabilities that extend what Claude Code, Clawdbot, and other Claude-based agents can do—packaged as self-contained SKILL.md files.
Configure your AI agents
Chipp provides built-in context management for your AI agents—no configuration files needed.
Learn more