Truss blog6 October 2026

Blog

How AI-native teams should maintain their documentation

Agents and product managers now work in the same tools. PRDs, decisions and tickets should live where they work: in the repo, versioned and reviewed.

Coding agents changed who works where

A few years ago the stack was clear. Engineers lived in the editor and the repo. Product lived in Notion or Confluence, with roadmaps in Jira Product Discovery and work broken into epics and tickets in Jira or Linear. Each tool was a place humans went to see what the others were doing.

Coding agents broke that split. Engineers now describe work and review diffs. And product managers have moved into the same tools. A PM in Claude Code does the research and the strategy work there. They ask the agent how a feature actually behaves instead of waiting for an engineer to read the code to them. They prototype a solution against the real codebase to see if it holds up. The more advanced ones go further and open the pull request themselves.

When the people who decide what to build and the agents that build it work in the same place, it stops making sense for the plan to live somewhere else.

The old model fights the new one

Keeping PRDs and decisions in Notion, the roadmap in a product tool and the work in Jira made sense when every reader was a person with a browser. For an agent it creates three problems.

Retrieval is slow and lossy. Before an agent can build anything it has to go and get the context. That means MCP servers for each tool, auth that expires, a search that returns the wrong page, and a pile of tokens spent fetching and trimming. What comes back is a snapshot of whatever someone last typed, with no link to the code it describes.

The content goes stale and nobody notices. Documentation outside the repo is not tied to any change. Code merges, behaviour shifts and the PRD stays as it was. Nobody goes back to edit an old decision when the facts change, and nobody checks the old decisions before making a new one. So the wiki fills with documents that contradict each other and the code, and agents faithfully read all of them. A stale doc is worse than a missing one, because the agent believes it.

You pay for the privilege. Seats on a docs tool, a roadmap tool and a ticketing tool, for people who now spend their day in a terminal or an editor anyway. The licenses are the visible cost. The attention spent keeping five tools in sync is the larger one.

Put the documentation beside the code

The fix is to stop treating documentation as a separate system. Keep it in the repository, as plain files, next to the code it explains.

That gets you the properties the code already has:

  • Source controlled. Every doc has history. You can see what the plan said in March and what changed since.
  • Peer reviewed. A change to a decision is a diff. A disagreement is a pull request, with comments, on the same page as the code.
  • Updated in the same change. One PR can carry the code, the spec and the decision record. A reviewer sees all three, and a reader six months later can trace the code back to the reasoning.
  • Readable by any agent, with no integration. Agents already know how to read a repository. A file needs no connector, no token and no tool call.

A layout can be as simple as this:

docs/
  prd/          # what we are building and why
  decisions/    # what we chose, what we rejected, and why
  research/     # what we learned and where it came from
  roadmap/      # now, next, later
  work/         # tickets and epics, one file each
AGENTS.md       # how agents find, use and update all of the above

How to keep it alive

Moving the files is the easy part. Documentation fails because nobody maintains it, so the practice matters more than the folder.

  1. Docs change with the code. If a PR changes behaviour, it updates the doc in the same branch. Put it in the PR template and in AGENTS.md, and let the agent do the editing. A check in CI that fails when behaviour changes without a doc change turns a habit into a rule.
  2. Decisions are superseded, not overwritten. When the facts change, write a new decision that links to the old one and mark the old one superseded. History stays readable and the current answer is unambiguous.
  3. Read before you decide. The agent that drafts a new decision should first search the existing ones and cite the ones it touches. That is the step nobody does in a wiki, and an agent does it every time if you tell it to.
  4. Give every doc a type. A decision has a context, a choice and consequences. A PRD has a problem and success criteria. Types let an agent find the right file and let a check catch an empty one.
  5. Prune. Archive what no longer applies. A smaller set of true documents beats a large set of probable ones.

Where the other tools still fit

Some things belong outside the repo. Customer conversations live in your support tool, usage lives in analytics, and calendars live in a calendar. Connect those through MCP, and distil what matters into a research or decision file so the conclusion stays with the code and the raw evidence stays linked.

Stakeholders who want a roadmap or a status page need a view, not an editor. Generate it from the files: a roadmap page, a weekly summary, a changelog built from the work you shipped.

The objections

"Non-engineers can't use git." Less true each month. A PM working in Claude Code or the GitHub web editor can edit a markdown file, and the agent does the branching and the PR. If your PM is already prototyping in the codebase, this is a smaller step than the one they took last year.

"We need reporting." The files are structured and sitting in one place. Generate the report.

"It won't scale." At some size, with many teams and a dependency web, you will want heavier tooling. Adopt it then and migrate the files in. Starting simple costs an afternoon later. Starting heavy costs attention every week now.

Start this week

  1. Create a docs/ folder with prd, decisions and work.
  2. Add an AGENTS.md that explains the layout and the rule that docs change with the code.
  3. Have an agent export your open Jira or Linear issues and your ten most important Notion pages into markdown. It takes minutes.
  4. Run one sprint where the repo is the only source of truth, with the old tools read-only.
  5. Cancel the licenses that went unused.

The principle

Put the documentation where the work happens. For an AI-native team, the work happens in the repository, driven by agents that both engineers and product managers use. Documentation kept there is documentation the agent can read, the team can review and a failing check can keep honest.

This is the idea behind Truss: typed docs in the repo, read by agents before they edit and checked in CI. You can start with a folder and a good AGENTS.md today, and request early access when you want the tooling to enforce it.