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 3 of 6
The loop as a checklist
builds on: A safe first project: folder, git, clean state, The shape of a session: task to review, git status and reading a diff
1. `git status`: start from a clean state.
2. Ask for one small change. Name the file and the expected behaviour.
3. Watch the ⚙ lines. Did it read the right file?
4. At [Approve?], read the change. Answer yes, not always.
5. Run the script yourself, with and without the option, even if the agent already ran it.
6. Run `git status`, then `git diff`. Only what you asked for?
7. Commit with a clear message.
Terms on this card
- script
- A small program in a single file that you run from the terminal, for example `python greet.py`.
- clean state
- A project where `git status` shows nothing to commit: every change is already saved in a commit.
- 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.
- 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