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 1 of 6

Why does it forget what you told it?

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
Yesterday you told the agent that tests run with `pytest -q` and that it must never edit `data/raw/`. It followed both rules. Today you open it again in the same project and ask for a small fix. It tries a different test command, gets confused, then edits a file in `data/raw/`. You never changed your mind. Why did it 'forget', and how do you stop repeating yourself every time?
Terms on this card
pytest
A popular Python tool that finds and runs a project's automated tests and reports which passed and which failed.
pytest -q
Runs pytest in quiet mode, which prints shorter output with less detail per test.
command
A line of text that tells the computer to run a program, typed in a terminal, for example `python src/cart.py`.
test
A small piece of code that runs part of your program and checks the result matches what's expected, reporting pass or fail.
tests
Small pieces of code that run your program's code and check it gives the expected results.
Learn this step by step on Bytewise
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