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.
What 'done' means for a change
card 3 of 6
Six questions that define done
A change is done when all six answers are yes:
1. **Does what was asked**: all of it, and nothing extra.
2. **Evidence it works**: a test or run you can see, which would fail without the change.
3. **Breaks nothing else**: full suite, type check, other callers.
4. **Fits conventions**: uses existing helpers, error style and names.
5. **Reviewable**: one purpose, a small diff.
6. **Hides nothing**: no skipped tests, muted errors or placeholder code, and any gaps are stated.
Terms on this card
- diff
- The set of line changes between two versions of the code: removed lines start with '-', added lines with '+'.
- full suite
- All of the project's automated tests, not just the ones near the changed code.
- type check
- Running the compiler or a static type checker (e.g. tsc, mypy) to find type errors without running the program.
- conventions
- The established ways a codebase does things: which helpers it uses, how it names things, how it handles errors, how it formats code.
- placeholder code
- Code that compiles but doesn't really implement the behaviour, like an empty function body, a hardcoded return or Rust's `todo!()`.
Lesson goal: State the criteria for a finished change: it does what was asked, there is evidence it works, it breaks nothing else, it fits the codebase's conventions, it is small enough to review and it hides nothing. Contrast this with 'the agent stopped and said it's done'. ·
the whole lesson