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 4 of 6
The CSV export, checked
builds on: Running and trying the result yourself, Spotting bad shortcuts in a change, What you stay responsible for
1. **Summary vs diff**: `git status --short` also lists `.flake8`, which the summary never mentioned.
2. **Run it**: on June's real file it prints `Wrote 0 rows to out.csv`. The tests passed, but the feature doesn't work.
3. **Shortcuts**: the `.flake8` diff tells the linter to ignore two kinds of warning. That is a disabled check.
4. **Explain**: you can't say why `export.py` skips rows with blank dates.
Verdict: no commit yet.
▸ You: Export writes 0 rows for data/june.csv. Why does export.py skip rows with blank dates? Why did .flake8 change? Undo that.
Terms on this card
- CSV
- Comma-separated values: a plain-text table format where each line is a row and commas separate the columns. Spreadsheets can open it.
- diff
- A listing of exactly which lines changed in which files. Removed lines are marked '-' and added lines '+'.
- commit
- A saved snapshot of your project in git. Committing a change means you accept it into the project's history.
- git status --short
- Lists changed files, one per line. ' M' means modified; '??' means a new file git isn't tracking yet. Plain `git diff` doesn't show those new files.
- linter
- A tool that scans code for likely mistakes and style problems without running it. Silencing its warnings hides those problems.
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