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 sees: its context
card 6 of 6
Remember
The agent knows your project only through its context: your messages, loaded instruction files, the files and lines it opened, and the tool outputs it got. Everything else it fills in from general knowledge. If something matters, make sure it lands in that context.
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.
- instruction files
- Project files (often in the repo root) that an agent tool automatically loads into the agent's input, holding standing rules and conventions.
- tool outputs
- The text returned to the agent when it runs a command, search or test, such as printed results or error messages.
Lesson goal: List what is actually in the agent's context at a given step: your prompt, instruction files, the files it chose to open and the tool outputs it received. Explain that anything outside that context is invisible to it except through general training knowledge. ·
the whole lesson