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.
Let the toolchain check first
card 2 of 6
Cheap, impartial checks, if left intact
builds on: Silencing the checker: type escapes and suppressions, Verify by running, not by reading claims
Type checkers and linters read every line. The full test suite and a race detector (Go's tool that flags concurrent code touching the same memory without coordination) check every path the tests run. All of them run on every change with the same rules, cost none of your attention, and no confident summary can talk them round.
But they only protect you while their settings are intact. The agent optimises the proxy signal "checks green", and the config files are within its reach. Flipping one flag is often the shortest path to green. **Later cost:** the check is silently gone for every future change too.
Terms on this card
- race detector
- A runtime tool, e.g. Go's `-race` flag, that reports when goroutines access the same memory without synchronisation, at least one of them writing. It only sees the code paths the tests actually run.
- proxy signal
- A visible stand-in for the real goal, such as tests green or the error gone, that can be satisfied without achieving the goal.
- later cost
- The concrete damage a shortcut does after merge: hidden bugs, silent data corruption or maintenance burden.
- test suite
- The full set of automated tests for a project, as opposed to a single test file.
- green
- A test or check that passes.
Lesson goal: Lean on strict type checking, linters, race detectors, the full test suite and CI as cheap, impartial checks before human review. Confirm the diff did not loosen their configuration or add suppressions to get them green. ·
the whole lesson