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.
Catching destructive commands card 4 of 6

How 'always' lets a force-push through

builds on: Approvals and permission modes, Undoing with git: discard, reset, revert
Early on you picked **always** for `git push` to save clicks. Later the agent's push is rejected because the online copy has a teammate's newer commits. To finish the job, it runs `git push --force`. Many tools match an always-rule by how the command starts, so it ran without asking. Your teammate's commits were overwritten online, and you have no copy of them to put back. Give always-rules only to read-only commands like `git status`.
Terms on this card
push
Sending your commits from your computer to the online copy of the project, for example on GitHub, where others can get them.
online copy
The shared version of the project stored on a server such as GitHub, which teammates push to and download from.
force-push
A push that replaces the online copy's history with yours, deleting commits there that you don't have.
always-rule
A permanent approval: the agent runs matching commands from then on without asking you.
command
A line of text that tells the computer to run a program, typed in a terminal, for example `python src/cart.py`.
Learn this step by step on Bytewise
Lesson goal: Recognise risky commands before approving them: recursive deletes, force-push, history rewrites, database drops, and installs with system-wide effects. Explain why 'always allow' must never cover them. · the whole lesson