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.
Recovering from a bad change card 1 of 6

The attempt went bad. Now what?

builds on: Commit before every task: checkpoints, Undoing with git: discard, reset, revert, Recognising when the agent goes in circles
You asked the agent to add a CSV export. Forty minutes later the app won't start. The agent has edited six files, made two commits of its own and created a new helper file. Now it says: ◂ Agent: Apologies — one more fix should do it. Your checkpoint commit from before the task is still there. Do you let it try once more? Or do you go back, and how far?
Terms on this card
commit
A saved snapshot of all your project's files in git, with a short message and an ID (hash) you can return to.
checkpoint
A commit (or tool snapshot) made right before a task, so you can return to that exact known-good state.
CSV
Comma-separated values: a plain-text table format that spreadsheets can open.
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.
export
A command in macOS/Linux terminals that sets an environment variable for that terminal window and the programs started from it.
Learn this step by step on Bytewise
Lesson goal: Given a broken state, choose the right recovery: discard uncommitted edits, return to the last checkpoint, or revert a specific commit. Then restart with a better prompt instead of piling fixes onto a bad attempt. · the whole lesson