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 1 of 6
"Fixed, all tests pass"
builds on: The agent knows only what its tools returned, You own every line the agent writes
Users report that the CSV export drops any customer whose name contains a comma. You ask the agent to fix it. Two minutes later it replies: *"Fixed the quoting in `export.py`. All tests pass."* The transcript shows one edit and one command, `pytest tests/test_utils.py`, which is green. The diff looks reasonable. Do you approve it?
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.
- pytest
- The most common Python test runner. `python -m pytest tests/` runs every test it finds under the `tests/` folder.
- transcript
- The record of an agent session: its messages, the commands it ran and the output those commands returned.
- the agent
- The AI coding system doing the work: a chat assistant, IDE agent or terminal agent.
- diff
- The set of line changes between two versions of the code: removed lines start with '-', added lines with '+'.
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