Blog

Your AI tools are only as good as your docs


Every engineering team is now using AI tools in some form: code assistants that autocomplete, agents that can search and modify codebases, internal tools that answer questions about systems and processes. The promise is that these tools accelerate engineering by providing instant access to relevant knowledge.

The reality, for most teams, is that the tools are useful for generic coding tasks and surprisingly weak at anything specific to the team's own systems. The code assistant can write a Python function but doesn't know the team's conventions. The agent can search the codebase but can't explain why the payments service is structured the way it is. The internal chatbot hallucinates about company-specific systems because the knowledge it needs lives in people's heads and Slack threads rather than in searchable documentation.

This isn't a limitation of the AI models. It's a limitation of the context they have access to.


The context problem

AI tools reason from context. A code assistant that can see the current file and its imports produces reasonable completions. A code assistant that can also see the project's architecture docs, coding conventions, and decision history produces dramatically better ones, because it understands the patterns the team has chosen and why.

The same applies to every AI tool in the engineering workflow. An internal agent asked "how does the billing system handle refunds?" can only produce a useful answer if the answer exists somewhere the agent can search. If the answer lives in a Slack thread from eight months ago, a meeting recording that was never transcribed, or a senior engineer's memory, the agent has nothing to work with and will either admit ignorance or, worse, confabulate a plausible-sounding answer that's wrong.

The quality of AI tool output is bounded by the quality of the documented context available to the tool. Teams with comprehensive, current documentation get significantly more value from their AI investment than teams without it.


Documentation as AI infrastructure

This reframes the documentation question in a way that engineering leaders often find more compelling than the traditional arguments.

Documentation isn't just for humans anymore. It's the training ground for every AI tool in your stack. Self-writing docs that capture architecture decisions, system behaviours, incident history, and team conventions create a knowledge base that both humans and AI agents can query.

When your engineering wiki writes itself from GitHub activity, Slack conversations, and meeting transcripts, the resulting documentation serves double duty: it's the onboarding resource for new hires and the context layer for AI tools. The same docs that help a new engineer understand the payments service also help the AI agent answer questions about it accurately.

Through MCP (Model Context Protocol), documented engineering knowledge becomes accessible to any AI agent without custom integration. The documentation serves as a shared context layer that any compatible tool can read from, which means your investment in documentation multiplies the value of every AI tool in your workflow.


The feedback loop

There's a virtuous cycle here that's worth spelling out. Better documentation makes AI tools more useful. More useful AI tools make engineering faster. Faster engineering generates more activity that the self-writing docs system captures. More captured activity makes the documentation richer. Richer documentation makes the AI tools more useful still.

The teams that enter this cycle early will have a compounding advantage: their AI tools improve as their documentation improves, and their documentation improves automatically as their engineering activity generates more documented context. Teams that don't document are stuck with AI tools that are generically capable but specifically useless for their codebase.


Frequently asked questions

Which AI tools benefit most from documentation? Internal agents that answer questions about company-specific systems see the largest improvement, because their value is entirely dependent on having company-specific context. Code assistants see meaningful improvement in convention-following and architecture-aware suggestions. Coding agents that modify code benefit from understanding the reasoning behind existing structures.

How does this work with MCP? MCP is an open protocol that lets AI agents read from your knowledge base on your terms. Your documented engineering knowledge becomes the context layer for any MCP-compatible tool, without the knowledge being absorbed into the tool's training data. The documentation stays yours; the AI reads from it.

We already have a knowledge base. Why isn't it working for our AI tools? Most knowledge bases are stale, incomplete, or organised in ways that make retrieval difficult. AI tools need current, comprehensive, semantically searchable documentation. Self-writing docs that update automatically and are searchable by meaning address all three issues.


Related reading: Why engineering docs matter, Self-writing docs explained, The memory is the moat. Related pages: Self-writing docs, MCP, For engineering teams.

The workspace that thinks with you.

Ready when you are.

The workspace that thinks with you.

Ready when you are.

The workspace that thinks with you.

Ready when you are.