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.
What you stay responsible for
card 4 of 6
Saying no is part of the job
You ask it to tidy up temp files. It proposes `rm -rf data/`. That command deletes the whole `data` folder, not just the temp files, and there is no undo. Clicking yes "because the agent suggested it" makes that deletion yours. Instead, read the command and notice it goes further than you asked. Answer no, and ask the agent to show what it would delete first. The same goes for code: if you can't explain a change, ask before accepting it.
Terms on this card
- `rm -rf data/`
- A terminal command that permanently deletes the folder `data` and everything inside it, without asking and without a recycle bin.
- temp files
- Temporary files a program creates while working, usually safe to delete afterwards. Here they end in `.tmp`.
- command
- A line of text that tells the computer to run a program, typed in a terminal, for example `python src/cart.py`.
- 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.
- rm -rf
- A terminal command that deletes files and folders, including everything inside them, without asking and without a recycle bin.
Lesson goal: State that you own every change you accept and every command you approve, including bugs, data loss, leaked secrets and licence or security problems. 'The AI did it' is not a defence at work or in your own project. ·
the whole lesson