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.
Reviewing the diff the agent made card 5 of 6

What `git diff` showed

builds on: git status and reading a diff, Reading the agent's summary skeptically
Two files changed. One deletion is unrelated to the task. The rounding is wrong too: `round(total)` drops the cents, but you asked for 2 decimals, which would be `round(total, 2)`.
--- a/billing.py
+++ b/billing.py
@@ -12,2 +12,2 @@ def calc_total(items):
     total = sum(i.price for i in items)
-    return total
+    return round(total)
--- a/utils.py
+++ b/utils.py
@@ -40,3 +39,0 @@
-def format_date(d):
-    return d.strftime("%Y-%m-%d")
-
Terms on this card
diff
A listing of exactly which lines were removed (-) and added (+) between two versions of files.
git diff
Command that shows line-by-line changes in files git already tracks that you have not yet staged.
round(total)
Python call that rounds to a whole number. `round(total, 2)` keeps two decimal places.
git
A tool that records versions of a project's files over time. Its data lives in the hidden `.git` folder.
`git diff`
A git command that shows what changed in your files since the last commit, line by line.
Learn this step by step on Bytewise
Lesson goal: Read the full diff of a change with `git diff` or an editor view. Check that every changed file belongs to the task, that nothing unrelated was deleted, and that the logic matches what was asked. · the whole lesson