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

Context, tools and signal decide the run

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
At each step the agent picks the most plausible next action given its context. It stops when its visible check says done. So you can predict the run from those inputs: - It fills missing facts from training habits. - Your premise becomes its hypothesis. - The one check it can run becomes its target. - Early rules fade as the context fills. - It can claim things it never ran. **Later cost** of not predicting: you merge a confident fix for the wrong cause.
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 a maintenance burden.
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: 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