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 4 of 6
A 30-second check before you start
builds on: Approvals and permission modes, Environment variables and where secrets live
Run this in the terminal you'll start the agent from.
- The `grep` catches common secret names. Names vary, so skim the full `env` list too.
- `unset` removes a variable from this terminal only. If a startup file sets it, it returns in every new terminal, so delete it there too.
- Then read `.env`. The database is on `localhost`: a local copy you filled with fake data. The payment key starts `sk_test_`, so it's a test key, not a live one.
Now start the agent from here.
$ pwd
/home/sam
$ cd projects/shop
$ env | grep -i -E 'prod|live|key|token|secret'
DEPLOY_TOKEN=dpl_8f3...
$ unset DEPLOY_TOKEN
$ cat .env
DATABASE_URL=postgres://localhost/shop_dev
PAYMENT_KEY=sk_test_51H...
Terms on this card
- live
- Connected to the real system with real money, users or data, not a test version.
- test key
- An API key for a provider's practice system. It can't move real money or reach real data. Payment test keys often contain `test`, e.g. `sk_test_...`.
- `.env`
- A file in a project that stores settings and secrets as NAME=value lines, loaded by the program at startup.
- localhost
- Your own computer, used as an address. A database on localhost runs on your machine, not a shared server.
- `env`
- Terminal command that lists all environment variables set in the current terminal.
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