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.
Verifying before you accept a change
card 5 of 6
What the commands showed
builds on: Running and trying the result yourself, Spotting bad shortcuts in a change, What you stay responsible for
`git status` revealed the unmentioned `.flake8`. Note that plain `git diff` would not show the new, untracked `src/export.py` at all. Reading the `.flake8` diff showed the silenced warnings. Only running the command showed the empty output.
$ git status --short
M .flake8
M src/cli.py
?? src/export.py
$ git diff .flake8
--- a/.flake8
+++ b/.flake8
@@ -1,2 +1,3 @@
[flake8]
max-line-length = 88
+extend-ignore = E501,F401
$ python src/cli.py data/june.csv --csv
Wrote 0 rows to out.csv
Terms on this card
- diff
- A listing of exactly which lines changed in which files. Removed lines are marked '-' and added lines '+'.
- .flake8
- Settings file for flake8, a Python linter. `extend-ignore` tells it to stop reporting whole kinds of warning: E501 is 'line too long', F401 is 'imported but never used'.
- command
- A line of text that tells the computer to run a program, typed in a terminal, for example `python src/cart.py`.
- output
- The text a command or program prints when it runs, including results and error messages.
- git
- A tool that records versions of a project's files over time. Its data lives in the hidden `.git` folder.
Lesson goal: Apply a fixed acceptance routine before committing: check the summary against the diff, run it yourself, scan for shortcuts, and make sure you could explain it. Scale how deep you look with the risk of the change. ·
the whole lesson