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 the context it can't find
card 2 of 6
It can only reuse what is in its context
builds on: What the agent cannot see
A helper the agent never opened doesn't exist for it, so it writes another. A convention nobody wrote down gets replaced by the most common pattern in public code. If it doesn't know your library versions, it writes for the version it has seen most. If it doesn't know your test commands, it guesses. You can close each gap with one line. Left open, the later cost is two parsers that drift apart, mixed styles, and checks that never ran.
Terms on this card
- context
- Everything in the model's input for the current step: your messages, instruction files, files it has read and tool outputs.
- later cost
- The concrete damage a shortcut does after merge, such as a hidden bug, silent data corruption or extra maintenance.
- helper
- A small shared function in the codebase that does one common job, such as parsing dates, so every caller does it the same way.
- convention
- A team habit for how code is written or structured, often not enforced by any tool.
- the agent
- The AI coding system doing the work: a chat assistant, IDE agent or terminal agent.
Lesson goal: Point the agent at the relevant files, existing helpers, examples to imitate, conventions, library versions and the commands for building and testing, and keep durable rules in a project instruction file. Explain which blind spot each piece of context closes. ·
the whole lesson