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.
A clean, focused change
card 3 of 6
Checklist for a clean, focused change
builds on: Scope creep and unasked-for changes in a diff, What 'done' means for a change
1. **One purpose**: state it in one sentence without "and". If you can't, split the commits.
2. **No leftovers**: debug output (`print`, `console.log`, `dbg!`, `fmt.Println`, `System.out.println`), commented-out code, unused functions or imports, and files nothing uses (`*.orig`, logs, notes, scratch scripts).
3. **Conventions**: naming, logging, error style, and file and test placement match the neighbouring code.
4. **Message**: the subject says what changed, the body says why.
Lesson goal: Recognise a mergeable change: one purpose per commit, no debug prints, commented-out code, dead helpers or stray files, it follows the codebase's conventions, and the commit message explains why the change was made. ·
the whole lesson