MIT license · Installation · Commands · Contributing
1.0.0 is the first stable release. See the release notes for changes, upgrades, and known limits. CI checks the source and packaged installations. The earlier candidate remains documented in the 1.0.0-rc.1 notes.
Riff is a local workflow and CLI for planning, implementing, reviewing, and resuming software changes with coding agents. It supports project skills for Codex, Cursor, VS Code with GitHub Copilot, and Claude Code.
Plans, decisions, checks, and execution state stay in your project as Markdown and JSON. An agent can use those records to continue work in a later session or another supported host.
You need Python 3.10 or newer, Git, and a supported coding agent. Clone Riff:
git clone --branch v1.0.0 --depth 1 https://github.com/imaanmzr/Riff.git
cd RiffOn Linux or macOS, install the CLI:
python3 install_cli.py
export PATH="$HOME/.local/bin:$PATH"
riff --versionAdd the PATH line to your shell configuration for future terminals.
On Windows, run in PowerShell:
$riffBin = py -3 .\install_cli.py --print-bin-path
if ($LASTEXITCODE -ne 0) { throw 'Riff installation failed' }
$env:Path = "$riffBin;$env:Path"
riff --versionUse python or python3 in place of py -3 if needed. See the
installation guide for persistent Windows PATH setup,
a custom installation prefix, and installation with pipx.
Next, install the skill in the project where you want to use it:
riff init --project /path/to/your/project --host codexChoose codex, cursor, vscode, or claude for --host. The setup wizard
saves project settings under .riff/ and lets you choose whether
to keep Riff files local to your Git clone or track them with the project.
Existing project instruction files are preserved.
For an unfamiliar existing project, start with riff onboard and paste its prompt
into your agent. It saves a concise project guide for later work. See
project onboarding.
Run these commands from your target project's root:
riff new retry-fix --title "Fix duplicate retries" --profile bug
riff plan --task retry-fix --host codexnew creates docs/riff/retry-fix/plan.md and plan.json. plan prints a prompt
to paste into your coding agent's chat. The agent investigates the request,
writes the plan, and completes the review required by the task's risk.
Inspect the saved plan:
riff status retry-fix
riff status retry-fix --details
riff show retry-fix
riff explain retry-fix
riff check retry-fix
riff render retry-fix --format html --output retry-fix.htmlstatus shows recorded and evaluated readiness, task progress, current versus
historical reviews, dependency waits, and the next action with a continuation
command. Use it for the current handoff as execution advances.
Open retry-fix.html in a browser to read the plan offline. Drafts can be
exported too; check reports missing evidence until the plan is ready.
When you want the agent to implement the reviewed plan, generate an execution prompt and send it in the agent chat:
riff execute retry-fix --host codexWorkflow commands print prompts. They do not call a model or start agent work from the terminal.
You can also invoke the skill directly in chat. Use $riff in Codex and /riff
in Cursor, VS Code Copilot, or Claude Code:
$riff Plan a fix for duplicate retries. Stop after plan review.
$riff Execute the reviewed plan at docs/riff/retry-fix/.
$riff Resume the task at docs/riff/retry-fix/.
Schema-3 tasks separate implementation, integration and activation prerequisites. Scoped recovery preserves reviewed unaffected evidence; compact context and guarded record helpers reduce repeated bookkeeping. Existing tasks require explicit upgrade. See scoped execution and compatibility.
Riff asks focused questions when important decisions remain and reuses earlier
answers. Use riff elicit "topic" for an interview, or add --elicit and optional
--focus "subproblem" to an agent action. Natural-language deep requests still work.
See questioning and deep interviews.
To switch machines, use riff handoff TASK in the current agent, commit and push
the saved context with your code, then pull and use riff resume TASK in a fresh
session. See the two-machine walkthrough. Both commands
print prompts; the agent saves or reads the context.
- Planning: code investigation, requirements, design decisions, acceptance checks, task dependencies, and review before implementation.
- Implementation and review: task records tied to source revisions, checks, and review evidence. Small local changes use a compact plan and self-review; higher-risk work requires independent review.
- Research and debugging: prompts and record formats for comparing options, testing hypotheses, and recording results and unresolved questions.
- Inspection and exports: readable plans, readiness explanations, snapshot comparisons, and offline HTML with Mermaid diagrams.
- Recovery: checkpoints and file fingerprints that help an agent identify interrupted work or evidence made stale by source changes.
- Routing: proposed task and model assignments based on configured host capabilities, file conflicts, concurrency, and token budgets.
See features and examples for profiles, migration, recovery,
and budget accounting. Use riff --help or riff COMMAND --help for CLI usage.
Update your Riff checkout and rerun install_cli.py using the same installation
prefix. Then refresh each project's skill:
riff update --project /path/to/your/project --host codexThe skill is updated before the configuration wizard opens. Answer no at
Save configuration? to retain existing settings. Updates refuse to overwrite
locally edited skill files. See the upgrade guide
for platform commands and optional task-record migration.
Riff runs locally and uses Python's standard library. It includes no provider API integration, background scheduler, or automatic retry engine. Routing budgets guide assignments; they do not cap provider billing.
Validators check record structure, source fingerprints, and review bindings. They cannot establish that a review was independent or that a change is correct. The coordinator must inspect the underlying code and evidence.
Installer and regression tests cover all four host paths. Live workflow evidence is limited to Codex development and reported Cursor project use. Live VS Code Copilot and Claude Code sessions are not qualified for 1.0.0. The bundled host adapter is a simulation for contract testing. Token savings, cost reductions, and quality improvements have not been measured.
- Installation: setup, configuration, updates, and removal.
- Command reference: task IDs, options, and end-to-end examples.
- Features: exports, investigations, profiles, and recovery.
- Architecture: source layout, records, and phase boundaries.
- Contributing: development checks and release verification.
- Changelog: release history.
- Release notes: what 1.0.0 includes and how to upgrade.
- Release checklist: qualification, GitHub settings and assets.
Riff is licensed under the MIT License. Bundled rendering libraries retain their own MIT notices; see asset provenance.