Install Reasonry
Reasonry has two parts, and a knowledge base needs both. The plugin gives your AI coding tool the
skills. The Reasonry engine checks the files and serves them to the tool. The plugin starts the
engine, and your tool lists it as the reasonry-keeper server. This guide installs both parts in
Claude Code or in another AI coding tool, checks them, updates them, and removes them.
Before you begin
Make sure that you have the following:
- Node.js 22.18 or later.
- git.
- Claude Code, or another AI coding tool that Reasonry supports: Codex, GitHub Copilot, Cursor, Gemini CLI, OpenCode, or Kiro.
The commands in this documentation use a POSIX shell, and they are tested on macOS. On Windows, run Reasonry in Windows Subsystem for Linux (WSL).
Install the plugin in Claude Code
To install Reasonry for one knowledge base, follow these steps:
-
Add the Reasonry repository as a marketplace. You do this once on each machine:
claude plugin marketplace add push-based/reasonry -
In the knowledge base's folder, install the plugin with project scope. The command turns the plugin on for that folder only, with an
enabledPluginsentry in the folder's.claude/settings.jsonfile:claude plugin install reasonry@reasonry --scope project -
Start Claude Code in the folder. Each skill runs as
/reasonry:SKILL_NAME, such as/reasonry:maintain-source.
Install Reasonry in another AI coding tool
The plugin is for Claude Code. For Codex, GitHub Copilot, Cursor, Gemini CLI, OpenCode, and Kiro,
the reasonry-skills command copies the same skills into the knowledge base's folder and
registers the reasonry-keeper server in the tool's own configuration file. The command's usage
text calls each of these tools a harness. To install Reasonry, run the command with npx:
-
List the tools that the command supports. Each line starts with the name of a target, and names the files that the target gets:
npx -y @push-based/reasonry-skills targetscodex skills in .agents/skills, server in .codex/config.tomlcopilot skills in .agents/skills, server in .vscode/mcp.jsoncursor skills in .agents/skills, server in .cursor/mcp.jsongemini skills in .agents/skills, server in .gemini/settings.jsonopencode skills in .agents/skills, server in opencode.jsonkiro skills in .kiro/skills, server in .kiro/settings/mcp.json -
In the knowledge base's folder, install Reasonry. Replace
TARGETwith the name of your target, or with several names separated by commas:npx -y @push-based/reasonry-skills install --target TARGETThe command lists what it wrote. For the
codextarget, the list looks like this:== codex → /path/to/team-knowledge.agents/skills/bootstrap-initiative/.agents/skills/maintain-knowledge/.agents/skills/maintain-source/.agents/skills/migrate-initiative/.agents/skills/research-topic/.agents/skills/sweep-corpus/.codex/config.tomlCodex reads .codex/config.toml in trusted projects only.
If neither the folder nor its reasonry folder is a knowledge base yet, the command creates one
in the folder first with reasonry init. To see the list without writing a file, add --dry-run. For the entry that the command writes in
each file, see the
installation section of the plugin README.
Run a skill
The documentation writes each skill as /reasonry:SKILL_NAME, which is the form in Claude Code. In
another tool, the skills are folders in .agents/skills/, or in .kiro/skills/ for Kiro, and the
tool loads a skill by its name. Ask for the skill in plain words, with the same argument:
Use the maintain-source skill: intake source/raw/2026-01-19-review-turnaround-notes.md
Differences to expect
These behaviors depend on the tool:
- Rules for agents. The skills read the writing rules from the knowledge base's
AGENTS.mdfile. Gemini CLI loads the file only when itscontext.fileNamesetting lists it, and GitHub Copilot in VS Code only with thechat.useAgentsMdFilesetting turned on. - Trusted projects. Codex reads the
reasonry-keeperentry in.codex/config.tomlonly in a project that you marked as trusted. - Second agent. In a tool without read-only second agents, one agent does a skill's focused reading in your conversation. A long task, such as a review pass, then uses more of the conversation's context.
- Questions. In a tool without a tool for asking questions, each question from a skill arrives as a chat message, and you answer in the chat.
Check that the tool reads Reasonry
Claude Code is the only tool that the Reasonry team checks on every change. To see whether another tool reads what the command wrote, open the tool in the knowledge base's folder, and follow these steps:
- Ask for the list of Reasonry skills. The agent names 6 skills:
bootstrap-initiative,maintain-source,research-topic,sweep-corpus,maintain-knowledge, andmigrate-initiative. - Ask for the tools of the
reasonry-keeperserver. The agent lists 16 tools, such asget_config,search, andvalidate. - Ask for the knowledge base's writing rules. The agent quotes the "When you write" section of
the
AGENTS.mdfile. - Ask how to change a document. Before the agent answers, it loads the engine's
corpus-maintenanceguide with theget_skilltool.
If an item fails, see Troubleshoot Reasonry. For the full checklist that the Reasonry team uses, see the tool checklist in the contributor guide.
Keep the knowledge base inside another repository
A knowledge base doesn't need a repository of its own. To keep it next to the code that it describes, follow these steps:
-
In the repository's root folder, create the knowledge base in the
reasonryfolder:npx -y @push-based/reasonry@2 init reasonryThe command writes the workspace's files to the
reasonryfolder, and changes nothing else in the repository. The engine finds a knowledge base inside another repository only under this folder name. -
In the repository's root folder, and not in the
reasonryfolder, install Reasonry: the plugin for Claude Code, or thereasonry-skillscommand for another AI coding tool. Your tool reads the skills and the server's registration in the folder where it starts. -
Start your AI coding tool in the repository's root folder. The engine uses the knowledge base in the
reasonryfolder, and tells the agent that paths in the knowledge base are relative to that folder.
For the rule that the engine follows, see Where a workspace lives.
How the plugin starts the engine
You don't install the engine. The plugin starts it with npx -y @push-based/reasonry@2 serve in
the folder where your AI coding tool starts, and npx fetches the package from npm. The commands in this
documentation start the engine the same way, such as npx -y @push-based/reasonry@2 check.
If that folder has an engine of major version 2 in its node_modules folder, npx runs that engine
and fetches nothing. To choose the engine release yourself, run
npm install --save-dev @push-based/reasonry@2 in that folder.
Check the installation
Check the engine first, and then the connection from your AI coding tool:
-
In the knowledge base's folder, print the engine's version. The command prints a version that starts with
1, such as1.0.0:npx -y @push-based/reasonry@2 --version -
If the folder is a knowledge base, start your AI coding tool in it, and ask the agent which initiatives the knowledge base has. The agent lists them, or answers that there are none. Either answer shows that the tool reaches the engine, and that the engine reads your folder.
If the folder isn't a knowledge base yet, create one first: see Build your first knowledge base. If a check fails, see Troubleshoot Reasonry.
Update Reasonry
The plugin and the engine update separately. To update the plugin in Claude Code, refresh the marketplace, and then update the plugin:
claude plugin marketplace update reasonry
claude plugin update reasonry@reasonry
To update Reasonry in another AI coding tool, run the install command of
Install Reasonry in another AI coding tool again.
The command replaces the skills and the reasonry-keeper entry that it wrote earlier, and keeps
every other entry in a shared file.
To update an engine that you installed with npm, run npm update @push-based/reasonry in the
folder where you installed it. Then restart the reasonry-keeper server in your AI coding
tool, because a running server keeps the earlier release.
If the engine's major version changes, update the plugin too, because the plugin starts the engine
by its major version. A major version can also change the configuration that the engine reads. The
engine then refuses the knowledge base and names the command that brings it up to date,
reasonry migrate: see
The reasonry command.
Remove Reasonry
A knowledge base is a folder of Markdown files, and it stays readable without Reasonry. Removing Reasonry removes the skills and the server, and changes no document.
To remove the plugin from one knowledge base in Claude Code, uninstall it with project scope in that folder:
claude plugin uninstall reasonry@reasonry --scope project
To remove the marketplace from your machine too, run claude plugin marketplace remove reasonry.
In another AI coding tool, the reasonry-skills command has no uninstall form. Delete the 6 skill
folders that the command copied to .agents/skills/, or to .kiro/skills/ for Kiro, and delete the
reasonry-keeper entry from the tool's configuration file. The targets command in
Install Reasonry in another AI coding tool names
the file of each tool.
To remove an engine that you installed with npm, run npm uninstall @push-based/reasonry in the
folder where you installed it.