Work effectively with AI coding agents. Understand them as language models running in a tool loop with limited context, which is why they guess, game the visible signal and report confidently. Recognise the shortcut and correctness tells in their code across Python, TypeScript/JavaScript, Rust, Java and Go, and know the damage each one does later. Verify changes instead of trusting them, review diffs fast for quality and security, judge when work is truly finished, and choose, design and steer tasks so agents can finish them well.
Verify by running, not by reading claims
card 4 of 6
Choosing checks for the CSV fix
builds on: The agent knows only what its tools returned, You own every line the agent writes
This is a bug fix in export code that other code uses. So you need three things: a reproduction on `main` with a real file containing `"Lee, Ann"`, the same command on the branch, and the export tests plus the full suite. You ask the agent: *"Show the commands you ran and their output, including the run on main."* It has none to show. Its one test file never imported `export.py`.
Terms on this card
- CSV
- Comma-separated values: a plain-text table format, one row per line. Fields that contain commas must be wrapped in quotes.
- branch
- A separate line of changes in a Git repository. The agent's fix lives on its own branch until it is merged.
- main
- The project's main branch, which holds the code without the agent's change.
- full suite
- All of a project's tests, not just the ones for the changed file.
- the agent
- The AI coding system doing the work: a chat assistant, IDE agent or terminal agent.
Lesson goal: Reproduce the original bug, then run the build, the relevant tests and the real scenario yourself, or require the agent to show the exact commands and their output. Decide which checks a given change needs before you accept it. ·
the whole lesson