Project memory files
For engineers
CLAUDE.md, AGENTS.md, GEMINI.md and rules files: what an agent loads every session and how to keep it lean and true
110 questions across four stages: Understand, Apply, Solve and Judge.
Try 5 questions
Practice items, not counted towards your mastery. No account needed.
Check yourself · 1 of 5
Which line is the best candidate for a project memory file?
Check yourself · 2 of 5
Which of these should never be written into a committed memory file?
Check yourself · 3 of 5
Where should a personal preference like 'keep answers short' go?
Check yourself · 4 of 5
What is the best first step to test whether a new rule changes an agent's behaviour?
Check yourself · 5 of 5
Why do separate hand-maintained copies of the rules for each agent cause trouble?
Topics
- What belongs in CLAUDE.md or AGENTS.md4 min read · Build, test and lint commands, conventions the agent cannot infer from code, boundaries and pointers to where things live
- What to keep out of memory files4 min read · Secrets, long docs, README copies, stale rules and style rules a linter or formatter already enforces
- Layering user, repo and folder files5 min read · How agents load user-level, project, subfolder and imported files, which one wins, and what loads only on demand
- Testing whether a memory file changes behaviour5 min read · Before-and-after runs, asking the agent to restate the rules, and catching lines it ignores or misreads
- One instruction file across many agents5 min read · AGENTS.md, CLAUDE.md, GEMINI.md and Copilot instruction files: sharing one source of truth without copies drifting apart
Start here
- AGENTS.md (opens in a new tab)DocsFree
The open format for a plain-markdown instruction file that many coding agents read, with examples.
- How Claude remembers your project (Claude Code docs) (opens in a new tab)DocsFree
Where CLAUDE.md files load from, the under-200-lines target, imports, rules and troubleshooting.
- Custom instructions with AGENTS.md (OpenAI Codex docs) (opens in a new tab)DocsFree
How Codex finds and layers AGENTS.md files from the global folder down to the working directory.
110 questions · last verified 2026-12