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

The agent says it's fixed. Is it?

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
You asked the agent to fix a bug: applying the same coupon twice discounts the order twice. A minute later it reports: "Fixed in `apply_coupon`, added a regression test, all 212 tests pass." The diff is a 3-line guard and one new test. Before you approve, what do you actually know? Only what the agent says, including that tests are green. You have not seen anything run yet.
Terms on this card
regression test
A test added to make sure a specific bug that was fixed cannot come back unnoticed.
guard
A check at the start of a code path that stops or skips the work when a condition holds, e.g. 'coupon already used'.
the agent
The AI coding system doing the work: a chat assistant, IDE agent or terminal agent.
diff
The set of line changes between two versions of the code: removed lines start with '-', added lines with '+'.
green
A test or check that passes.
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