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 6 of 6
Hand over what it can't find
builds on: What the agent cannot see
Each gap in the agent's context has a cheap fix: a path, a helper name, a file to copy, a version, a command. Put rules that hold for every task in the project instruction file, so you write them once and every task inherits them.
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.
- project instruction file
- A file in the repo that the agent loads into its context at the start of every task, holding durable rules, commands and conventions.
- 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.
- the agent
- The AI coding system doing the work: a chat assistant, IDE agent or terminal agent.
- instruction file
- A file of standing project instructions that the agent loads into its context at the start of each session.
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