What makes documentation for AI coding agents useful?
Documentation for AI coding agents should tell the agent where to look, what already exists and which procedure applies before it starts changing things. Build a navigable library with an entry page, system maps, task runbooks and reviewed change history. The goal is to make relevant facts retrievable during work, not to accumulate everything the agent has ever said.
Adam described this approach using documentation for his own infrastructure. His library covered services, hosts, network relationships and operational procedures. He used Markdown documents in Obsidian and kept the documentation in Git. Those are details of his workflow, not evidence that every team needs the same applications.
An ecommerce platform team can apply the underlying structure to an application stack. Start with a bounded system people already maintain. Use its real operating knowledge to build a library an engineer can inspect and an agent can consult. The proposed steps below extend Adam's example; they are not a measured claim about productivity improvement.
Which facts should you document first?
Begin with the system's shape. Adam described maps, request paths, hosts and networking information. That combination matters because a list of services alone does not explain how a request moves between them or where a failure might become visible.
"You have maps, you have request paths, you have lists of all of your hosts" — Adam, on the Krathos podcast
For a hypothetical commerce application, a useful first document might explain how a request reaches a service, which dependency it calls and where the responsible team keeps operational guidance. Capture only relationships somebody can verify. If the agent proposes a connection based on a name or a directory layout, treat it as something to check.
Give each document a clear purpose. A system map describes relationships. A service page identifies the component and its operating context. A task procedure explains what to do. Mixing these without an index makes it harder to find the specific instruction needed during a change.
Mark uncertainty explicitly. If nobody can confirm why a configuration exists, record the unanswered question instead of converting an agent's plausible explanation into institutional knowledge. An attractive diagram does not make an inferred dependency real.
Keep sensitive access material out of general explanatory pages. Document where approved access is managed and who owns it without treating a knowledge library as a place to copy credentials. The objective is a useful operational reference that can be reviewed and shared with the appropriate audience.
What should a runbook contain?
Adam's examples were specific to his setup: adding infrastructure, onboarding a host and routing a guest through a VPN. Their value came from describing work in the environment he actually operated. A generic account of what a host or network is would not have served the same purpose.
A practical runbook should identify the task, the conditions required to begin, the approved procedure and the evidence that it completed. Include the point at which an unexpected result should stop the work. These are proposed writing criteria, not a claim that the recording provided a complete runbook template.
Write for the moment when someone has to act. A procedure that says to update the configuration without identifying the applicable configuration leaves the most consequential choice unresolved. Equally, a long explanation with no completion check leaves the agent deciding whether it has done enough.
Link the procedure to the relevant system page instead of repeating the same background in every file. That gives a reviewer fewer places to reconcile when the infrastructure changes. Keep environment specific details explicit so a worker does not apply a procedure to the wrong target.
Adam described asking his agent to consult the library as part of its normal work:
"you need to reference this documentation every single time you touch, every time you do something." — Adam, on the Krathos podcast
The actionable lesson is to make consultation part of the task contract. Do not assume that putting documents somewhere means every later worker will find and apply them. Require the worker to identify the applicable procedure or state that it could not find one before proceeding under separate instructions.
How does the agent find the right page?
Navigation was a central part of Adam's explanation. He did not describe an undifferentiated pile of notes as sufficient:
"Claude looks through, it looks at the home page, sees what it needs to grab." — Adam, on the Krathos podcast
Build an entry page around the questions a maintainer asks. It can point to service maps, common operations and the relevant ownership information. Use names that make sense to someone who did not create the library. A task index should help the reader distinguish similar procedures before opening and interpreting all of them.
Test the navigation with a real maintenance question. Can an engineer starting from the home page locate the right procedure and explain why it applies? Then ask the agent to do the same and show which documents it consulted. If it relies on a broad search and chooses the wrong environment, improve the structure before adding more documents.
This approach does not require a claim that a note taking application automatically supplies semantic retrieval or organizes everything correctly. The recording contains a concrete navigation pattern: an entry page and a table of contents. Start with that observable mechanism.
Relevant documents still consume context, but that is different from loading unrelated history. The guide to AI agent context isolation explains how a worker can receive a narrow assignment while retaining access to maintained references.
How do you keep the library trustworthy as the system changes?
Adam also described placing the documentation behind Git, opening pull requests and using history to investigate earlier changes. This adds a reviewable record to the library. It does not by itself prove the current pages match the running system.
Connect documentation review to the operational change. Ask which map, service page or runbook becomes inaccurate if the change is accepted. Update those documents while the reason for the change is still understood. Review the explanation as well as the commands or configuration it accompanies.
When an agent drafts documentation from exploration, have the responsible engineer verify consequential statements. Distinguish observed configuration from the agent's proposed interpretation of intent. A change history filled with unchecked explanations remains unchecked, even if every change has a commit.
Start with the system map and a procedure your team repeatedly needs. Run a maintenance task using the library, record what was missing and repair those gaps. The useful completion test is practical: another worker can find the right context, follow the applicable procedure and know when to stop. That is what turns documentation into part of the operating process.
Frequently asked questions
What should we document first for a coding agent?
Start with a bounded system map and an operational procedure the team repeatedly needs. Verify the relationships and instructions against the actual environment.
Do we need Obsidian for agent documentation?
Adam used Obsidian and Markdown in the workflow he described. The transferable design is a navigable library with an entry page, task procedures and reviewed history; it does not depend on choosing the same application.
How should an agent use runbooks?
Make finding the applicable procedure part of its task contract. If a procedure is missing or conflicts with the task, require the worker to surface that issue rather than silently invent the missing steps.