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 3 of 6
Six pieces of context and the gap each closes
builds on: What the agent cannot see
- **Relevant files** (paths): files it would never open.
- **Helpers to reuse**: name and path, or it writes a new one.
- **An example to imitate**: one file carries layout, naming and error style.
- **Conventions, with the why**: team decisions the code doesn't show. The reason lets it handle cases you didn't list.
- **Library versions**: from the lockfile, so its calls exist in yours.
- **Build/test/lint commands**: so it checks itself the way CI does.
Rules true for every task go in the project instruction file. The rest go in the task.
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.
- lockfile
- A generated file recording the exact dependency versions the project uses, such as poetry.lock, package-lock.json or Cargo.lock. In Go, go.mod and go.sum play this role.
- lint
- Running a static checker that flags style problems and likely bugs without executing the code.
- CI
- Continuous integration: a server that builds and tests every push or pull request automatically.
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