Publish preview & PR policy
publish: ask | auto | never
Review inline comments locally before posting, or automate on PR open/push with /rio review and /rio dismiss.
WORKFLOWS · LOCAL, PRE-PUSH, AND TEAM PRs
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.
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
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
publish: ask | auto | never
Review inline comments locally before posting, or automate on PR open/push with /rio review and /rio dismiss.
rio review --since-last
Track new, worsened, resolved, and dismissed findings across commits so recurring noise stays suppressed.
04 · PRE-PUSH HOOKS & AI-GENERATED CODE
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.
#!/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 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
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.
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.
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.
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.