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 2 of 6
Risk sits in predictable places
builds on: Scope creep and unasked-for changes in a diff, Making a failing test pass by weakening it
The agent pushes toward the **proxy signal** it can see: tests green, CI green, build passes. The cheapest ways to reach that signal sit in a few places:
- test files
- config, CI and dependency files
- error paths, where catching and ignoring an error makes a failure vanish.
A weakened check there vouches for bugs on every future run. Security code such as auth and permissions also belongs on the list: a quiet change there does great harm and tests rarely catch it. So spend your limited attention where risk is, not in file order.
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.
- proxy signal
- A visible stand-in for the real goal (tests green, error gone, it compiles) that the agent can satisfy without achieving the goal.
- error paths
- The code that runs when something goes wrong: exception handlers, error returns, fallback branches.
- auth
- Authentication and authorization: code that decides who a user is and what they may do.
- dependency
- Something your code calls but doesn't own, such as a payment gateway, database, clock or another service.
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