Share the knowledge base
In this tutorial, you make the knowledge base useful to people and agents outside your team. You generate wiki pages, write a one-page summary for another team, and let an agent in another repository read the decisions. At the end, the knowledge base has wiki pages and one deliverable, and a second folder has an agent that answers from your decision.
This tutorial continues Build your first knowledge base, and uses the same example: a team that agreed how fast a pull request gets its first review.
The agent writes its own sentences, so the wording on your screen and the titles in the file names differ from the examples on this page. The kinds of page, the document IDs, and the statuses match.
Before you begin
Make sure that you have the following:
- The
team-knowledgefolder from the first tutorial, with the accepted decisionDEC-TT-0001and a commit that holds it. - Claude Code, started in the
team-knowledgefolder.
Generate the wiki
The documents record what the team decided and why. A wiki page gives a reader the result: the agent writes it from the documents, and each statement on it names the document that it comes from.
-
Ask the agent to generate the pages for the initiative:
/reasonry:maintain-knowledge generate team-tooling -
Read the page plan. The plan lists the pages that the agent wants to write, with the documents behind each page, and the pages that it leaves out. With one accepted decision, the plan is short: an overview of the initiative, and often a page for the review target.
-
Approve the plan. The agent writes the pages, rebuilds the graph, and validates the knowledge base.
Notice the new files in the wiki/team-tooling/ folder. The overview is always there, and the
engine writes the index.md file, which lists the folder's pages:
wiki/team-tooling/index.md
wiki/team-tooling/overview.md
wiki/team-tooling/pull-request-review-sla.md
Open the overview. The lines at the top of the file list the documents that the page cites, and each statement in the body ends with the ID of its document. The following excerpt is shortened:
---
type: initiative
title: Team tooling — Overview
initiative: team-tooling
sources:
- id: DEC-TT-0001
resource: ../../source/initiatives/team-tooling/decisions/DEC-TT-0001-first-review-sla-for-pull-requests.md
- id: EVID-TT-0001
resource: ../../source/initiatives/team-tooling/evidence/EVID-TT-0001-review-turnaround-baseline-december-2025.md
- id: Q-TT-0001
resource: ../../source/initiatives/team-tooling/questions/Q-TT-0001-reviewer-on-duty-rotation-for-pull-requests.md
---
## Where this initiative stands
- **Settled:** every pull request gets a first review within 1 working day, met by the owning team checking its open pull requests each morning (DEC-TT-0001).
- **Measured:** the December 2025 baseline behind that target (EVID-TT-0001).
- **Open:** whether to add a weekly-rotating reviewer-on-duty role (Q-TT-0001).
The page separates what is settled from what is open, so a reader can tell the rule from the point that nobody has decided.
Write a summary for another team
A wiki page is for anyone who looks something up. A deliverable is a document that you write for one audience, and that you edit by hand afterward. Reasonry has no skill for a deliverable: you ask in plain words.
-
Ask the agent for the document:
Write a one-page summary of the code review rules for a team that joins next month. Use theteam-tooling initiative, and save it in output/documents/. -
Open the new file in the
output/documents/folder. Notice the line under each claim:Every pull request gets a first review within 1 working day. The clock starts when thepull request opens._Source: DEC-TT-0001 §Decision_Whether to add a weekly-rotating reviewer-on-duty role is unsettled._Source: Q-TT-0001 (question, open) §Open Questions_The first line cites an accepted decision, so it needs no more. The second line cites an open question, and the citation says so. The new team can see which sentence is a rule and which one is still under discussion.
The agent cites its sources because a rule in the knowledge base's AGENTS.md file tells it to.
The agent also leaves out what the knowledge base doesn't hold: the summary says that no decision
covers approval counts or checklists, and it invents no rule for them.
Let an agent in another repository read the decisions
The people who write code work in other repositories. An agent there can read and search the knowledge base through the Reader server, which offers no tool that changes a document.
-
In a terminal, create a second folder next to the knowledge base, and go to the folder:
mkdir ../team-app && cd ../team-app && git init -
Save this content as the
.mcp.jsonfile in theteam-appfolder:{"mcpServers": {"team-knowledge": {"command": "sh","args": ["-c", "cd KB_DIR && exec npx -y @push-based/reasonry@2 serve --reader"]}}}Replace
KB_DIRwith the absolute path of theteam-knowledgefolder. -
Start Claude Code in the
team-appfolder, and approve theteam-knowledgeserver when Claude Code asks. -
Ask the agent a question that the knowledge base answers:
How fast does a pull request get its first review? Name the document that says so, and itsstatus.The agent searches the knowledge base and answers from the decision:
**PR first-review time:** 1 working day, measured from when the pull request opens.**Document:** DEC-TT-0001, "First-review SLA for pull requests," status **accepted**.
The agent in team-app named the document and its status, so you can check the answer. It read
the decision in your team-knowledge folder: nothing was copied.
Check and commit
The wiki pages and the summary are files in the knowledge base, so they go into git with the documents.
-
Go back to the
team-knowledgefolder, and run the check:npx -y @push-based/reasonry@2 checkThe command ends with
PASSED — 0 error(s), 0 warning(s). -
Stage the files, and commit them:
git add -A && git commit -m "Add the wiki pages and the summary for new teams"
What you built
The knowledge base now serves three kinds of reader. A person reads the wiki, a new team reads the summary, and an agent in another repository asks the Reader server. All three trace back to the same accepted decision.
That link has a consequence: when the decision changes, the pages and the summary are out of date. The next tutorial changes the decision and shows how Reasonry finds what to update.
Next steps
Continue with the tutorial or the guide for your next task:
- To replace the decision and update what depends on it, follow Change a decision.
- To refresh or remove a page, and to export a bundle for a tool that reads files, see Maintain the wiki and write deliverables.
- To tell the other repository's agent when to consult the knowledge base, see Connect a consumer repository.