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.
Hardcoding the answer the test expects card 1 of 6

Green in two minutes, three-line diff

builds on: Agents optimise the signal they can see
`parse_amount` failed on European-style prices like `1.234,56`. You asked the agent to make the failing tests pass. It reports: *Added support for comma decimals; all 14 tests green.* The diff is a handful of lines in `money.py`. The suite is green and the code runs. Is the feature actually there, or did the agent just teach the code the test's answers?
Terms on this card
green
A test or check that passes. Red means it fails.
suite
Short for test suite: the full set of tests for a project or module, usually run together.
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 '+'.
tests green
All tests pass.
Learn this step by step on Bytewise
Lesson goal: Recognise code that branches on the exact fixture input, returns a canned expected value or detects that it is running under test. Explain why it passes the suite yet fails on the first real input. · the whole lesson