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.
What the agent cannot see card 1 of 6

Green tests, wrong for your system

builds on: What the agent sees: its context
You ask the agent to make the nightly invoice export write rows in date order. It reads `export.py` and one test file, edits a few lines and reports: "Sorted by `created`; all tests green." The diff is small and tidy. Every check it ran was green. Yet the change may still be wrong for *your* system. How can you tell where it is most likely wrong?
Terms on this card
the diff
The change under review in unified diff format: '-' lines removed, '+' lines added, unprefixed lines are unchanged context.
tell
An observable sign in a diff, transcript or summary that suggests a shortcut or an error.
the agent
The AI coding system doing the work: a chat assistant, IDE agent or terminal agent.
diff
The set of line changes between two versions of the code: removed lines start with '-', added lines with '+'.
green
A test or check that passes.
Learn this step by step on Bytewise
Lesson goal: Name what is usually missing from an agent's context: files it never opened, runtime and production behaviour, real data and its volumes, team decisions and the history of why the code looks the way it does, and the intent you never wrote down. Predict which mistakes follow from each gap. · the whole lesson