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

It repeats a mistake: update the file

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
For the third time, the agent leaves debugging `print()` lines in its finished code. Correcting it in chat only lasts until the session ends. So write the rule down instead: ▸ You: Add to AGENTS.md under Known mistakes: remove any print() debugging lines before finishing. Open `AGENTS.md` and read the new line yourself. It should say something like `- Remove print() debugging lines before finishing`. The next time you start the agent and ask for a change, check whether stray `print()` lines still appear.
Terms on this card
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.
AGENTS.md
An instruction file name read by several agents, such as Codex. Check your tool's documentation for which name it uses.
print()
A Python function that writes text to the terminal. It is often added temporarily while debugging to see values.
agent
An AI tool that doesn't just chat. It reads your project's files, edits them and runs commands to carry out a task you give it.
`AGENTS.md`
One common name for an instruction file. It sits at the project root.
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