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

A frozen repro test, committed first

builds on: See it fail: red before green and break-it checks, Agents optimise the signal they can see
Commit this before the agent starts. `parse_rows` skips the header line and returns the data rows. Run the test and it is red: the first row comes back as `['1', '"Smith', ' Jo"']`. That failure is the bug itself, not a crash. The test uses two different quoted names plus a plain row. Code that special-cases one string, or that breaks ordinary rows, stays red. Varied cases shrink the room left for gaming.
// Python
# tests/test_quoted_fields.py
from importer import parse_rows

def test_comma_inside_quotes():
    src = ('id,name\n'
           '1,"Smith, Jo"\n'
           '2,"Lee, Al"\n'
           '3,Kim\n')
    assert parse_rows(src) == [
        ["1", "Smith, Jo"],
        ["2", "Lee, Al"],
        ["3", "Kim"],
    ]
Terms on this card
red
A test or check that is failing.
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