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 3 of 6

Triage order

builds on: Scope creep and unasked-for changes in a diff, Making a failing test pass by weakening it
1. **Reread the task.** Say in one sentence what should change. 2. **Size check.** Compare the files and lines to that sentence. A one-line fix spread over five files needs a reason. 3. **Tests** that were changed or deleted. 4. **Config, CI, dependencies:** `pyproject.toml`, `package.json`, `Cargo.toml`, `go.mod`, lockfiles, workflow files, linter and compiler settings. 5. **Error paths and security code:** exception branches, auth, permissions, input checks. 6. The core change. If any step turns something up, review deeply and run it. If none does, a lighter pass is enough.
Terms on this card
CI
Continuous integration: an automated system that builds the code and runs checks such as tests on every push or pull request.
lockfiles
Generated files recording the exact dependency versions installed, e.g. package-lock.json, Cargo.lock, poetry.lock. Changes there mean different code gets shipped.
pyproject.toml
Python project config file: dependencies, build settings and often test and linter settings.
package.json
JavaScript/TypeScript project file listing dependencies, scripts (such as the test command) and tool settings.
Cargo.toml
Rust project manifest: crate metadata, dependencies and build features.
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