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

Fix removed, test still green

builds on: What makes a test able to fail
You stash only the fix and rerun the agent's test. It still passes. That is the **tell**: this test cannot see the bug. Its input is a 50% discount, which never reaches the over-100% path. **Later cost:** the bug can come back in a later change, and this test will stay green while it does. The trustworthy test calls `apply_discount(100.0, 120)` and expects `0.0`. Without the fix it is red, and the assertion shows a negative price such as `-20.0`. With the fix it is green. Now it guards the bug.
// Python
$ git stash push -- src/pricing.py
$ pytest tests/test_pricing.py::test_discount_regression -q
.                                    [100%]
1 passed in 0.02s
$ git stash pop
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.
the agent
The AI coding system doing the work: a chat assistant, IDE agent or terminal agent.
red
A test or check that is failing. Green means passing.
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