Build your first knowledge base
In this tutorial, you create a knowledge base, add a page of meeting notes, and accept your first decision. At the end, you have a git repository with one piece of evidence, one open question, and one accepted decision.
The example is a team that agrees how fast a pull request gets its first review. The tutorial uses Claude Code.
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 document, their IDs, and their statuses match.
Before you begin
Make sure that you have the following:
- Claude Code, git, and Node.js 22.18 or later.
Create the knowledge base
A knowledge base is a folder in git. The commands call the folder a workspace.
-
Add the Reasonry marketplace to Claude Code. If the machine already has the marketplace, skip this step:
claude plugin marketplace add push-based/reasonry -
Create a folder with a git repository in it, and go to the folder:
mkdir team-knowledge && cd team-knowledge && git init -
Create the knowledge base:
npx -y @push-based/reasonry@2 initThe command lists the files that it wrote:
Started a workspace in /path/to/team-knowledge from the engine's preset:wrote AGENTS.mdwrote CLAUDE.mdwrote README.mdwrote output/documents/.gitkeepwrote source/initiatives/.gitkeepwrote source/raw/.gitkeepwrote source/reports/.gitkeepwrote templates/initiative/AGENTS.mdwrote templates/initiative/context/charter.mdwrote templates/initiative/initiative.jsonwrote wiki/index.mdwrote reasonry.config.json -
Install the plugin for this folder:
claude plugin install reasonry@reasonry --scope project -
Start Claude Code in the folder:
claude -
Ask the agent which initiatives the knowledge base has. The agent answers that there are none. This answer shows that the plugin reaches the engine, and that the engine reads your folder.
Start an initiative
An initiative is a folder for one project or topic. Each initiative has its own ID prefix and its own list of tags.
-
Run the skill with a working name:
/reasonry:bootstrap-initiative Team tooling -
Answer the agent's questions. The agent asks a few questions at a time and proposes an answer where it can. Use these answers:
- Name: Team tooling.
- Prefix:
TT. Every numbered document ID carries the prefix, such asDEC-TT-0001. You can't change the prefix after the first document. - Domain: choosing and changing the team's development tools and working agreements.
- Goal: keep the team's tooling decisions and the measurements behind them in one place.
- Owners and reviewers: the platform team. Use team names, never a person's name.
- Tags: accept the topics that the agent proposes.
-
Read the summary that the agent shows, and approve it.
The agent creates the initiative and reports that the validation found no errors. Notice the three new files:
source/initiatives/team-tooling/initiative.json
source/initiatives/team-tooling/AGENTS.md
source/initiatives/team-tooling/context/charter.md
initiative.json holds the name, the prefix, and the tags. AGENTS.md is empty: it's the place for
rules that apply to this initiative only. The charter states the goal and the scope.
Add your first material
Raw material is anything that holds decisions, questions, or findings: notes, a transcript, an article. The agent reads it and proposes documents.
-
Create the folder for raw material:
mkdir -p source/raw -
Save these notes as
source/raw/2026-01-19-review-turnaround-notes.md:# Review turnaround: notes from the tooling sync- The platform team looked at the 40 pull requests merged in December 2025. The median waitfor a first review was 26 hours, and 9 pull requests waited more than 3 days.- The team agreed: every pull request gets a first review within 1 working day. The team thatowns the repository checks its open pull requests each morning.- Still open: whether to add a reviewer on duty who rotates each week. Nobody has chosen. -
Run intake on the file:
/reasonry:maintain-source intake source/raw/2026-01-19-review-turnaround-notes.md -
Read the intake plan. The plan proposes one document for each line of the notes: the measurement becomes evidence, the agreed rule becomes a decision, and the open point becomes an open question. The list in the plan looks similar to this:
### Documents to create1. Pull request first-review turnaround → **decision**: every pull request gets a first review within 1 business day; the team that owns the repository checks its open pull requests each morning to meet that target.2. December 2025 review wait-time measurement → **evidence document**, linked to the decision above: 40 PRs merged in December 2025; median wait to first review 26 hours; 9 of 40 waited more than 3 days (reported: platform team, 2026-01-19).3. Reviewer-on-duty rotation → **open question**: whether to add a weekly-rotating reviewer-on-duty role. Unresolved. -
Approve the plan. The agent writes the documents.
-
If the agent offers to accept the decision, tell it to keep the decision as a draft. The notes say that the team agreed, so the agent can make that offer. You accept the decision in the following section.
Notice the three documents in the initiative's folder:
source/initiatives/team-tooling/evidence/EVID-TT-0001-review-turnaround-time-december-2025.md
source/initiatives/team-tooling/decisions/DEC-TT-0001-first-review-within-1-working-day.md
source/initiatives/team-tooling/questions/Q-TT-0001-reviewer-on-duty-rotation.md
Open the decision. The lines at the top of the file say status: draft. A draft is a proposal:
nobody has to follow it.
Accept the decision
A decision takes effect when a person accepts it. Before that, the agent tests the decision against the rest of the knowledge base, and brings each finding to you.
-
Ask the agent to accept the decision:
/reasonry:maintain-source accept DEC-TT-0001 -
Answer the finding. In this knowledge base, the agent finds one thing: the open question about the reviewer on duty covers the same subject as the decision. The question offers four options:
- Keep: the finding stays as a known tension, and the decision mentions it.
- Fix: the agent edits the decision.
- Defer: the decision stays a draft until the finding is settled.
- Reject: the finding ends the decision.
Choose Keep. The team hasn't settled the reviewer on duty, and the decision works without it.
-
Give the final answer: accept.
Open the decision again. The status is accepted, and a new section at the end of the file records
the finding and your answer:
## Challenge
| Finding | Sources | Answer |
| --- | --- | --- |
| Q-TT-0001 (reviewer-on-duty rotation) is open on the same ground | Q-TT-0001 | keep: already named in Alternatives Considered as held open |
Outcome: accepted.
The section also lists the checks that the agent ran. A person who reads the decision a year later can see what was considered.
Check and commit
The engine checks the whole knowledge base in one command.
-
In a terminal, in the knowledge base's folder, run the check:
npx -y @push-based/reasonry@2 checkThe command prints one line for each area, and ends with
PASSED:[ ok ] source 0 error(s), 0 warning(s)[ ok ] xrefs 0 error(s), 0 warning(s)[ ok ] wiki 0 error(s), 0 warning(s)[ ok ] initiative 0 error(s), 0 warning(s)PASSED — 0 error(s), 0 warning(s) -
Stage the files:
git add -A -
Commit them:
git commit -m "Add the team tooling initiative and its first decision"The commit includes the
graph.jsonfile, which the agent built from the documents. Because git tracks the file, the check also compares it with the documents: see Keep the graph current.
What you built
You have a knowledge base that answers three questions for one subject: what the team decided, on what evidence, and what is still open. You also used the cycle that every later change follows: the agent proposes, you approve, the agent writes, and the engine checks.
Next steps
Continue with the next tutorial, or with the guide for your task:
- To give the decision to readers outside the team, follow Share the knowledge base.
- To add more material, or to record and accept another decision, see Work with documents.
- To learn what the agent did behind each step, see What the agent does during a task.