v5.3.0 · MIT · GitHub-native

Forward-only
delivery for
coding agents.

Ratchet turns any GitHub repo into a continuous delivery loop run by coding agents — Claude Code, Codex, and Antigravity. Work only moves toward shipped.

You do two jobs: write plan files and review PRs.

Flying Ratchet agent mascot
01Ideate
02Plan
03Merge the plan
04Build
05Review
06Advance
07Repeat
Install in one line
curl -fsSL https://raw.githubusercontent.com/praveenvijayan/Ratchet/v5.3.0/scripts/bootstrap.sh | bash -s -- --version v5.3.0
Always pin a release tag. Prefer download-and-inspect? See install ↓
Works with the agents you already useThe protocol lives in GitHub, not in any one tool.

/ 01   WHY RATCHET

Stop babysitting
your agents.

Herd dashboard showing active coding agents and errors awaiting review
ratchet-herd · one agent per ready issue · watched to a PR

Without Ratchet

× Agent sessions stall, lose context, or silently abandon work

× Backlog lives in your head; agents re-derive everything each run

× Failures slip backward — half-done branches, forgotten issues

× Every tool needs its own orchestration setup

With Ratchet

+ Every failure path returns work to the queue — nothing gets silently stuck

+ Plans compile to GitHub issues; state lives in labels, branches, and PRs

+ Atomic claims prevent two agents grabbing the same issue

+ No orchestrator, no database, no custom service

Humans own two things: writing good plan files and reviewing PRs. Everything else ratchets forward on its own.

/ 02   THE LOOP

Seven steps.
One direction.

Every failure path returns to the queue.

01

Ideate

Shape the idea with your LLM until it is solid.

02

Plan

/ratchet-plan writes plan/*.md and opens a planning PR.

03

Merge the plan

plan-sync compiles plan files into GitHub issues on main.

04

Build

The agent claims, builds, verifies, and opens a PR.

05

Review

A human reviews and merges. GitHub closes the issue.

06

Advance

Dependents unblock; stale claims return to the queue.

07

Repeat

The backlog drains. New findings become new plan files.

Red gate? Crash? Oversized issue? Requested changes? The issue goes back to state:ready with a comment. Nothing slips backward, nothing stalls.

/ 03   THE SYSTEM

Built on GitHub,
nothing else.

01

No infrastructure

No orchestrator, no database, no service to host. The protocol is issues, labels, branches, Actions, and PRs.

02

Cross-tool by design

AGENTS.md is the shared operating manual. Claude Code, Codex, and Antigravity run the same loop.

03

Atomic claims

Agents claim issues with a server-side branch ref (agent/issue-N). A 422 means someone else got there first.

04

Verification gates

You define pass/fail gates in GATES.md. Agents verify fail-fast before opening a PR.

05

Forward-only

Work moves toward shipped or returns to the queue. Stale claims get swept; blocked issues unblock automatically.

06

Reviewed memory

The agent proposes memory edits inside its PR — memory changes are reviewed like code, never written silently.

/ 04   MEMORY

Memory that scales
to multi-year
projects.

Three tiers, all GitHub-native. No vector DB, no external service.

The agent reads tiers 1–2 every issue, searches tier 3 when context is missing, and never edits USER.md.

01 / WORKING

The claimed issue

Acceptance criteria and current context, close to the work.

02 / DURABLE CURATED

memory/

USER.md · human-owned preferences
ARCHITECTURE.md · generated codebase map
MEMORY.md · distilled knowledge cache

03 / EPISODIC

GitHub history

Closed issues, merged PRs, git log, and plan files — unbounded, searched on demand.

/ 05   SKILLS REFERENCE

Ten skills,
one loop.

/ratchet-initOne-time setup: labels, gate detection, memory scaffold, PAT check
/ratchet-planIdea → plan/*.md on the planning branch
/ratchet-syncCompile plan files → issues now
/ratchet-nextAdvance after merge, or rework after review
/ratchet-statusWhy is nothing ready, and what to do
/ratchet-metricsLoop health: cycle time, rework, queue depth
/ratchet-memoryPrune and dedupe MEMORY.md
/ratchet-mapRegenerate the codebase map
/ratchet-updatePull a newer framework version — project files untouched
/ratchet-uninstallCleanly remove Ratchet; keep your data by default

Running many issues at once? ratchet-herd (node scripts/herd.mjs run) supervises one agent per ready issue, watched to a PR. It never merges or reviews — anything it cannot resolve escalates to a human.

/ 06   INSTALL

Install in
two minutes.

Run from inside your project's git repo.

STEP 01

Download, inspect, run

curl -fsSL https://raw.githubusercontent.com/praveenvijayan/Ratchet/v5.3.0/scripts/bootstrap.sh -o bootstrap.sh
less bootstrap.sh          # read it before you run it
bash bootstrap.sh --version v5.3.0 --profile core
Or the one-liner once you trust the source — always pin a real release tag.
STEP 02

Sync skills

./setup.sh
Codex and Antigravity read .agents/skills/ directly.
STEP 03

Initialize inside your agent

/ratchet-init
Creates labels, detects your stack, and guides the PAT.

--dry-run previews changes without writing. --force is required to overwrite an existing file. The installer reads ratchet-manifest.json and never touches .env or local secrets.

/ 07   THE PAT

One secret makes
it bulletproof.

GitHub's default token cannot trigger one workflow from another's events, so automated issue closes would stall the loop. Set a fine-grained PAT as the FACTORY_PAT repo secret. With pure human merges the fallback token works; the PAT makes it bulletproof.

/ratchet-init checks this and guides you. Never commit a real token — .env is gitignored; only .env.example ships.

/ 08   OPTIONAL

Go fully
hands-off.

Human involvement ends at the merge.

gh variable set RATCHET_AUTO --body true
gh secret set ANTHROPIC_API_KEY        # or swap to Codex
gh workflow run ratchet-run

Every merge triggers ratchet-run: it checks out fresh main, picks the top ready issue, and works it to a PR. You merge; it advances.

Safe by default — without RATCHET_AUTO=true the workflow no-ops. Mind the cost: each run spends API tokens.

/ 09   FAQ

Questions,
answered.

READY TO START?

Stop babysitting
your agents.

Install Ratchet, write a plan, merge PRs. The backlog drains itself.

curl -fsSL https://raw.githubusercontent.com/praveenvijayan/Ratchet/v5.3.0/scripts/bootstrap.sh | bash -s -- --version v5.3.0
View on GitHub