| name | roborev-guide |
| description | Guide for using roborev continuous background code review. Use when the user asks about roborev install paths, git hooks, daemon status, review results, TUI, show/list/log commands, agent/model configuration, Codex/Claude/Pi agent settings, post-commit behavior, auto-fix, refine, or troubleshooting roborev review jobs. |
roborev Guide
Core rule: Never run commands that modify code, commits, hooks, or roborev config without explicit user confirmation.
Intent Routing
| Intent | Action |
|---|
| install/setup in a repo | roborev init [--agent <name>] (confirm first) |
| inspect paths | which roborev, read hooks/config files |
| check daemon | roborev status |
| view review result | roborev show, roborev show HEAD, roborev show <sha>, roborev show --job <id> |
| list reviews | roborev list, roborev list --open, roborev list --status failed |
| configure agent/model | roborev config list, edit ~/.roborev/config.toml |
| troubleshoot | roborev status, roborev check-agents, read logs |
| run fix/refine | explain difference, confirm before executing |
Installation & Version
which roborev
roborev version
- Installed via Homebrew:
/opt/homebrew/Cellar/roborev/<version>/bin/roborev
- Repo-level config (per-repo):
.roborev.toml
Path Reference
| Path | Description |
|---|
/opt/homebrew/bin/roborev | Binary (typical) |
~/.roborev/config.toml | Global config |
~/.roborev/reviews.db | SQLite review database |
~/.roborev/logs/jobs/ | Job log files |
~/.roborev/activity.log | Activity log |
~/.roborev/errors.log | Error log |
~/.roborev/post-commit.log | Post-commit hook log |
.roborev.toml | Per-repo config (repo root) |
.git/hooks/post-commit | Post-commit hook |
.git/hooks/post-rewrite | Post-rewrite hook |
Inspection Commands (read-only, safe)
Daemon & Queue
roborev status
roborev status --json
Example output:
Daemon: running (uptime: 15m 28s) [v0.55.0]
Workers: 0/4 active
Jobs: 0 queued, 0 running, 4 completed, 0 failed, 0 skipped
Health: OK
+ database: healthy
+ workers: healthy
Review Jobs
roborev list
roborev list --open
roborev list --status done
roborev list --status failed
roborev list --status queued
roborev list --branch main
roborev list --limit 10
roborev list --json
Review Results
roborev show
roborev show HEAD
roborev show <sha>
roborev show <job-id>
roborev show --job <job-id>
roborev show --json <job-id>
roborev show --prompt <job-id>
Agent Logs
roborev log <job-id>
roborev log --raw <job-id>
roborev log --path <job-id>
roborev log clean
Wait for Completion
roborev wait
roborev wait <sha>
roborev wait --job <id>
roborev wait --job 10 20 30
Hook Inspection
ls -la .git/hooks/post-commit
ls -la .git/hooks/post-rewrite
read .git/hooks/post-commit
read .git/hooks/post-rewrite
Config Inspection
roborev config list
roborev config get <key>
read ~/.roborev/config.toml
read .roborev.toml
Agent & Model Configuration
Config file: ~/.roborev/config.toml
Key configuration fields:
default_agent = 'codex'
default_model = ''
review_agent = ''
review_model = ''
review_reasoning = ''
refine_agent = ''
refine_model = ''
refine_reasoning = ''
fix_agent = ''
fix_model = ''
fix_reasoning = ''
security_agent = ''
security_model = ''
design_agent = ''
design_model = ''
review_agent_standard = ''
review_agent_thorough = ''
review_agent_maximum = ''
refine_agent_fast = ''
refine_agent_standard = ''
review_model_thorough = ''
review_model_maximum = ''
refine_model_thorough = ''
refine_model_maximum = ''
review_backup_agent = ''
refine_backup_agent = ''
fix_backup_agent = ''
review_min_severity = ''
refine_min_severity = ''
fix_min_severity = ''
codex_cmd = 'codex'
claude_code_cmd = 'claude'
pi_cmd = 'pi'
opencode_cmd = 'opencode'
cursor_cmd = 'agent'
[agent.codex]
disable_review_skills = true
ignore_review_user_config = true
Supported Agents
Checked automatically by roborev check-agents:
| Config name | CLI command |
|---|
codex | codex |
claude-code | claude |
gemini | (Gemini CLI) |
copilot | (GitHub Copilot CLI) |
opencode | opencode |
cursor | agent |
pi | pi |
Reasoning Levels
Each workflow supports per-level agent and model overrides.
Levels: fast, standard (default), medium, thorough, maximum.
For roborev fix and roborev refine, pass --reasoning:
roborev fix --reasoning thorough
roborev refine --reasoning maximum
Common Configuration Patterns
Set a default agent:
roborev config set default_agent codex
Set review-specific agent:
roborev config set review_agent claude-code
Set model for thorough reviews:
roborev config set review_model_thorough claude-sonnet-4-20250514
Set agent CLI path:
roborev config set codex_cmd /path/to/codex
After config changes, restart daemon:
roborev daemon restart
Check agents are working:
roborev check-agents
Post-Commit Workflow
Normal Flow
git commit → post-commit hook fires
- Hook calls
roborev post-commit → job enqueued
- Daemon picks up job → agent reviews the diff
- Job completes → result stored in
~/.roborev/reviews.db
- View result:
roborev show or roborev show HEAD
Review-Fix Loop
After seeing review findings, confirm before fixing:
roborev show
roborev list --open
Two modes for addressing findings:
| Command | Behavior | Confirm? |
|---|
roborev fix | Single-pass fix. Agent applies changes and commits. No re-review. | ✅ Yes |
roborev refine | Iterative loop. Fix → commit → wait for re-review → repeat until pass or max iterations. Uses isolated worktree. | ✅ Yes |
refine examples:
roborev refine
roborev refine --list
roborev refine --reasoning thorough
roborev refine --max-iterations 5
roborev refine --since <base-commit>
roborev refine --branch main
fix examples:
roborev fix
roborev fix 123
roborev fix 123 124 125
roborev fix --batch-size 5
roborev fix --agent claude-code
roborev fix --reasoning medium
roborev fix --min-severity high
Safety Gates
Always confirm before running these commands:
| Command | Risk |
|---|
roborev init | Creates hooks, config, starts daemon |
roborev install-hook | Modifies .git/hooks/ |
roborev uninstall-hook | Removes hooks |
roborev fix | Modifies code and commits |
roborev refine | Modifies code and commits (iteratively) |
roborev update | Updates binary |
roborev daemon restart | Restarts background service |
roborev config set | Changes runtime behavior |
git commit | Creates commits |
git reset | Rewrites history |
git rebase | Rewrites history |
Always confirm before editing these files:
| File | Purpose |
|---|
~/.roborev/config.toml | Global config |
.roborev.toml | Per-repo config |
.git/hooks/post-commit | Post-commit hook |
.git/hooks/post-rewrite | Post-rewrite hook |
Troubleshooting
Daemon not running
roborev status
roborev daemon start
roborev daemon restart
Post-commit hook didn't fire
ls -la .git/hooks/post-commit
read .git/hooks/post-commit
roborev install-hook --force
Job stuck in "queued"
roborev status
roborev daemon restart
Agent not responding
roborev check-agents
roborev check-agents --agent codex
roborev check-agents --timeout 30
Wrong model/agent being used
roborev config list
read ~/.roborev/config.toml
roborev daemon restart
Git index lock
ps aux | grep git
Job failed
roborev show <job-id>
roborev log <job-id>
roborev list --status failed
Per-Repo Config (.roborev.toml)
Optional. Placed in repo root. Supports:
review_guidelines — custom review rules string
exclude_patterns — globs to exclude from review diffs
- Agent/model overrides scoped to the repo
Summary Commands
roborev summary
roborev insights
roborev insights --since 7d
roborev insights --agent gemini
TUI
roborev tui
TUI key features:
- Queue view with job status, branch, agent, time
- Filter by repo/branch/status
- Mouse support (configurable)
- Customizable columns