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.
Give it an executable definition of done card 3 of 6

Executable definition of done: 4 steps

builds on: See it fail: red before green and break-it checks, Agents optimise the signal they can see
1. Write, or agree with the agent, a test or repro script that shows the bug as users hit it. 2. Run it. It must be red **for the bug's reason**, not because of an import error or a typo. 3. Commit it, then say: "Do not edit this file. If you think it is wrong, stop and tell me why." 4. Afterwards, `git diff <sha> -- <file>` must be empty, and the test, run by name, must be green.
Terms on this card
repro script
A small script that reproduces a bug on demand, failing the same way users saw it. Short for reproduction script.
red
A test or check that is failing.
green
A test or check that is passing.
tell
An observable sign in a diff, transcript or summary that suggests a shortcut or an error.
git diff <sha> -- <file>
Shows how one file differs from its state at a given commit. Empty output means the file is unchanged since that commit.
Learn this step by step on Bytewise
Lesson goal: Provide or first agree on a failing test or reproduction script that the agent works against, and protect that test from being edited. Explain why this narrows how far the agent can game the proxy signal. · the whole lesson