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.
Rule out shortcuts explicitly card 4 of 6

A good stop beats a quiet workaround

builds on: Making a failing test pass by weakening it
You ask the agent to make `TestRetryLimit` pass, with the four rules. It replies: *Stopped. `TestRetryLimit` expects 3 retries; the loop allows 4 because it checks `<=`. Changing it to `<` makes `TestBurst`, which expects 4, fail. The tests disagree. Which is right?* That is the win. Compare the quiet workaround: the agent edits `TestBurst` to expect 3 and says done. A question about what the code should do then gets settled silently by the agent instead of by you.
Terms on this card
the agent
The AI coding system doing the work: a chat assistant, IDE agent or terminal agent.
pass
Python statement that does nothing; used as a body, it makes a function or handler an empty shell.
Learn this step by step on Bytewise
Lesson goal: State the rules up front: do not modify or skip tests, add no new dependencies or suppressions, and stop and report when blocked instead of working around the problem. Then check the diff for compliance, because stated rules can still be broken. · the whole lesson