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.
Sandboxes and isolated environments card 5 of 6

Same mistake, two places

builds on: Approvals and permission modes, Terminal, IDE and cloud agents
One mistaken command, run with auto-approve on. What it can reach depends entirely on where the agent runs.
# Same mistaken command, auto-approve on
⚙ Run: rm -rf ~/old-projects

On your laptop:
  ~ is your real home folder
  ~/old-projects and its contents are gone

In a dev container (no real files inside):
  ~ is the container's own home
  it holds nothing of yours to delete
  your laptop is untouched
Terms on this card
auto-approve
A permission mode where the agent runs commands and edits files without asking you first each time.
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.
Learn this step by step on Bytewise
Lesson goal: Explain how running the agent in a container, VM, dev container or cloud sandbox limits what a mistake can damage. Explain why this is the condition under which more autonomy becomes reasonable. · the whole lesson