Rafi is an interview-led engineering framework for Claude Code and Codex. It helps a project decide what to build, turns that work into tickets, and builds them with QA.
Install Node.js 24 and Rafi:
npm install -g @rafi-ai/cliSee the CLI's README for a new project, an existing project, upgrading from 0.10.x
(rafi migrate) and the everyday commands; rafi help <command> lists each command's options. Changes are in the
changelog.
| Package | Folder | What it is |
|---|---|---|
@rafi-ai/cli |
packages/rafi |
The rafi command |
ai-foreman |
packages/engine |
The engine: builds, the event log, agents, tools, migration (a library; no command) |
rafi-spec |
packages/spec |
Shared schemas for project files (rafi-spec/v1) |
special-agents |
packages/special-agents |
Rule packs, skills, docs and tool catalog the agent files are rendered from |
@rafi-ai/scenarios (private) |
packages/scenarios |
Fixtures, fakes, scenarios and the test harness |
pnpm install
pnpm -r build
pnpm test:fast # the fast suite (scenarios, engine and spec tests, code rules), under 90 s
pnpm test:process # the process set: the built launcher with fake providers
pnpm check:rules # code rules
pnpm -r typecheck
pnpm check:pack # what each package would publishpnpm test:live runs the paid live suite against real providers; see scripts/live/README.md.
Releasing is in RELEASING.md.