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

One green run can't tell good from useless

builds on: What makes a test able to fail
The agent wrote the fix and the test together. It only ran the test against the fixed code. In that run, a test that catches the bug and a test that misses it look the same: both green. Common misses: inputs that never reach the bug, a call to the wrong function, an assertion that holds either way. **Later cost:** the bug returns in a later change, the test stays green, and everyone trusts it.
Terms on this card
assertion
The line in a test that compares the actual result with the expected one and fails the test if they differ.
tell
An observable sign in a diff, transcript or summary that suggests a shortcut or an error.
later cost
The concrete damage a shortcut does after merge, such as a hidden bug, corrupted data or a maintenance burden.
green
A test or check that passes.
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