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 2 of 6
It fills the gaps with 'typical code'
builds on: What the agent sees: its context
The agent works only from its context: what you wrote, the files it opened and the tool outputs it got. Where that context is silent, it falls back on general training knowledge of what code *usually* looks like. That means small, tidy data, no history and the obvious reading of your words. So its mistakes cluster where your system differs from the usual. Tests built from that same context share its blind spots, so they rarely catch these mistakes. The mistakes surface later, in production.
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.
- tool outputs
- Text returned to the agent by commands it ran, such as search results, test runs or compiler errors.
- general training knowledge
- What the model absorbed from public code and text during training. It knows typical patterns, not your system's specifics.
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