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 never to let an agent touch
card 5 of 6
Why the warning didn't save you
builds on: Approvals and permission modes, Environment variables and where secrets live
▸ You: Delete the test orders from the database. Do NOT touch production.
Your `.env` holds a URL a colleague sent you. It is actually production. The agent reads `.env`, takes it for the test database, and runs a delete. Your warning didn't help, because neither of you knew. The structural fix: point `.env` at a local database with fake orders, and keep production credentials off this machine. Now the worst case is a test database you can rebuild.
Terms on this card
- production
- The live system real users or customers rely on right now, as opposed to a test or practice copy.
- credentials
- Secrets that prove who you are to a system, such as passwords, API keys or tokens.
- URL
- An address that tells a program where to find something, such as a website or a database.
- `.env`
- A file in a project that stores settings and secrets as NAME=value lines, loaded by the program at startup.
- test
- A small piece of code that runs part of your program and checks the result matches what's expected, reporting pass or fail.
Lesson goal: List the usual no-go zones: production systems and databases, real customer data, deploy and payment credentials, your home directory, and anything without a backup. Explain how to keep them unreachable rather than just asking the agent nicely. ·
the whole lesson