Go from never having used a coding agent to working productively and safely with one. The learner should understand what an agent is and how it differs from a chat assistant. They should choose a tool, set up a protected first project, describe tasks the agent can do well, and follow and verify its work. They should recover from bad changes, manage context, and plan bigger changes. They should also use tests as the definition of done and run everyday workflows (bug fixes, features, writing tests, codebase exploration, scripts, small tools, refactors). Throughout, they should keep secrets and systems safe and keep their own understanding growing instead of outsourcing it.
Project instruction files: purpose and contents
card 2 of 6
A note it reads every morning
builds on: What the agent can and cannot see, How a code project is laid out, What automated tests are and how to run them
A new session starts fresh: yesterday's chat is not in its context, so anything you only said in chat is gone. An **instruction file** fixes this. It is a plain text file, usually in the project root, such as `CLAUDE.md` or `AGENTS.md` (the name depends on the tool). The agent loads it into its context automatically at the start of every session. Think of a note taped to the desk for a new helper each morning.
Terms on this card
- instruction file
- A file in your project that the agent reads automatically when a session starts, such as CLAUDE.md or AGENTS.md. It holds standing rules and facts about the project.
- session
- One run of the agent, from when you start it until you close or restart it. A new session starts without the previous chat.
- context
- Everything the agent currently has in front of it: your messages, files it read, command output. It cannot use anything outside this.
- project root
- The top-level folder of your project, the one that contains `.git`. File paths are written relative to it.
- CLAUDE.md
- The instruction file name that Claude Code looks for and reads at the start of a session.
Lesson goal: Explain that an instruction file (CLAUDE.md, AGENTS.md, ...) is read automatically at session start, which fixes the 'it forgets every session' problem. Write a short one covering how to build, run and test, key conventions, folders to leave alone, and recurring mistakes. Keep secrets and long prose out of it, and update it whenever the agent repeats an error. ·
the whole lesson