Skip to content
pixelinfinitoPublic

About

Open-source terminal-first AI code review CLI & TUI. Local deterministic checks, impact graphs, opt-in Cloudflare multi-agent review with blind quorum, and Browser QA.

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Repository files navigation

Rio: open-source AI code review, right in your terminal. Pipeline: prepare, checks and graph run on your machine; triage, agents and verify run in your Cloudflare account (optional); report.

Own your AI review pipeline.

Rio is an open-source alternative to CodeRabbit and Greptile, with code review in your terminal and infrastructure you control.

Review local changes before you push, run deterministic checks with zero cloud setup, and opt into AI reviewers, independent verification, GitHub PR automation, or browser QA whenever you are ready. Apache-2.0 licensed.

Quick start · How it works · Profiles & CI · Hosted AI & PRs · Browser QA · Wiki (EN) · Português (Brasil)

⭐ Want code review you can inspect and control? Give Rio a star to help others discover it.


How it works

Rio runs a staged review pipeline. Deterministic checks run locally on your machine—no cloud account or API key required. AI review and verification run optionally in your own Cloudflare account (or a team endpoint) with the models and budgets you choose.

Workflow What it adds What you need Start with
Local review (default) Type checking, linting, changed-line coverage, secret scanning, dependency audit, and a bounded impact graph Only the rio binary and your project's own installed tools rio review
Hosted AI & PR review (optional) AI reviewers, blind multi-voter verification, security catalogs, GitHub PR comments, and finding memory across rounds A Cloudflare endpoint (your own or your team's) and model provider keys rio init
Browser QA (optional) Isolated browser runs across viewports and color schemes with functional, accessibility, and UX evidence A Linux Docker host with firewall control, paired QA image, model access, and .rio/qa.yaml rio qa --full

Why teams use Rio

  • Catch issues before opening a PR. Review uncommitted edits, staged changes, or a whole branch from your terminal, then add automatic GitHub PR reviews when ready.
  • Evidence over guesswork. Every finding pairs project checks, changed code, and an explicit evidence tier. With AI enabled, independent verifiers check each proposed issue before it surfaces.
  • Your models, your infrastructure. Run the backend in your own Cloudflare account with Cloudflare Sandbox or a self-hosted Docker runner. Use OpenRouter, Anthropic, or your own OpenAI-/Anthropic-compatible endpoints.
  • Feedback that sticks. Track findings across review rounds and remember dismissals on unchanged code so reviews stay focused on what changed.

See Rio in action

Rio's terminal UI showing findings, changed code, project checks, and independent verifier votes.

A branch review with hosted AI enabled: checks and filters on the left, prioritized findings in the center, and the code hunk plus blind verifier votes on the right. Demo data from Rio's actual terminal renderer. Read the screen as text · Terminal UI controls


Quick start

1. Install Rio

Rio is currently published as pre-releases for Linux, macOS, and Windows (x64 and arm64). Installers download the newest available release and verify its SHA-256 checksum before installing.

Linux / macOS:

curl -fsSL https://raw.githubusercontent.com/pixelinfinito/rio/main/scripts/install.sh | sh

The installer prints the installed version and places rio in ~/.local/bin. Add that directory to your PATH if needed.

Windows (PowerShell), build from source, provenance verification, and uninstall

Windows (PowerShell 5.1 or 7):

Invoke-RestMethod -UseBasicParsing -ErrorAction Stop https://raw.githubusercontent.com/pixelinfinito/rio/main/scripts/install.ps1 | ForEach-Object { & ([scriptblock]::Create($_)) }

The installer prints the installed version and adds %LOCALAPPDATA%\Programs\rio\bin to your user PATH. Open a new terminal to run rio.

Build from source:

Install Rust via rustup (the repository's rust-toolchain.toml selects the pinned toolchain), then run:

git clone https://github.com/pixelinfinito/rio.git
cd rio
cargo install --path crates/rio-cli --locked
rio --version

Verify release provenance or uninstall:

  • Verify a downloaded release archive with GitHub CLI: gh attestation verify <ARCHIVE> --repo pixelinfinito/rio
  • To uninstall, save a local copy of the installer and run sh install.sh --uninstall on Linux or macOS, or .\install.ps1 -Uninstall on Windows. For source installs, run cargo uninstall rio-cli. Installer flags --purge and -Purge also remove personal configuration. Download install.sh · Download install.ps1

See the full installation guide →

2. Run your first local review

Open any Git repository whose dependencies are already installed, make a small edit, and run:

rio doctor     # check which project tools and lockfiles are ready
rio review     # review your local changes in the interactive TUI

Choose what to review:

What you want to review Command
Uncommitted edits (working tree, staged, and new untracked files) rio review
Only staged changes (index vs. HEAD) rio review --staged
Your branch since it split from origin/main rio review --base origin/main
A GitHub pull request (requires endpoint + GitHub App) rio review --pr 123

Useful flags:

  • --no-tui — stream plain output instead of opening the interactive UI (↑/↓ move, Enter inspect, Tab switch pane, x export, ? help, q quit).
  • --format json|md|sarif — export machine-readable reports (--format json > report.json, --format sarif > rio.sarif). Progress logs go to stderr.
  • --offline — disable Rio's own network requests (such as online dependency auditing). Note that project tests and tools are not network-isolated by --offline.

Supported languages and local checks:

Rio uses your repository's own installed tools (it does not install them for you):

Ecosystem Built-in adapters
TypeScript tsc, ESLint, Vitest or Jest (changed-line coverage)
Python Pyright or mypy, Ruff, pytest + coverage.py
Rust cargo, Clippy, rustfmt, cargo-llvm-cov
All repos Secret scanning, dependency auditing, and bounded impact graph

Walk through your first review → · Diagnose tool issues (rio doctor) →

3. Read findings and exit codes

Always read check outcomes before interpreting findings: zero findings with skipped or failed checks means the review is incomplete, not clean. Without a hosted endpoint, AI steps are shown as deferred while local checks still run.

Each finding reports both severity (impact) and evidence level (how strongly it is backed): reproduced (execution proof), static_proven (compiler/static proof), plausible (hypothesis requiring judgment), or refuted (disproved).

Exit code Meaning
0 No policy failure (optional checks may still be skipped)
1 One or more findings matched the failure policy
2 Usage, configuration, or profile validation error
3 Repository, internal, or persistence failure
4 Incomplete or cancelled analysis, or a required check was skipped
5 PR publication failed after an otherwise passing review
130 Interrupted twice (second Ctrl-C / SIGTERM)

Understand findings, reports, and exit codes →


Customize checks and run in CI

Configure a repository profile

Repository policy lives in .rio/profiles/default.yaml and inherits from built-in profiles (rio/base, rio/openrouter, rio/security, rio/critical, rio/qa). For example, to fail the review whenever typecheck or lint cannot run:

version: 1
name: strict
extends: rio/base
fail_on:
  required_checks: [typecheck, lint]

Inspect and validate profiles before running:

rio profile init               # create .rio/profiles/default.yaml with chosen models
rio profile list               # list available built-in, personal, and repo profiles
rio profile show rio/base      # view the fully resolved base profile
rio profile validate           # validate .rio/profiles/default.yaml

Tip: In profile inheritance, YAML maps merge, while lists replace the inherited list. Always run rio profile show and rio profile validate after editing steps.

Use Rio in CI

In CI, Rio disables the TUI automatically. Fetch enough Git history for merge-base comparison, export a report, and preserve Rio's exit code:

status=0
rio review --base origin/main --format sarif > rio.sarif || status=$?
# Upload rio.sarif to code scanning (or save --format json / md artifacts), then fail on policy:
exit "$status"

Profiles and recipes → · CI and code scanning →


Add AI review and GitHub PRs

When you want AI reviewers, independent verification, security catalog checks, or automated PR reviews, connect to an endpoint or deploy one in your own Cloudflare account. Provider and Cloudflare usage are billed directly to your accounts.

Option A: Deploy to your own Cloudflare account

cf auth login
# Export your model provider key (for example OPENROUTER_API_KEY) in your private environment
rio init

rio init provisions the embedded Worker, Workflows, D1, R2, Queue, AI Gateway, and either Cloudflare Sandbox or a self-hosted Docker runner—no Wrangler or source checkout required. Preview changes first with rio deploy --dry-run.

Option B: Connect to an existing team endpoint

rio init --endpoint https://YOUR-ENDPOINT --token-stdin
rio doctor

Run an AI review

rio review --profile rio/openrouter --preset standard
  • Presets: --preset quick (fast, critical-only), --preset standard (balanced everyday review), or --preset deep (thorough).
  • Providers & routes: Use built-in profiles (rio/openrouter, rio/security, rio/critical) or register your own OpenAI-/Anthropic-compatible API with rio init --custom-provider.

Automate GitHub PR reviews and carry feedback forward

  1. Register and install the GitHub App: rio init --github-app (add --github-org ORG for organization ownership).
  2. Commit your repository profile (including publish: ask, auto, or never) to the default branch. Policy is read from the PR's merge base.
  3. Open/push events trigger automatic reviews, or run one on demand with rio review --pr 123. Maintainers can also comment /rio review or /rio dismiss <id> <reason> on PRs.

Continue a branch's review lineage and manage feedback or recurring noise from the terminal:

rio review --since-last                                            # review changes since the last round
rio feedback 8c1e4a9b --dismiss intentional --note "expected API"  # record feedback on a finding ID
rio suppressions list                                              # review suppression proposals from repeated dismissals

Set up hosting & runners → · Configure providers & budgets → · Connect GitHub → · Feedback & suppressions →


Browser QA

Test real user journeys across mobile/desktop viewports and light/dark themes, with masked screenshots, DOM snapshots, traces, and UX recommendations.

Prerequisites: A Linux Docker host with firewall control, the paired QA image (docker build -f worker/Dockerfile.qa -t rio-qa:0.1.0 .), model authentication, and .rio/qa.yaml + REVIEW.md in your app repository.

rio qa validate       # validate .rio/qa.yaml, fixtures, and journeys
rio qa seed build     # build synthetic test data
rio qa init           # author or propose initial journeys
rio qa --full         # run the full viewport × theme matrix

Start with browser QA → · Sample QA application


Offline docs for coding agents

Let coding agents read concise, version-matched documentation directly from the rio binary—completely offline, with bounded token output and no web fetches:

rio docs                                 # list topics
rio docs search "profiles"               # search topics and sections
rio docs profiles --section inheritance  # read one focused section
rio docs review --format json            # structured JSON output

Learn about embedded agent docs →


Documentation & community

Topic Guides
Getting started Start · Installation · First review · Doctor · Results & exit codes · Terminal UI
Configure & CI Profiles · Machine config · Modules & schemas · CI & SARIF · Cache & offline
AI & Team PRs Hosting · Providers · Budgets · GitHub PRs · Security · Council · Feedback · Suppressions
Browser QA Setup & run · Journeys · Seeds & fixtures · Evidence & UX
Reference & Help All guides · Commands & settings · Troubleshooting · Glossary · Português (Brasil)
Contributing Report a bug or idea · Evaluation guide · Release checklist · Apache-2.0 license

Project status: Rio is pre-1.0 and its stable-release quality gate is still open. The evaluation record explains the remaining evidence gaps. Try it on real changes, inspect the evidence, and help us improve it.

About

Open-source terminal-first AI code review CLI & TUI. Local deterministic checks, impact graphs, opt-in Cloudflare multi-agent review with blind quorum, and Browser QA.

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages