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.
Keeping secrets out of the agent's reach card 6 of 6

Remember

builds on: What never to let an agent touch, What the agent can and cannot see
Anything the agent reads, prints or commits can leave your machine. A 'please don't' in your prompt is a hint, not a lock. Give the project only test keys. Keep `.env` out of git with `.gitignore`, block the agent's reads with deny rules, and keep real credentials where the agent can't reach them. If a real key ever shows up in a session, log or commit, revoke it.
Terms on this card
.env
A file in a project that holds environment variables, often secrets like API keys, loaded when the app starts.
git
A tool that keeps a project's history by saving snapshots of its files.
.gitignore
A file listing files git should never track, so they can't be accidentally committed or pushed.
commit
Saving a snapshot of files into git's history. Once committed, a secret stays in that history even if later deleted.
deny rules
Settings in an agent tool that forbid certain actions, such as reading specific files, no matter what the agent decides.
Learn this step by step on Bytewise
Lesson goal: Explain how secrets leak: the agent reads `.env`, prints keys in logs, commits them, or sends them to the model provider. Use ignore and deny rules, test keys and separate credentials so the agent never needs the real ones. · the whole lesson