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.
You own every line the agent writes
card 5 of 6
Turning a claim into evidence
Run the full suite yourself: `test_tax.py` goes **red** on two cases. Read the `tax.py` hunk: rounding moved from each line item to the invoice total. That is a behavior change, not a refactor. Then read the `test_invoice.py` hunk too: a test edited during a refactor needs a reason.
Now you have evidence, not a hunch. Ask the agent to restore per-line rounding and to show the full-suite output. Then read the hunks again before you approve.
Terms on this card
- Approve
- The code-review action saying you accept the pull request for merging; your name goes on the decision.
- refactor
- A change to the structure of code that is meant to leave its behavior exactly the same.
- red
- A test or check that is failing. Green means passing.
- hunk
- One block of changed lines in a diff, together with its surrounding context lines.
- the agent
- The AI coding system doing the work: a chat assistant, IDE agent or terminal agent.
Lesson goal: Adopt the stance of reviewing a pull request from a very fast contributor who is not accountable for the result: you sign off, so you answer for it. Explain why generating code is now cheap while review has become the bottleneck, and why evidence must outrank claims. ·
the whole lesson