Step 17 of 36 · Engineering practice
Shared context and conventions for tools
Assistants work from the context they are given. Treat instructions, conventions and docs as shared, reviewed, versioned assets.
What an assistant produces depends on what it is told about your codebase: conventions, architecture, commands, the things not to touch. If each engineer keeps that in private prompts, results vary by person and the knowledge leaves with them.
Move it into the repository. An instructions file the tools read, kept short and reviewed like code. Architecture decisions written down. Build and test commands that work from a clean checkout. Security expectations stated once. Most of this is documentation a new human hire needed anyway.
Give it an owner per repository and prune it. The failure is a sprawling file of contradictory rules that nobody maintains and every tool half obeys.
Try this week
- Add or tidy a tool instructions file in one repository and put it through normal code review.
- Ask a recent joiner what they wish had been written down and add the top three items to the repository.
Signs you've got it
- Tool instructions live in version control with named owners and a review history.
- Two engineers using an assistant on the same repository get output that follows the same conventions.
Resources
- articleContext Engineering for Coding Agents (opens in a new tab)Birgitta Böckeler
- guideAGENTS.md (opens in a new tab)AGENTS.md project
- articleArchitecture Decision Record (opens in a new tab)Martin Fowler
- guideDiátaxis: a systematic approach to technical documentation authoring (opens in a new tab)Daniele Procida
- guideSecurity-Focused Guide for AI Code Assistant Instructions (opens in a new tab)OpenSSF Best Practices Working Group
Talks to watch
- 15 minAdvanced Context Engineering for Agents (YouTube, opens in a new tab)Dexter Horthy
- 50 minContext Engineering for Coding Agents Across 1,000 Repos (QCon AI Boston 2026) (YouTube, opens in a new tab)Ajay Prakash