agentrite
Health Uyari
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 5 GitHub stars
Code Gecti
- Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Gecti
- Permissions — No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
a rite for agents, agents done right, agents that write
A kit for running coding agents by a fixed process.
The shared instructions and tooling that coding agents work under, in one place so that an improvement is made once
rather than once per project. Projects install it as the npm package agentrite and keep only what is
specific to them.
By default the kit holds:
- the process, in
process.md: how a change is specified, planned, built, reviewed, recorded and frozen - four opinionated roles, the specifier, the planner, the implementer and the reviewer, each a file under
roles/ - the memory, the units under
changes/: each change's spec, plan, decisions and record, committed, so that every
machine and every harness reads the same context - the orchestrator,
agentrite orchestrate: it takes an approved unit through its roles, each step in a harness and
on a model of its own - the sandbox, a container that an agent runs in
- the standards, in
standards.md: the rules on how text, documentation, commits, code and tests are written
The process is the same in every project. A project can replace the standards, and each of the roles, with a file of its
own, named in its agentrite.json. See Replacing a role or the standards.
A project can add roles of its own as well. See Adding a role.
The name
A rite is a prescribed way of doing something, and that is what this kit is at its core. process.md lays down how
a change is specified, planned, recorded and frozen, and the roles and the sandbox exist so that agents follow it.
The name reads three ways, and all three are meant:
- a rite for agents: the process they work by
- agents done right
- agents that write
The "rite" is also Ritenoar's, whose projects carry it.
The sandbox
The sandbox is a Docker container that a harness is run in, with a clone of a unit's branch or the project mounted
read-write at /work. ./sandbox.sh starts it, in the forms "Commands" of COMMANDS.md gives. The reference isSANDBOX.md, which in a project is at node_modules/agentrite/SANDBOX.md.
The harnesses
The kit runs the agents in these harnesses, each named to init by the name beside it:
- Claude Code,
claude - OpenCode,
opencode - Codex,
codex
The components
Quick start
Install the kit into the project, and set the project up from its root, naming only the harnesses it uses:
npm install --save-dev agentrite
npx agentrite init claude opencode
Commit what the two wrote on the default branch, the dependency in package.json and package-lock.json and the
files init wrote, once git status shows nothing else. The sandbox works on a clone of what is committed, and
without them the clone has neither the kit nor the project's settings:
git status
git add -A
git commit -m "Install AgentRite"
Then take a first unit from its spec to the merge:
Specify it on the default branch, in a session of the harness with the specifier as its agent, and ask for the
change. The specifier writes the unit'sspec.mdandrecord.mdunderchanges/, herechanges/0001-...:claude --agent specifierRead the spec, have it corrected where needed, and approve it:
npx agentrite approve 0001Start the sandbox on the unit. It cuts the unit's branch and opens a shell in the container:
./sandbox.sh 0001In the sandbox, plan, implement and review the unit, one role at a time:
npx agentrite run planner claude 0001 npx agentrite run implementer claude 0001 npx agentrite run reviewer opencode 0001Or have the orchestrator take it through the three:
npx agentrite orchestrate 0001 --skip-permissionsLeave the sandbox with
exit. The unit's branch on the host is brought up to date with the work of the sandboxCheck out the unit's branch on the host and set the unit to
implemented, whichnpx agentrite completedoes when
the record shows that the last review saw the work as it stands and lists no blocking finding still open, that every
proposed decline is decided, and that the plan is ticked:git checkout feature-0001-... npx agentrite complete 0001Merge the unit's branch on the default branch, once the unit is
implemented:git checkout <default branch> git merge feature-0001-...
Everything else about installing the kit, configuring it and keeping it up to date is in SETUP.md.
How it works
A change is worked as a unit, a directory under changes/, by four roles in this order:
| Role | Is given | Produces |
|---|---|---|
| Specifier | A request | What the unit must make true: its spec.md, or a task's record.md |
| Planner | An approved unit | The unit's plan.md: the ordered tasks the implementer then follows |
| Implementer | An approved unit and its plan | The implementation, with the plan ticked and the record kept |
| Reviewer | An implemented unit | Its findings, which it returns and does not apply |
A task has no plan, and a bug may have none, which its record then says; the implementer is given such a unit
without one. The rules each role works by are in process.md, the project's standards and the role's own file: the
kit's standards.md and the files under roles/, unless the project replaced them.
Each of the four roles covers one stage of the process and moves the unit through the statuses. A project can add
roles that run just before or just after one of the four, within its stage, and that move it through none. See
Adding a role.
A unit moves through these statuses, as process.md gives them:
| Status | Set by | When |
|---|---|---|
draft |
The specifier | It wrote the spec, or a task's record |
approved |
The human, with npx agentrite approve |
The human approved the spec, or a task's record |
in-progress |
The implementer | It began the work |
implemented |
The human, with npx agentrite complete, or the implementer |
The last review saw the work as it stands and lists no blocking finding open, every proposed decline is decided by the human, and every task of the plan is ticked |
cancelled |
The human, with npx agentrite cancel |
From draft, approved or in-progress, for a unit that will not be done |
The writers current workflow:
- Use Claude Code with Opus as the
specifierrole and ask it to refine a feature (or bug or task) together - Read the
spec.mdthat comes out of this, ask for a few clarifications or corrections if necessary and approve it - Run the
sandbox.sh 0007where0007is the change number. This cuts the branch and starts the container - Run Claude Code with Opus as the
plannerrole and ask it to create a plan for feature 0007 - Run Claude Code with Sonnet or OpenCode with Qwen 3.8 27b as the
implementerrole and ask it to implement the
plan - Run OpenCode with GPT Sol as the
reviewerrole and ask it to review the code - Reopen Claude (
claude -c) and ask the implementer to check the review and see which changes need to be made - Repeat step 6 and 7 until no more issues arise
- Exit the container. This will fast-forward the branch on the host to the one from the container (which was a
separate checkout!). At this point it is up to you how to handle the rest. You can create a pull request and check
the changes yourself, or you can simply set the changeimplementedby runningnpx agentrite completeon its
branch and merge it back to the default branch
The documents
COMMANDS.md: what does a command take, what does it do and how does it exit?ORCHESTRATOR.md: how does the orchestrator take a unit through its roles, and what does a run
keep?SETUP.md: how is the kit installed into a project, or the sandbox alone without the change process,
configured, given other roles and updated?SANDBOX.md: how is an agent run in the sandbox, and what does the sandbox keep it from?CHANGELOG.md: what did a release change, and what is to be done when updating to it?CONTRIBUTING.md: how is the kit itself worked on?
What is here
| Path | What it holds |
|---|---|
process.md |
How work is done: the changes process, the roles, the commit prefixes |
standards.md |
The rules on how text, documentation, commits, code and tests are written |
orchestrator.json |
The orchestrator's default definition, which a project may copy and change |
CHANGELOG.md |
What each release changed, and what is worth knowing when updating to it |
README.md |
What the kit is and how a project uses it |
LICENSE |
The MIT License, which the kit is open source under |
SANDBOX.md |
The reference of the sandbox |
COMMANDS.md |
Every command a project runs, with every argument and option, and the exit statuses |
ORCHESTRATOR.md |
The orchestrator: its definition, how a run ends and what it keeps |
SETUP.md |
Installing the kit into a project, its settings, its roles and updating it |
package.json |
The package's name, its version and the commands it installs |
roles/ |
The specifier, planner, implementer, reviewer and review-merger instructions |
templates/changes/ |
The starting spec.md, plan.md and record.md for a change unit |
templates/project/ |
The files agentrite init writes, its commit-msg hook among them, and config's |
scripts/ |
check-changes.mjs, the freeze check, and the agentrite command |
container/ |
The agent sandbox: image, entrypoint, egress proxy, Compose file, wrapper, commit checker |
Nothing here names a particular project. A rule that would need rewording to make sense elsewhere belongs in the
project's own AGENTS.md, which links here for the rest.
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi