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.
Verify an agent change instead of trusting it card 3 of 6

A verification plan, step by step

builds on: Mocks that test nothing, Tests that restate the implementation, See it fail: red before green and break-it checks, Pin behavior before a refactor, Let the toolchain check first
Each step gives you one piece of evidence: 1. **Reproduce** the bug on the old code. Evidence: it is real, and you know its symptom. 2. **Red, then green**: the new test fails without the fix and passes with it. Evidence: the test targets this bug. 3. **Could it catch a bug?** Expected values come from the spec, the real code runs (not a mock), and a break-it check turns it red. Evidence: the test has teeth. 4. **Pin behaviour** if the diff reshaped existing code: record the old code's outputs in tests, then run them on the new code. Evidence: nothing else changed. 5. **Toolchain**: full suite, types, linters, CI, config untouched. Evidence: nothing broke elsewhere.
Terms on this card
Red, then green
Seeing a test fail (red) without the fix and pass (green) with it, which shows the test really targets the bug.
break-it check
Temporarily breaking the code on purpose to confirm the tests turn red. If they stay green, they cannot catch that bug.
spec
Specification: the stated required behaviour, independent of how the code computes it.
linters
Tools that scan source code for likely bugs, risky patterns and style problems without running it.
CI
Continuous integration: a server that automatically builds the code and runs its tests and checks on every push or pull request.
Learn this step by step on Bytewise
Lesson goal: For a given change, build a short verification plan: reproduce the problem, see the tests fail and then pass, judge whether the tests could catch a real bug, pin behaviour before refactors and run the toolchain checks. Explain what evidence each step gives you. · the whole lesson