Skip to content
agentrite

Quickstart

This page takes you from installing AgentRite in a project to a first unit of work whose spec you have approved.

  • Node.js and npm. The kit is an npm package, and its commands run with npx
  • git. Every change the agents make is recorded in the project’s history, and the project needs a default branch
  • A harness. AgentRite runs its agents in Claude Code, OpenCode or Codex. Name the ones you use when you set the project up

From the root of the project, add the kit as a development dependency, and set the project up, naming only the harnesses it uses:

Terminal window
npm install --save-dev agentrite
npx agentrite init claude opencode

init writes the project’s settings, agentrite.json, the instructions the harnesses read, a wrapper for each role in each harness named, the files of the sandbox and a git hook. A project whose default branch is not master names it, as in npx agentrite init --default-branch main claude opencode.

Commit the dependency and the files init wrote on the default branch, once git status shows nothing else:

Terminal window
git status
git add -A
git commit -m "Install AgentRite"

Every change is a unit under changes/. Start a session of the harness with the specifier as its agent, on the default branch, and ask for the change you want:

Terminal window
claude --agent specifier

The specifier writes the unit’s spec.md, what should be true once the change is made, and its record.md, under changes/0001-....

Read the spec, and have the specifier correct it where it is wrong or leaves something out. Only you approve it:

Terminal window
npx agentrite approve 0001

The approval sets the unit’s status to approved, adds your entry to its log and commits the record. The unit can now be planned, built and reviewed.

  • The kit’s README takes the unit on from here: planning, building and reviewing it in the sandbox, alone or with the orchestrator, and merging it
  • SETUP.md covers the project’s settings, its git hook, replacing or adding roles and updating the kit
  • process.md is the process the agents follow
  • ORCHESTRATOR.md describes the runs that take a unit through its roles