Why Truss exists
Agents can read every diff and still not know why the code is the way it is. Truss keeps the reasoning next to the code, typed, so agents can use it.
The diff is not the why
A coding agent can read your whole repository in a few seconds. It will see that invite links expire after 24 hours. It will not see that you argued about it for a week, that support had nine tickets about expired links, or that the PM settled on 72 hours and nobody ever changed the constant.
That reasoning exists. It is in a Slack thread, a Notion page, a ticket comment and two people's heads. None of it is where the agent looks, so the agent does the sensible thing and picks 24 hours again. The next session re-litigates the decision. The one after that re-litigates it the other way.
Teams have always lost context like this. The difference now is the rate. When five people run forty agents, the gap between what the code says and why it says it is hit forty times a day, and every miss is a quiet regression.
Docs next to the code
Truss starts from one rule: if it is not in a commit, it does not exist.
npx truss.md init adds a truss/ folder to your repository. Product requirements, decisions, research and support evidence live there as plain markdown files, versioned with the code they explain. There is no second store, no sync and no reconciliation. A change to a decision is a diff. A disagreement about a decision is a pull request.
$ npx truss.md init
truss.md
truss/
problems/
prds/
changes/
features/
decisions/
research/
support/Keeping the docs in the repo is not a nostalgic choice. It is what makes the rest possible. Agents already know how to read a repository, review a diff and open a PR. Anything stored elsewhere needs another tool, another MCP server and another thing to go stale.
Agents first, humans welcome
Most documentation tools are editors for humans with an export for machines. Truss is the other way around. The reader we design for is an agent, because agents will read these files far more often than people will.
An agent gets a small set of tools: fetch the context a change depends on, propose a decision, record evidence, run the checks. Before it writes code it reads the bundle of docs that the change rests on, not your entire wiki pasted into a prompt. After it writes code it updates the docs it touched, in the same branch.
Humans are welcome. The files are markdown, so you read them in your editor, your code host or the PR. Someone who owns product writes in the same files and chooses Save or Propose. A PR happens underneath, and they never need to know the word.
Types, not templates
Every doc declares what it is. There are eleven types: where work starts (problem, idea, bug), what gets built (prd, change, plan, feature), and why (decision, research, interview, support). A repo uses the ones it needs. Each type has a schema. A decision has a context, a decision and consequences. A change names the docs it carries. Ids are stable, so a line of code can point at DEC-0036 in a comment and the trace back to the reasoning survives a refactor.
type: decision
id: DEC-0036
title: Invite links expire in 7 days
status: accepted
accepted_by: "@marcus"
carries:
- RES-0107
- SUP-2291truss check enforces the schema, the links and the policy. A user-facing change that does not update its feature doc is flagged, and once you set that check to block, it fails the PR. The check runs as a PR status, so the docs fail CI like code. That is the whole trick for keeping docs alive: not discipline, a failing build.
What is open
Nobody adopts a document format owned by a vendor. So the format spec is open: CC BY 4.0 for the text, Apache-2.0 for the schemas and the example. Anyone can build tools on it, and your docs never depend on us.
truss init is on npm. The rest of the tooling, the checks, the Claude Code plugin and the app, is in early access with a handful of teams while we learn what they need. Whatever we build on top, the repository stays the source of truth: nothing we run keeps a canonical copy, and every write it makes is a commit or a PR. If we charge for anything, it will be per repository, never per seat, because a five-person team with forty agents should not be punished for the behaviour we want.
Where this is
Truss is in early access with a handful of AI-native teams. If your team ships with agents and keeps losing the why, we would like to talk.