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

A short instruction 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
An `AGENTS.md` for a small Python project. Every line is something the agent would otherwise guess, or has already got wrong. The `#` and `##` headings are Markdown and only group the lines. Ten clear lines beat three pages.
# Notes for the agent

## Run and test
- Run the app: `python main.py`
- Run tests: `pytest -q` (all must pass)

## Conventions
- Dates are text in `YYYY-MM-DD` form
- Shared helpers live in `src/utils/`

## Leave alone
- `data/raw/` (original files, never edit)

## Known mistakes
- New tests go in `tests/`, not `src/`
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.
AGENTS.md
An instruction file name read by several agents, such as Codex. Check your tool's documentation for which name it uses.
Markdown
A simple way to format plain text. `#` starts a heading and `-` starts a list item. Files ending in `.md` use it.
Python
A popular programming language. `python <file>` runs a Python file.
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.
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