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.
Predict what an agent will do and why
card 6 of 6
Predict from inputs, not from the summary
builds on: The agent knows only what its tools returned, Training cutoff and API drift, Agents optimise the signal they can see, Agents tend to agree with you, Long sessions: lost instructions and drift
An agent's run follows from its context, its tools and the one signal it can see. Before you read its summary, ask five things:
1. Where must it guess?
2. What did I lead it to?
3. Which signal will it chase?
4. Which early rules has it outlived?
5. What will it claim that its tools could not check?
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.
Lesson goal: Given a task, its context and the available tools, predict where the agent will guess, which proxy signal it will chase, where it will drift and which claims it cannot back with evidence. Explain each prediction from the agent loop and context mechanics. ·
the whole lesson