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.
Your first small task, end to end
card 2 of 6
Small enough to judge at a glance
builds on: A safe first project: folder, git, clean state, The shape of a session: task to review, git status and reading a diff
Pick a task whose right answer you can see in seconds. Then your attention stays on the loop, not on the problem. Each step shows you something different:
- The ⚙ Read lines show what the agent looked at.
- The approval prompt shows the edit before it lands.
- Running the script shows how it behaves.
- `git status` lists every changed or new file.
- `git diff` shows every changed line in files git already tracks.
- The commit saves the good result so you can return to it.
Terms on this card
- script
- A small program in a single file that you run from the terminal, for example `python greet.py`.
- git diff
- Shows exactly which lines changed in tracked files since the last commit: `-` for removed lines, `+` for added ones. New, untracked files do not appear in it.
- commit
- A saved snapshot of your project in git that you can return to later.
- approval prompt
- The agent's question before it edits a file or runs a command. You answer yes, no or always.
- loop
- Code that repeats a step for each item in a list, e.g. adding up every row of a table.
Lesson goal: Run one tiny, checkable task, such as adding a command-line option to a script. Watch it read files, approve its edit, run the result yourself, inspect `git diff` and commit, which practises the whole loop once. ·
the whole lesson