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.
Catching destructive commands
card 6 of 6
Does git have a copy of this?
builds on: Approvals and permission modes, Undoing with git: discard, reset, revert
Before every yes, read the whole command and ask: does git have a copy of what this touches? Deletes, force-pushes, history rewrites, database drops and system-wide installs often reach past your checkpoint. They never go into an always-rule. Each one gets a fresh, careful decision.
Terms on this card
- checkpoint
- A git commit (or a tool's built-in snapshot) made before a task, so you can return to exactly that state.
- database
- Organised storage for an app's data, such as users or orders. It usually lives outside git.
- always-rule
- A permanent approval: the agent runs matching commands from then on without asking you.
- command
- A line of text that tells the computer to run a program, typed in a terminal, for example `python src/cart.py`.
- git
- A tool that records versions of a project's files over time. Its data lives in the hidden `.git` folder.
Lesson goal: Recognise risky commands before approving them: recursive deletes, force-push, history rewrites, database drops, and installs with system-wide effects. Explain why 'always allow' must never cover them. ·
the whole lesson