Skip to main content
rio v0.3

WORKFLOWS · LOCAL, PRE-PUSH, AND TEAM PRs

Three ways to run Rio Code Review.

Start with zero-cloud local checks in your terminal or a Git pre-push hook. Add self-hosted AI review, GitHub PR comments, and finding history on your own Cloudflare account when the team needs them.

01 · LOCAL REVIEW (DEFAULT)

Deterministic checks before you open a PR.

Run rio doctor to verify your repo's installed tools, then rio review to inspect uncommitted edits, staged changes, or an entire branch offline. Every adapter uses the exact compiler, linter, and test runner pinned in your repository so local results match CI.

rio review Working tree, staged, and untracked files
rio review --staged Only staged index vs. HEAD
rio review --base origin/main Full branch since merge-base
rio review --offline Disable Rio's own network requests
Read First Review & Doctor docs →
rio doctor · local adapter diagnostics ZERO CLOUD
Output of rio doctor inspecting cache configuration, installed adapters, and local environment.
rio review --profile rio/security · blind quorum council 3-VOTER QUORUM
Rio security council terminal UI displaying OWASP checks, trace input to sink, and blind multi-voter quorum votes.
02 · HOSTED AI & BLIND COUNCIL

Multi-agent review with blind verification.

Pick --preset quick, standard or deep. Specialist agents check correctness, security, performance, tests and contracts using bounded slices from the local impact graph. Independent blind voters then confirm or reject each proposed issue before it reaches your terminal or pull request.

--preset quick Fast, critical-only
--preset standard Balanced everyday
--preset deep Thorough council

03 · TEAM PR AUTOMATION & MEMORY

Automated PR comments that remember dismissals.

GitHub App & Feedback docs →

Publish preview & PR policy

publish: ask | auto | never
Rio publish preview TUI screen showing inline PR comments awaiting confirmation before posting to GitHub.

Review inline comments locally before posting, or automate on PR open/push with /rio review and /rio dismiss.

Finding history across rounds

rio review --since-last
Rio finding history TUI screen tracking new, regressed, resolved, and dismissed findings across PR commits.

Track new, worsened, resolved, and dismissed findings across commits so recurring noise stays suppressed.

04 · PRE-PUSH HOOKS & AI-GENERATED CODE

Catch regressions before they reach a pull request.

Waiting for a GitHub PR bot wastes minutes per push and clutters review threads with broken imports, missed edge cases, and leaked credentials. Running Rio before push gives immediate terminal feedback while the code is still in your head, and works equally well as a verification gate after coding agents like Claude Code, Codex, or Cursor edit your tree.

  • Gate pushes locally with deterministic exit codes (0 pass, 1 policy fail, 4 skipped required check)
  • Pipe rio review --format json back to your coding agent so it fixes compiler and coverage issues autonomously
  • Add --profile rio/openrouter --preset quick before opening a PR for an optional AI second pass
.git/hooks/pre-push
#!/usr/bin/env sh
# .git/hooks/pre-push
# Run deterministic local checks before pushing commits to remote.
set -e
rio review --base origin/main --offline --no-tui
Tip for coding agents: Run rio review --staged --format json after an agent applies a patch. Rio reports changed-line test coverage, downstream callers from the impact graph, and static errors in one bounded JSON payload.

WORKFLOWS FAQ

Common questions about Rio review modes.

How do I run AI code review before push without slowing down commits?

Use rio review --staged for fast pre-commit checks or wire rio review --base origin/main --offline --no-tui into .git/hooks/pre-push. Local checks execute in seconds using your repo tools, and you can opt into hosted AI presets (--preset quick or standard) before opening a PR.

Does Rio work well for reviewing AI-generated code from Claude Code, Codex, or Cursor?

Yes. Coding agents frequently leave subtle type errors, untested branches, or broken downstream callers. Rio runs your real compiler, linter, changed-line coverage, and local impact graph on the agent diff before you commit or push, and agents can also run rio review --format json directly.

What is the difference between --preset quick, standard, and deep?

Quick focuses on high-severity findings with tighter token budgets for fast iteration. Standard balances speed and specialist coverage for everyday branches and PRs. Deep runs thorough multi-agent analysis and optional independent council voting for security-sensitive or large diffs.

How does finding memory work across pull request commits?

When connected to a Cloudflare endpoint, rio review --since-last tracks finding lineage across commits in D1/R2. Resolved items close automatically, regressions reopen with context, and dismissed patterns via rio feedback or /rio dismiss stay suppressed on future pushes.