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.
See it fail: red before green and break-it checks card 6 of 6

Only trust a test you've seen fail

builds on: What makes a test able to fail
A test proves something only if you have seen it fail. It should be red without the fix, for the right reason, and green with it. Then break the code on purpose. If the suite stays green, you have found a gap that a real bug could slip through.
Terms on this card
red
A test or check that is failing. Green means passing.
green
A test or check that passes.
suite
All the tests of a project, run together.
Learn this step by step on Bytewise
Lesson goal: Confirm a new test is red without the fix and green with it. Temporarily break the code to check that the suite catches the break, which is the core idea of mutation testing. · the whole lesson