AOL 2 - CLAUDE.md / AGENT.md
One file that tells the agent where it is and what the rules are. The Map.
The short version
CLAUDE.md is a file you place at the root of your project. It gives the agent its first real context - what the project is, how to build and test it, and what the main rules are. The agent reads it at the start of every session. This alone removes a significant amount of friction.
Why it is called the Map
Without a map, the agent has no context and no intent - it uses general training data to guess what your project might need. With a map, it has both. It stops guessing at the basics and can focus on the actual task.
This layer is built around CLAUDE.md - the project configuration file in Claude Code. Other AI coding tools use the same concept under different names. The principle is identical: one file that gives the agent a stable starting point for every session.
What belongs in CLAUDE.md
- What the project is and what it does
- How to run, build, and test the project
- The main technologies and frameworks used
- Rules the agent must follow (e.g. never use px, always use design tokens)
- Project folder structure explained
- What the agent should never touch
- Links to key files the agent should read first
- Naming conventions
- Everything at once - keep it focused
- Outdated information - a wrong map is worse than no map
- Links to external URLs (agents cannot follow them reliably)
The three-layer strategy
One CLAUDE.md is a start. Three layers is structured intelligence. Each layer loads only where it is needed - global rules do not bleed into folder-specific context, and personal preferences never pollute team standards.
Keep it lean
Auto-generated CLAUDE.md files usually repeat what the agent can already see in your code. TypeScript is visible in package.json. Tailwind is visible in the config. Writing it again wastes tokens and creates drift when things move.
What AOL 2 gives you
You move out of the deepest part of the Friction Zone. The agent is no longer working blind. Output becomes more consistent because the agent has a stable reference point. Sessions get shorter because you no longer repeat basic context.
AOL 2 is the minimum viable setup for any ongoing project. If you are using Claude Code, Cursor, or any other agent tool on a real project without a map file, start here first.
What AOL 2 does not give you
CLAUDE.md is orientation, not expertise. The agent knows where it is, but it does not know your patterns, your design decisions, or the standards you have established. That is what AOL 3 adds.
The same principle in other tools
This guide uses Claude Code as the reference implementation. Every major AI coding tool has an equivalent file. The concept is identical - one file that gives the agent a stable starting point. The name and location differ.
CLAUDE.md.cursor/rules/.mdc rule files. Older versions used .cursorrules at the root..windsurfrules.github/copilot-instructions.mdGEMINI.mdAGENTS.mdCLAUDE.md or AGENTS.md - and symlink the others to it.ln -s CLAUDE.md GEMINI.md