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.
What makes a test able to fail card 1 of 6

Nine green tests. Do they prove anything?

You asked the agent to add tests for the shipping-fee function. It reports: "Added 9 tests, all green." The diff is full of `assert` lines with confident numbers. Before you approve, ask one thing: could any of these tests catch a bug? Green alone doesn't answer that. A test that would also be green with broken code tells you nothing.
Terms on this card
green
A test or check that passes.
assert
Python statement that fails the test if the condition after it is false.
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 '+'.
Learn this step by step on Bytewise
Lesson goal: Explain a test as inputs plus an oracle, the expected result. The oracle must come from the specification rather than from the code under test. A test that cannot go red when the code is wrong proves nothing. · the whole lesson