Skip to main content

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:

  1. Add the Reasonry repository as a marketplace. You do this once on each machine:

    claude plugin marketplace add push-based/reasonry
  2. In the knowledge base's folder, install the plugin with project scope. The command turns the plugin on for that folder only, with an enabledPlugins entry in the folder's .claude/settings.json file:

    claude plugin install reasonry@reasonry --scope project
  3. 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:

  1. 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 targets
    codex skills in .agents/skills, server in .codex/config.toml
    copilot skills in .agents/skills, server in .vscode/mcp.json
    cursor skills in .agents/skills, server in .cursor/mcp.json
    gemini skills in .agents/skills, server in .gemini/settings.json
    opencode skills in .agents/skills, server in opencode.json
    kiro skills in .kiro/skills, server in .kiro/settings/mcp.json
  2. In the knowledge base's folder, install Reasonry. Replace TARGET with the name of your target, or with several names separated by commas:

    npx -y @push-based/reasonry-skills install --target TARGET

    The command lists what it wrote. For the codex target, 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.toml
    Codex 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.md file. Gemini CLI loads the file only when its context.fileName setting lists it, and GitHub Copilot in VS Code only with the chat.useAgentsMdFile setting turned on.
  • Trusted projects. Codex reads the reasonry-keeper entry in .codex/config.toml only 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:

  1. Ask for the list of Reasonry skills. The agent names 6 skills: bootstrap-initiative, maintain-source, research-topic, sweep-corpus, maintain-knowledge, and migrate-initiative.
  2. Ask for the tools of the reasonry-keeper server. The agent lists 16 tools, such as get_config, search, and validate.
  3. Ask for the knowledge base's writing rules. The agent quotes the "When you write" section of the AGENTS.md file.
  4. Ask how to change a document. Before the agent answers, it loads the engine's corpus-maintenance guide with the get_skill tool.

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:

  1. In the repository's root folder, create the knowledge base in the reasonry folder:

    npx -y @push-based/reasonry@2 init reasonry

    The command writes the workspace's files to the reasonry folder, and changes nothing else in the repository. The engine finds a knowledge base inside another repository only under this folder name.

  2. In the repository's root folder, and not in the reasonry folder, install Reasonry: the plugin for Claude Code, or the reasonry-skills command for another AI coding tool. Your tool reads the skills and the server's registration in the folder where it starts.

  3. Start your AI coding tool in the repository's root folder. The engine uses the knowledge base in the reasonry folder, 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:

  1. In the knowledge base's folder, print the engine's version. The command prints a version that starts with 1, such as 1.0.0:

    npx -y @push-based/reasonry@2 --version
  2. 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.