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.
Terms on this card
commented-out code
Code disabled by turning it into comments. It is never run, but readers still have to read it and guess why it is there.
debug output
Prints or logs added only to inspect values while working, not meant to stay in the shipped code.
`dbg!`
Rust macro that prints the file, line, expression and value to stderr, then returns the value. It is active in release builds too.
`console.log`
JavaScript/TypeScript function that writes to the console or the server's standard output.
`fmt.Println`
Go function that prints its arguments to standard output.
Learn this step by step on Bytewise
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