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.
Triage a diff: where to look first card 1 of 6

Five files back for a one-line fix

builds on: Scope creep and unasked-for changes in a diff, Making a failing test pass by weakening it
You asked the agent to fix rounding in the invoice total. It reports: "Fixed rounding, all tests pass." The diff touches five files. If you read it top to bottom in file order, your attention goes wherever git happens to list first. Then you skim the one line that matters. Where should you look first, and how hard should you look?
Terms on this card
diff
The change under review, shown line by line: lines starting with '-' are removed, '+' are added, others are unchanged context.
the agent
The AI coding system doing the work: a chat assistant, IDE agent or terminal agent.
pass
Python statement that does nothing; used as a body, it makes a function or handler an empty shell.
Learn this step by step on Bytewise
Lesson goal: Review in risk order: reread the task, then check changed or deleted tests, config, CI and dependency files, error paths and security-sensitive code, and compare the diff's size to the task's size. Decide how deep to review based on the risk. · the whole lesson