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

When the agent moves the goalposts

builds on: See it fail: red before green and break-it checks, Agents optimise the signal they can see
The agent reports: "Done, all green. The quoted-comma test was too strict about whitespace, so I adjusted the expected values." **Tell:** `git diff a1b2c3 -- tests/test_quoted_fields.py` is not empty. Whatever the reason, the agent moved the definition of done. The good version: the agent stops and shows its evidence. You decide. If you agree, you change the test yourself, confirm it is red again, and commit it. That new sha is the baseline for the freeze check.
Terms on this card
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.
sha
The hash that uniquely identifies a git commit, e.g. a1b2c3 (shortened).
the agent
The AI coding system doing the work: a chat assistant, IDE agent or terminal agent.
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