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 4 of 6

Auto-approve inside the box

builds on: Approvals and permission modes, Terminal, IDE and cloud agents
You open the project in a dev container. Apart from the agent's own login, it holds no credentials. Its network reaches only the AI service the agent runs on and the site `npm install` downloads from. You turn on auto-approve, and a wrong `rm -rf` runs. Outside the project there is nothing of yours to lose, so you just rebuild the container. Catch: the project folder is usually **shared** with your laptop, so deletions there are real. Keep a copy of the project somewhere the container can't reach, and still check the result.
Terms on this card
container
An isolated space on your computer with its own files and settings, separated from the rest of your system. Lighter than a full simulated computer.
dev container
A container whose setup is described by a file in the project, so your editor can open the project inside it automatically.
auto-approve
A permission mode where the agent runs commands and edits files without asking you first each time.
credentials
Passwords, access keys and login tokens that prove who you are to a service, such as a database or cloud account.
rm -rf
A terminal command that deletes files and folders, including everything inside them, without asking and without a recycle bin.
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