roborev 0.77.0__py3-none-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
roborev/__init__.py
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import importlib.metadata
|
|
4
|
+
import os
|
|
5
|
+
import shutil
|
|
6
|
+
import stat
|
|
7
|
+
import subprocess
|
|
8
|
+
import sys
|
|
9
|
+
import sysconfig
|
|
10
|
+
from pathlib import Path
|
|
11
|
+
|
|
12
|
+
_BINARY_NAME = 'roborev.exe'
|
|
13
|
+
_DIST_INFO = 'roborev-0.77.0.dist-info'
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def _find_in_distribution_record() -> Path | None:
|
|
17
|
+
for pkg_file in (Path(__file__), Path(__file__).resolve()):
|
|
18
|
+
dist_info = pkg_file.parent.parent / _DIST_INFO
|
|
19
|
+
if not dist_info.is_dir():
|
|
20
|
+
continue
|
|
21
|
+
dist = importlib.metadata.PathDistribution(dist_info)
|
|
22
|
+
for entry in dist.files or ():
|
|
23
|
+
if entry.name == _BINARY_NAME:
|
|
24
|
+
candidate = Path(dist.locate_file(entry)).resolve()
|
|
25
|
+
if candidate.is_file():
|
|
26
|
+
return candidate
|
|
27
|
+
return None
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def _find_in_matching_scheme() -> Path | None:
|
|
31
|
+
pkg_dir = Path(__file__).resolve().parent
|
|
32
|
+
for scheme in sysconfig.get_scheme_names():
|
|
33
|
+
scripts = sysconfig.get_path("scripts", scheme)
|
|
34
|
+
if not scripts:
|
|
35
|
+
continue
|
|
36
|
+
for lib_key in ("platlib", "purelib"):
|
|
37
|
+
lib_dir = sysconfig.get_path(lib_key, scheme)
|
|
38
|
+
if not lib_dir:
|
|
39
|
+
continue
|
|
40
|
+
try:
|
|
41
|
+
pkg_dir.relative_to(Path(lib_dir).resolve())
|
|
42
|
+
except ValueError:
|
|
43
|
+
continue
|
|
44
|
+
candidate = Path(scripts) / _BINARY_NAME
|
|
45
|
+
if candidate.is_file():
|
|
46
|
+
return candidate
|
|
47
|
+
return None
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
def find_binary() -> Path:
|
|
51
|
+
for finder in (_find_in_distribution_record, _find_in_matching_scheme):
|
|
52
|
+
found = finder()
|
|
53
|
+
if found is not None:
|
|
54
|
+
return found
|
|
55
|
+
candidates: list[Path] = []
|
|
56
|
+
scripts = sysconfig.get_path("scripts")
|
|
57
|
+
if scripts:
|
|
58
|
+
candidates.append(Path(scripts) / _BINARY_NAME)
|
|
59
|
+
candidates.append(Path(sys.executable).parent / _BINARY_NAME)
|
|
60
|
+
for candidate in candidates:
|
|
61
|
+
if candidate.is_file():
|
|
62
|
+
return candidate
|
|
63
|
+
which = shutil.which(_BINARY_NAME)
|
|
64
|
+
if which is not None:
|
|
65
|
+
return Path(which)
|
|
66
|
+
raise FileNotFoundError(
|
|
67
|
+
f"Could not find installed {_BINARY_NAME!r} executable."
|
|
68
|
+
)
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
def main() -> None:
|
|
72
|
+
binary = find_binary()
|
|
73
|
+
if os.name == "nt":
|
|
74
|
+
raise SystemExit(subprocess.call([str(binary), *sys.argv[1:]]))
|
|
75
|
+
mode = binary.stat().st_mode
|
|
76
|
+
if not (mode & stat.S_IXUSR):
|
|
77
|
+
binary.chmod(mode | stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH)
|
|
78
|
+
os.execvp(str(binary), [str(binary), *sys.argv[1:]])
|
roborev/__main__.py
ADDED
|
@@ -0,0 +1,557 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: roborev
|
|
3
|
+
Version: 0.77.0
|
|
4
|
+
Summary: Continuous background code review database for coding agents
|
|
5
|
+
Home-page: https://github.com/kenn-io/roborev
|
|
6
|
+
Project-URL: Repository, https://github.com/kenn-io/roborev
|
|
7
|
+
Author: Kenn Software, Inc.
|
|
8
|
+
License: MIT
|
|
9
|
+
Requires-Python: >=3.9
|
|
10
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
last_edited: 2026-11-08
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
<p align="center">
|
|
19
|
+
<picture>
|
|
20
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://roborev.io/docs/assets/static/logo-with-text-dark-bg.svg">
|
|
21
|
+
<img alt="roborev" src="https://roborev.io/docs/assets/static/logo-with-text-light.svg">
|
|
22
|
+
</picture>
|
|
23
|
+
</p>
|
|
24
|
+
|
|
25
|
+
<p align="center">
|
|
26
|
+
<a href="https://go.dev/"><img src="https://img.shields.io/badge/Go-1.27.4+-00ADD8?logo=go&logoColor=white" alt="Go 1.27.4+"></a>
|
|
27
|
+
<a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT"></a>
|
|
28
|
+
<a href="https://roborev.io"><img src="https://img.shields.io/badge/Docs-roborev.io-blue" alt="Docs"></a>
|
|
29
|
+
</p>
|
|
30
|
+
|
|
31
|
+
<p align="center">
|
|
32
|
+
<a href="https://roborev.io/docs/">Documentation</a> ·
|
|
33
|
+
<a href="https://roborev.io/docs/quickstart/">Quick Start</a> ·
|
|
34
|
+
<a href="https://roborev.io/docs/installation/">Installation</a>
|
|
35
|
+
</p>
|
|
36
|
+
|
|
37
|
+
**Continuous code review for AI coding agents.**
|
|
38
|
+
|
|
39
|
+
roborev runs in the background, reviews every commit as agents write code,
|
|
40
|
+
and surfaces issues in seconds -- before they compound. Pull code reviews
|
|
41
|
+
into your agentic loop while context is fresh.
|
|
42
|
+
|
|
43
|
+
<p align="center">
|
|
44
|
+
<img src="https://roborev.io/docs/assets/generated/web-ui.png" alt="Roborev browser application">
|
|
45
|
+
</p>
|
|
46
|
+
|
|
47
|
+
## How It Works
|
|
48
|
+
|
|
49
|
+
1. Run `roborev init` to install a post-commit hook
|
|
50
|
+
2. Every commit triggers a background review -- agents write, roborev reads
|
|
51
|
+
3. View findings in the TUI, feed them to your agent, or let `roborev fix` handle it
|
|
52
|
+
|
|
53
|
+
### Automation, two layers
|
|
54
|
+
|
|
55
|
+

|
|
56
|
+
|
|
57
|
+
- **Post-commit reviews** - a git hook reviews every commit in the background (any agent).
|
|
58
|
+
- **Agent hook** - watches supported coding-agent sessions and brings open
|
|
59
|
+
roborev findings back into the active workflow.
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
roborev init # layer 1: per-commit reviews
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
roborev agent setup # layer 2: wire Claude Code and Codex
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
For other supported agents, run `roborev agent hook install --agent all`.
|
|
70
|
+
|
|
71
|
+
Before you ship, run the `/roborev-refine` skill: it re-reviews and fixes your
|
|
72
|
+
whole branch until every review passes, catching bugs before the PR.
|
|
73
|
+
|
|
74
|
+
New here? Run `roborev quickstart` and point your agent at it.
|
|
75
|
+
|
|
76
|
+
Add `--mcp` to `roborev agent setup` to register MCP. If Codex asks you to
|
|
77
|
+
review hooks, run `/hooks` in Codex, then `roborev agent setup --check`.
|
|
78
|
+
|
|
79
|
+
## Quick Start
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
cd your-repo
|
|
83
|
+
roborev init # Install post-commit hook
|
|
84
|
+
git commit -m "..." # Reviews happen automatically
|
|
85
|
+
roborev tui # View reviews in interactive UI
|
|
86
|
+
roborev ui # Open reviews in the native browser UI
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
If roborev is managed by a version manager, `roborev init` and
|
|
90
|
+
`roborev agent hook install` try to install hooks with the stable shim/symlink.
|
|
91
|
+
You can also choose the exact binary path with
|
|
92
|
+
`roborev init --binary ~/.local/share/mise/shims/roborev`, or
|
|
93
|
+
`roborev agent hook install --binary ~/.local/share/mise/shims/roborev`.
|
|
94
|
+
|
|
95
|
+

|
|
96
|
+
|
|
97
|
+
## What you can do
|
|
98
|
+
|
|
99
|
+
- **Background Reviews** - Every commit is reviewed automatically via
|
|
100
|
+
git hooks. No remote review workflow required.
|
|
101
|
+
- **Auto-Fix** - `roborev fix` feeds review findings to an agent that
|
|
102
|
+
applies fixes and commits. `roborev refine` iterates until reviews pass.
|
|
103
|
+
- **Agent Hook** - Optional hooks for Claude Code, Codex, Copilot CLI, Cursor,
|
|
104
|
+
Factory Droid, Gemini CLI, Hermes, and Qwen bring open findings back into the
|
|
105
|
+
active agent session.
|
|
106
|
+
- **Custom Reviews** - Write your own rubrics and run them as review panels,
|
|
107
|
+
for code or for documents such as legal drafts. `/roborev-setup-review`
|
|
108
|
+
interviews you and writes the setup. Reviewers can read PDFs that a commit
|
|
109
|
+
adds or changes, and strict review types get only read tools plus the MCP
|
|
110
|
+
tools you grant.
|
|
111
|
+
- **Code Analysis** - Built-in analysis types (duplication, complexity,
|
|
112
|
+
refactoring, test fixtures, dead code, security) that agents can fix
|
|
113
|
+
automatically.
|
|
114
|
+
- **Multi-Agent** - Works with Codex, Claude Code, Gemini, Copilot,
|
|
115
|
+
OpenCode, Cursor, Kiro, Kilo, Droid, Pi, and Muse Code.
|
|
116
|
+
- **Runs Locally** - No hosted service or additional infrastructure.
|
|
117
|
+
Reviews are orchestrated on your machine using the coding agents
|
|
118
|
+
you already have configured.
|
|
119
|
+
- **Interactive TUI** - Real-time review queue with vim-style navigation.
|
|
120
|
+
Large terminals show the queue and selected review in a split-screen layout.
|
|
121
|
+
- **Native Browser UI** - Browse, filter, inspect, comment on, close, cancel,
|
|
122
|
+
and rerun reviews from the application embedded in the local daemon, then
|
|
123
|
+
explore cost, latency, reliability, and outcomes in Analytics.
|
|
124
|
+
- **Review Verification** - `roborev job compact` verifies findings against
|
|
125
|
+
current code, filters false positives, and consolidates related issues
|
|
126
|
+
into a single review.
|
|
127
|
+
- **Review History Search** - Search completed reviews across repositories by
|
|
128
|
+
keyword or meaning. Lexical search stays local and needs no embedding
|
|
129
|
+
provider; semantic and hybrid modes are optional.
|
|
130
|
+
- **Extensible Hooks** - Run shell commands on review events. Built-in
|
|
131
|
+
[beads](https://github.com/steveyegge/beads) and [kata](https://github.com/kenn-io/kata)
|
|
132
|
+
integrations create trackable issues from review failures automatically.
|
|
133
|
+
|
|
134
|
+
## The Agentic Fix Loop
|
|
135
|
+
|
|
136
|
+
When reviews find issues, copy-and-paste the reviews into your
|
|
137
|
+
interactive agent sessions, or invoke `/roborev-fix` in Claude Code
|
|
138
|
+
or `$roborev-fix` in Codex. You can also address open reviews on the
|
|
139
|
+
command line non-interactively with `roborev fix`.
|
|
140
|
+
|
|
141
|
+
`roborev fix` shows the review findings to an agent, which applies
|
|
142
|
+
changes and commits. The new commit gets reviewed automatically,
|
|
143
|
+
closing the loop.
|
|
144
|
+
|
|
145
|
+
`roborev agent hook install` auto-detects installed Claude Code, Codex, Copilot
|
|
146
|
+
CLI, Cursor, Factory Droid, Gemini CLI, Hermes, Qwen, Grok Build, and ZCode
|
|
147
|
+
harnesses
|
|
148
|
+
and adds optional hooks after configured turn, commit, or failed-review
|
|
149
|
+
thresholds are met.
|
|
150
|
+
Reminders name exact review IDs and invoke the bundled `roborev-fix` skill.
|
|
151
|
+
<!-- release-commands: expected-failure -->
|
|
152
|
+
Never run `roborev fix --open`.
|
|
153
|
+
|
|
154
|
+
Hook installation updates bundled skills for every supported profile. Hermes delivers queued
|
|
155
|
+
post-tool reminders at `Stop`; Cursor records the same events but emits no control
|
|
156
|
+
response.
|
|
157
|
+
Installed hooks post events to the regular roborev daemon. That daemon evaluates
|
|
158
|
+
the reminders and persists session counters and delivered review IDs in
|
|
159
|
+
`${ROBOREV_DATA_DIR:-~/.roborev}/agent-hook/state.json`. Hook callbacks fail open
|
|
160
|
+
when the daemon is unavailable, so they do not block the coding agent.
|
|
161
|
+
|
|
162
|
+
For fully automated iteration (advanced feature), use `refine`:
|
|
163
|
+
|
|
164
|
+
```bash
|
|
165
|
+
roborev refine # Fix, re-review, repeat until passing
|
|
166
|
+
roborev refine --plan # Plan each fix before editing
|
|
167
|
+
roborev refine --plan-only # Inspect plans for existing failed reviews
|
|
168
|
+
roborev refine --skip-trivial-rereview # Do not wait on docs/test-only fix re-reviews
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
`refine` runs in an isolated worktree and loops: fix findings, wait for
|
|
172
|
+
re-review, fix again, until all reviews pass or `--max-iterations` is hit.
|
|
173
|
+
|
|
174
|
+
## Rebutting a Finding
|
|
175
|
+
|
|
176
|
+
Use a stored reviewer session to re-evaluate one finding with your explanation:
|
|
177
|
+
|
|
178
|
+
```bash
|
|
179
|
+
roborev job comment 42 --rebuttal --finding "Missing null check in handler." \
|
|
180
|
+
-m "The caller rejects null input before invoking the handler."
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
The assessment is saved as a comment. Add `--close` to close the whole review
|
|
184
|
+
once it is recorded. See
|
|
185
|
+
[Responding to Reviews](https://roborev.io/guides/responding-to-reviews/) for
|
|
186
|
+
supported agents and recovery.
|
|
187
|
+
|
|
188
|
+
## Code Analysis
|
|
189
|
+
|
|
190
|
+
Run targeted analysis across your codebase and optionally auto-fix:
|
|
191
|
+
|
|
192
|
+
```bash
|
|
193
|
+
roborev analyze duplication ./... # Find duplication
|
|
194
|
+
roborev analyze refactor --fix *.go # Suggest and apply refactors
|
|
195
|
+
roborev analyze complexity --wait main.go # Analyze and show results
|
|
196
|
+
roborev analyze test-fixtures *_test.go # Find test helper opportunities
|
|
197
|
+
roborev analyze security ./... # Find security risks in existing code
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
Available types: `test-fixtures`, `duplication`, `refactor`, `complexity`,
|
|
201
|
+
`api-design`, `dead-code`, `architecture`, `security`.
|
|
202
|
+
|
|
203
|
+
Analysis jobs appear in the review queue. Use `roborev fix` to apply
|
|
204
|
+
open findings later, target a specific job with `roborev fix <id>`, or
|
|
205
|
+
pass `--fix` to apply immediately.
|
|
206
|
+
|
|
207
|
+
Analysis types can pin their own agent settings in config:
|
|
208
|
+
|
|
209
|
+
```toml
|
|
210
|
+
[analyze.refactor]
|
|
211
|
+
agent = "claude-code"
|
|
212
|
+
model = "sonnet"
|
|
213
|
+
reasoning = "fast"
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
## Installation
|
|
217
|
+
|
|
218
|
+
**macOS ([Homebrew](https://formulae.brew.sh/formula/roborev)):**
|
|
219
|
+
```bash
|
|
220
|
+
brew install roborev
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
Homebrew manages updates with `brew upgrade roborev`.
|
|
224
|
+
|
|
225
|
+
**Linux (install script):**
|
|
226
|
+
```bash
|
|
227
|
+
curl -fsSL https://roborev.io/install.sh | bash
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
Linux users can also install a [DEB or RPM package](https://roborev.io/docs/installation/#linux-packages-deb-and-rpm).
|
|
231
|
+
|
|
232
|
+
**Windows (PowerShell):**
|
|
233
|
+
```powershell
|
|
234
|
+
powershell -ExecutionPolicy ByPass -c "irm https://roborev.io/install.ps1 | iex"
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
**With Go:**
|
|
238
|
+
```bash
|
|
239
|
+
go install go.kenn.io/roborev/cmd/roborev@latest
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
The Go module source archive does not include generated browser assets. This
|
|
243
|
+
installation path provides the CLI and terminal UI; install a release package
|
|
244
|
+
or build with `make install` for the embedded browser application.
|
|
245
|
+
|
|
246
|
+
## Developer Setup
|
|
247
|
+
|
|
248
|
+
This repo uses [`prek`](https://prek.j178.dev/) for local Git hooks. Commits
|
|
249
|
+
run only the Renovate config validator and jactionlint, and only when
|
|
250
|
+
`renovate.json` or a workflow file changes. The whole-repo checks run on push:
|
|
251
|
+
a Git-test isolation guard, `make lint-ci` for non-mutating Go lint,
|
|
252
|
+
`make markdown-ci` for Zensical Markdown formatting, and the web check and test
|
|
253
|
+
scripts when web files change. If you installed the hooks before, rerun
|
|
254
|
+
`prek install` to add the pre-push hook.
|
|
255
|
+
|
|
256
|
+
```bash
|
|
257
|
+
brew install prek uv # or use your preferred install method
|
|
258
|
+
mise use --global npm:renovate@latest
|
|
259
|
+
prek install # install the pre-commit and pre-push hooks
|
|
260
|
+
prek run --all-files --hook-stage pre-push # run the push checks manually
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
Use `make lint` when you explicitly want golangci-lint to apply fixes. Use
|
|
264
|
+
`make markdown` to wrap prose in published Zensical pages at 80 columns while
|
|
265
|
+
leaving Markdown tables unchanged. Use `make check-renovate-config` to validate
|
|
266
|
+
`renovate.json` directly.
|
|
267
|
+
|
|
268
|
+
## Commands
|
|
269
|
+
|
|
270
|
+
| Command | Description |
|
|
271
|
+
|---------|-------------|
|
|
272
|
+
| `roborev init` | Initialize roborev in current repo |
|
|
273
|
+
| `roborev tui` | Interactive terminal UI |
|
|
274
|
+
| `roborev daemon status` | Show daemon, browser UI, and queue status |
|
|
275
|
+
| `roborev review <sha>` | Queue a commit for review |
|
|
276
|
+
| `roborev review --branch` | Review all commits on current branch |
|
|
277
|
+
| `roborev review --dirty` | Review uncommitted changes |
|
|
278
|
+
| `roborev fix` | Fix open reviews (or specify job IDs) |
|
|
279
|
+
| `roborev refine` | Auto-fix loop: fix, re-review, repeat |
|
|
280
|
+
| `roborev analyze <type>` | Run code analysis with optional auto-fix |
|
|
281
|
+
| `roborev agent hook install` | Install hooks for detected coding agents |
|
|
282
|
+
| `roborev agent hook install --agent all` | Install all nine supported integrations |
|
|
283
|
+
| `roborev agent hook snooze` | Silence Agent Hook reminders in the current worktree and branch |
|
|
284
|
+
| `roborev agent hook snooze off` | Resume Agent Hook reminders in the current worktree and branch |
|
|
285
|
+
| `roborev job compact` | Verify and consolidate open review findings |
|
|
286
|
+
| `roborev job show [sha]` | Display review for commit |
|
|
287
|
+
| `roborev job search <query>...` | Search completed review history across repositories |
|
|
288
|
+
| `roborev export reviews` | Export completed reviews as JSON |
|
|
289
|
+
| `roborev export ci-metrics` | Export finalized CI panel metrics as JSON |
|
|
290
|
+
| `roborev export ci-costs` | Export job-level CI costs as JSON |
|
|
291
|
+
| `roborev run "<task>"` | Execute a task with an AI agent |
|
|
292
|
+
| `roborev job close <id>` | Close a review |
|
|
293
|
+
| `roborev agent skills install` | Install bundled skills for supported agent profiles |
|
|
294
|
+
|
|
295
|
+
See [full command reference](https://roborev.io/docs/commands/) for all options.
|
|
296
|
+
|
|
297
|
+
Review history search is global by default and supports repository, branch,
|
|
298
|
+
time, verdict, and open/closed filters. Lexical search works with no provider
|
|
299
|
+
configuration or network call. See the
|
|
300
|
+
[search guide](https://roborev.io/docs/search/) for semantic and hybrid setup,
|
|
301
|
+
freshness, privacy, and recovery behavior.
|
|
302
|
+
|
|
303
|
+
### Exporting review history
|
|
304
|
+
|
|
305
|
+
Use `roborev export reviews` to emit completed reviews as one JSON document for
|
|
306
|
+
local reporting or archival workflows:
|
|
307
|
+
|
|
308
|
+
```bash
|
|
309
|
+
roborev export reviews
|
|
310
|
+
roborev export reviews --profile metadata --since 2026-06-01 --until 2026-06-30
|
|
311
|
+
roborev export reviews --closed-only --repo github.com/org/repo --limit 1000
|
|
312
|
+
roborev export reviews --cursor "$NEXT_CURSOR" --until 2026-07-01
|
|
313
|
+
```
|
|
314
|
+
|
|
315
|
+
The default `content` profile includes each review twice: `document` is the
|
|
316
|
+
stored JSON review document with the summary, verdict, and findings, and
|
|
317
|
+
`content` is the Markdown rendering of it. Review text may contain sensitive
|
|
318
|
+
repository details, so handle exported files carefully.
|
|
319
|
+
Use `--profile metadata` when you only need identifiers, timestamps, verdicts,
|
|
320
|
+
cost metadata, and related review metadata.
|
|
321
|
+
|
|
322
|
+
Exports include a stable `database_id` for the local review database and, when
|
|
323
|
+
at least one review is emitted, an opaque `next_cursor`. Pass
|
|
324
|
+
`--cursor <next_cursor>` to resume after the previous page; `--cursor` cannot
|
|
325
|
+
be combined with `--since`. If a cursor belongs to a previous database
|
|
326
|
+
generation, `roborev export reviews` exits with code `3`; discard the cursor
|
|
327
|
+
and retry with a window backfill. Other cursor rejections also require
|
|
328
|
+
discarding the cursor before backfilling.
|
|
329
|
+
|
|
330
|
+
Each exported review reports `closed` and `updated_at`. Closing or reopening a
|
|
331
|
+
review does not move it past a `completed_at` cursor, so combine the cursor pull
|
|
332
|
+
with `roborev export reviews --updated-since <time>` to pick up later close and
|
|
333
|
+
reopen changes. See the
|
|
334
|
+
[export reference](https://roborev.io/docs/commands/#exporting-reviews).
|
|
335
|
+
|
|
336
|
+
Use `roborev export ci-metrics` to emit finalized CI panel runs — terminal
|
|
337
|
+
outcome (`review_posted`, `review_suppressed`, `no_review_posted`,
|
|
338
|
+
`giveup_posted`, `abandoned`, or `unknown` for panels finalized before outcomes
|
|
339
|
+
were recorded), first-attempt and posting timestamps, attempt count, and each
|
|
340
|
+
panel's member/synthesis jobs — for external review turnaround tracking.
|
|
341
|
+
`giveup_posted` is a historical outcome; exhausted retries now finish with
|
|
342
|
+
`no_review_posted` and an error status without a PR comment. The export follows
|
|
343
|
+
the same cursor contract as `roborev export reviews`, ordered by `posted_at`,
|
|
344
|
+
and exits with code `3` when a cursor's `database_id` no longer matches so
|
|
345
|
+
callers can discard the cursor and backfill.
|
|
346
|
+
|
|
347
|
+
Pass `--legacy` to export the frozen pre-panel CI era instead (rows with
|
|
348
|
+
outcome `legacy_review`, one per reviewed PR head, from before panel runs
|
|
349
|
+
existed) as a one-time backfill; legacy and panel cursors are namespaced
|
|
350
|
+
and cannot be resumed against each other's export.
|
|
351
|
+
|
|
352
|
+
Use `roborev export ci-costs` to emit cost-eligible CI jobs, including terminal
|
|
353
|
+
retry attempts that are no longer retained by a panel. Each row records its
|
|
354
|
+
completion time, agent, panel role, terminal status, and estimated USD cost.
|
|
355
|
+
Jobs whose agent ran but whose model cannot be priced remain present with
|
|
356
|
+
`cost_usd: null`; a reported free run is represented as `0`.
|
|
357
|
+
|
|
358
|
+
Cost rows are ordered by `(finished_at, job_id)` for stable pagination. A fresh
|
|
359
|
+
export over an overlapping window returns the current price for every matching
|
|
360
|
+
job, so idempotent consumers can pick up pricing recorded after an earlier
|
|
361
|
+
export. The export follows the same database-reset and opaque-cursor contract
|
|
362
|
+
as the other exports. `--legacy` selects the structurally identified pre-panel
|
|
363
|
+
CI era for a one-time historical backfill; regular and legacy cost cursors
|
|
364
|
+
cannot be mixed.
|
|
365
|
+
|
|
366
|
+
## Configuration
|
|
367
|
+
|
|
368
|
+
Create `.roborev.toml` in your repo:
|
|
369
|
+
|
|
370
|
+
```toml
|
|
371
|
+
agent = "claude-code"
|
|
372
|
+
snapshot_dir = ".roborev"
|
|
373
|
+
review_guidelines = """
|
|
374
|
+
Project-specific review instructions here.
|
|
375
|
+
"""
|
|
376
|
+
# Optional: use repo guidelines instead of appending global review_guidelines.
|
|
377
|
+
review_guidelines_supersede_global = false
|
|
378
|
+
|
|
379
|
+
# Optional: metadata for roborev-owned fix commits and prompt hints for agent-owned fix commits.
|
|
380
|
+
fix_commit_author = "Your Name <you@example.com>"
|
|
381
|
+
fix_commit_co_authored_by = ["Pair Reviewer <pair@example.com>"]
|
|
382
|
+
```
|
|
383
|
+
|
|
384
|
+
You can also set `review_guidelines` in `~/.roborev/config.toml`. Global
|
|
385
|
+
guidelines apply to every repo and are appended before repo guidelines by
|
|
386
|
+
default.
|
|
387
|
+
|
|
388
|
+
`snapshot_dir` must be repo-relative. `roborev init` ensures it is ignored in `.gitignore`; snapshot creation also adds a local `.git/info/exclude` fallback for existing checkouts whose ignore setup is stale.
|
|
389
|
+
|
|
390
|
+
See [configuration guide](https://roborev.io/docs/configuration/) for all options.
|
|
391
|
+
|
|
392
|
+
### Kata task context
|
|
393
|
+
|
|
394
|
+
If your repo is bound to a [kata](https://github.com/kenn-io/kata) project (a
|
|
395
|
+
committed `.kata.toml`), roborev can pull the kata issue(s) referenced in the
|
|
396
|
+
reviewed commit messages into the review prompt, and file review findings back
|
|
397
|
+
as kata issues.
|
|
398
|
+
|
|
399
|
+
```toml
|
|
400
|
+
# .roborev.toml
|
|
401
|
+
[kata_context]
|
|
402
|
+
mode = "current" # off (default) | current | open
|
|
403
|
+
max_chars = 50000 # cap on kata context bytes in the prompt
|
|
404
|
+
|
|
405
|
+
# File a kata issue when a review fails or returns findings:
|
|
406
|
+
[[hooks]]
|
|
407
|
+
event = "review.*"
|
|
408
|
+
type = "kata"
|
|
409
|
+
# branches = ["main"] # only file katas for reviews on these branches; default all
|
|
410
|
+
# project = "myproj" # defaults to the .kata.toml binding
|
|
411
|
+
# labels = ["from-review"]
|
|
412
|
+
# priority = 2
|
|
413
|
+
```
|
|
414
|
+
|
|
415
|
+
`mode = "current"` includes only the katas referenced anywhere in the reviewed
|
|
416
|
+
commit messages (e.g. `Closes: kata#abc4`); `open` includes every open kata in
|
|
417
|
+
the bound project, except issues the kata hook itself filed (labelled
|
|
418
|
+
`roborev`), so review findings are not fed back into later reviews as task
|
|
419
|
+
intent. A hook's optional `branches` list (glob patterns such as `release/*`)
|
|
420
|
+
limits it to reviews on matching branches; unset fires on all branches. The
|
|
421
|
+
matched branch is the commit's branch for local reviews and the PR base
|
|
422
|
+
(target) branch for CI pull-request reviews — so `branches = ["main"]` means
|
|
423
|
+
commits on `main` locally but PRs *targeting* `main` in CI, and a fork's head
|
|
424
|
+
branch name cannot satisfy a protected-branch filter. The `kata` CLI must be
|
|
425
|
+
on `PATH`; when it is absent or the repo is unbound, prompt context is
|
|
426
|
+
silently skipped. Any other failure — a broken `.kata.toml`, a failing `kata`
|
|
427
|
+
invocation — is logged by both the prompt builder and the configured `kata`
|
|
428
|
+
hook, so a configured integration never goes dark unnoticed.
|
|
429
|
+
|
|
430
|
+
### Environment Variables
|
|
431
|
+
|
|
432
|
+
| Variable | Description |
|
|
433
|
+
|----------|-------------|
|
|
434
|
+
| `ROBOREV_DATA_DIR` | Override default data directory (`~/.roborev`) |
|
|
435
|
+
| `ROBOREV_TELEMETRY_ENABLED` | Set to `0` to turn off usage telemetry |
|
|
436
|
+
| `EDITOR` | Editor used by `roborev job comment` when no message is supplied |
|
|
437
|
+
| `GH_TOKEN`, `GITHUB_TOKEN` | GitHub authentication for CI commands |
|
|
438
|
+
| `GITLAB_TOKEN`, `GL_TOKEN` | GitLab authentication for CI commands |
|
|
439
|
+
| `ROBOREV_COLOR_MODE` | TUI color theme: `auto` (default), `dark`, `light`, `none` |
|
|
440
|
+
| `ROBOREV_SYNC_CURSOR_LOOKBACK` | PostgreSQL sync cursor overlap duration (default `5m`) |
|
|
441
|
+
| `ROBOREV_AGENT_HOOK_TURN_THRESHOLD` | Override agent-hook Stop threshold |
|
|
442
|
+
| `ROBOREV_AGENT_HOOK_COMMIT_THRESHOLD` | Override agent-hook commit threshold |
|
|
443
|
+
| `ROBOREV_AGENT_HOOK_FAILED_REVIEW_THRESHOLD` | Override agent-hook failed-review threshold |
|
|
444
|
+
| `ROBOREV_AGENT_HOOK_ROBOREV_ADDR` | Override the regular daemon address used by Agent Hook |
|
|
445
|
+
| `ROBOREV_DROID_HOOK_TURN_THRESHOLD` | Override Factory Droid agent-hook Stop threshold |
|
|
446
|
+
| `ROBOREV_DROID_HOOK_COMMIT_THRESHOLD` | Override Factory Droid agent-hook commit threshold |
|
|
447
|
+
| `ROBOREV_DROID_HOOK_FAILED_REVIEW_THRESHOLD` | Override Factory Droid agent-hook failed-review threshold |
|
|
448
|
+
| `NO_COLOR` | Set to any value to disable all color output ([no-color.org](https://no-color.org)) |
|
|
449
|
+
|
|
450
|
+
## Supported Agents
|
|
451
|
+
|
|
452
|
+
| Agent | Install |
|
|
453
|
+
|-------|---------|
|
|
454
|
+
| Codex | `npm install -g @openai/codex` |
|
|
455
|
+
| Claude Code | `npm install -g @anthropic-ai/claude-code` |
|
|
456
|
+
| Gemini | `curl -fsSL https://antigravity.google/cli/install.sh \| bash` (preferred Antigravity CLI) or `npm install -g @google/gemini-cli` |
|
|
457
|
+
| Copilot | `npm install -g @github/copilot` |
|
|
458
|
+
| OpenCode | `npm install -g opencode-ai@latest` ([anomalyco/opencode](https://github.com/anomalyco/opencode)) |
|
|
459
|
+
| Cursor | [cursor.com](https://www.cursor.com/) |
|
|
460
|
+
| Kiro | [kiro.dev](https://kiro.dev/) |
|
|
461
|
+
| Kilo | `npm install -g @kilocode/cli` |
|
|
462
|
+
| Droid | [factory.ai](https://factory.ai/) |
|
|
463
|
+
| Pi | [pi.dev](https://pi.dev/) |
|
|
464
|
+
| Muse Code | [Meta installation guide](https://dev.meta.ai/docs/overview) |
|
|
465
|
+
|
|
466
|
+
roborev auto-detects installed agents.
|
|
467
|
+
|
|
468
|
+
To use Pi as the auto-design routing classifier (`classify_agent = "pi"`),
|
|
469
|
+
install the JSON Schema output extension too:
|
|
470
|
+
|
|
471
|
+
```bash
|
|
472
|
+
pi install npm:@nqbao/pi-json-schema
|
|
473
|
+
```
|
|
474
|
+
|
|
475
|
+
roborev loads this extension explicitly when it invokes the classifier. Keeping
|
|
476
|
+
it installed in Pi makes the classifier setup visible in `pi list` and avoids
|
|
477
|
+
runtime package-fetch surprises in offline or locked-down environments.
|
|
478
|
+
|
|
479
|
+
### Routing Claude Code to a proxy (Ollama, LiteLLM, etc.)
|
|
480
|
+
|
|
481
|
+
The `claude-code` agent accepts a model spec of the form `<model>@<base_url>`.
|
|
482
|
+
When `<base_url>` starts with `http(s)://`, roborev points Claude Code at
|
|
483
|
+
that endpoint and pins all tier aliases (Opus/Sonnet/Haiku/subagent) to the
|
|
484
|
+
given model.
|
|
485
|
+
|
|
486
|
+
```toml
|
|
487
|
+
# .roborev.toml — local Ollama for reviews, real Anthropic for fixes
|
|
488
|
+
agent = "claude-code"
|
|
489
|
+
review_model = "glm-5.1:cloud@http://127.0.0.1:11434"
|
|
490
|
+
fix_model = "sonnet"
|
|
491
|
+
```
|
|
492
|
+
|
|
493
|
+
Or via CLI: `roborev review --model 'glm-5.1:cloud@http://127.0.0.1:11434'`.
|
|
494
|
+
|
|
495
|
+
**Proxy auth.** Set `ROBOREV_CLAUDE_PROXY_TOKEN` to forward a bearer token
|
|
496
|
+
to the proxy as `ANTHROPIC_AUTH_TOKEN`. If unset, roborev sends a placeholder
|
|
497
|
+
(sufficient for gateways that don't check the header, such as Ollama).
|
|
498
|
+
roborev does *not* forward `ANTHROPIC_API_KEY` to proxy endpoints — that
|
|
499
|
+
would leak a real Anthropic credential to arbitrary third parties.
|
|
500
|
+
|
|
501
|
+
**URL restrictions.** Proxy URLs must not embed `user:pass@` credentials
|
|
502
|
+
(use `ROBOREV_CLAUDE_PROXY_TOKEN`); `http://` is only accepted for loopback
|
|
503
|
+
hosts (`127.0.0.1`, `::1`, `localhost`) so plaintext endpoints can't receive
|
|
504
|
+
tokens over the wire. Use `https://` for remote proxies. The full URL
|
|
505
|
+
(including any path or query string) is forwarded as-is to
|
|
506
|
+
`ANTHROPIC_BASE_URL`, so include the path your gateway expects (e.g.
|
|
507
|
+
LiteLLM may want a trailing `/v1`; Ollama wants no path).
|
|
508
|
+
|
|
509
|
+
**Environment behavior (breaking change in this release).** When the
|
|
510
|
+
`claude-code` agent runs, roborev always strips inherited `ANTHROPIC_API_KEY`,
|
|
511
|
+
`ANTHROPIC_BASE_URL`, `ANTHROPIC_AUTH_TOKEN`,
|
|
512
|
+
`ANTHROPIC_DEFAULT_{OPUS,SONNET,HAIKU}_MODEL`, and `CLAUDE_CODE_SUBAGENT_MODEL`
|
|
513
|
+
from the child environment. If you were previously routing Claude Code by
|
|
514
|
+
exporting these vars in your shell, switch to the `<model>@<base_url>` spec
|
|
515
|
+
instead. For native (non-proxy) mode, configure `ANTHROPIC_API_KEY` via
|
|
516
|
+
roborev's config (it is re-injected from roborev's stored key, not inherited
|
|
517
|
+
from the operator's shell).
|
|
518
|
+
|
|
519
|
+
## Security Model
|
|
520
|
+
|
|
521
|
+
roborev delegates code review and fix tasks to AI coding agents that
|
|
522
|
+
have shell access. Review agents may execute read-only git and shell
|
|
523
|
+
commands to inspect diffs; fix agents run in isolated worktrees with
|
|
524
|
+
full tool access. A custom review type with a strict tool policy runs
|
|
525
|
+
Claude Code in a locked-down session with only read tools and the MCP
|
|
526
|
+
tools the operator allows.
|
|
527
|
+
|
|
528
|
+
**roborev is designed for use with trusted codebases.** The review
|
|
529
|
+
prompt includes diff content and commit messages from the repository.
|
|
530
|
+
If you are reviewing untrusted code (e.g., open-source contributions
|
|
531
|
+
from unknown authors), run roborev inside a sandboxed environment
|
|
532
|
+
(container, VM, or similar) to limit the blast radius of any
|
|
533
|
+
prompt-injection attack that could cause an agent to execute
|
|
534
|
+
unintended commands.
|
|
535
|
+
|
|
536
|
+
## Documentation
|
|
537
|
+
|
|
538
|
+
Full documentation available at **[roborev.io](https://roborev.io)**:
|
|
539
|
+
|
|
540
|
+
- [Quick Start](https://roborev.io/docs/quickstart/)
|
|
541
|
+
- [Installation](https://roborev.io/docs/installation/)
|
|
542
|
+
- [Commands Reference](https://roborev.io/docs/commands/)
|
|
543
|
+
- [Configuration](https://roborev.io/docs/configuration/)
|
|
544
|
+
- [Auto-Fixing with Refine](https://roborev.io/docs/guides/auto-fixing/)
|
|
545
|
+
- [Code Analysis and Assisted Refactoring](https://roborev.io/docs/guides/assisted-refactoring/)
|
|
546
|
+
- [Hooks](https://roborev.io/docs/guides/hooks/)
|
|
547
|
+
- [Agent Hook](https://roborev.io/docs/agent-hook/)
|
|
548
|
+
- [Agent Skills](https://roborev.io/docs/guides/agent-skills/)
|
|
549
|
+
- [PostgreSQL Sync](https://roborev.io/docs/advanced/postgres-sync/)
|
|
550
|
+
|
|
551
|
+
For local development in this repo, install hooks with `prek install` or run
|
|
552
|
+
`make install-hooks` as a thin wrapper around `prek install`.
|
|
553
|
+
|
|
554
|
+
## License
|
|
555
|
+
|
|
556
|
+
MIT
|
|
557
|
+
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
roborev-0.77.0.data/scripts/roborev.exe,sha256=Y5HW2l8gMS8hx0yyuDufmBYss8AI8hFhCNgNc0iFJB8,86941896
|
|
2
|
+
roborev/__init__.py,sha256=9kzoXaueOW1uxYyY9Cx7JhWzQ_Y94W-TfAu8Rm0e04k,2473
|
|
3
|
+
roborev/__main__.py,sha256=r70ybclgLurVB10gomiQsUwNlMLFje4xhkQhDP_Z2DA,64
|
|
4
|
+
roborev-0.77.0.dist-info/METADATA,sha256=tpf1mK6HKseO9s4YMUZUUGiRlxAyCEZnSQ4W8IVytt4,25365
|
|
5
|
+
roborev-0.77.0.dist-info/WHEEL,sha256=vZkIWTqtTNLIILdO4eqxADqRsnXg8xg_T-oH2lJlrDY,87
|
|
6
|
+
roborev-0.77.0.dist-info/licenses/LICENSE,sha256=90QOINKOShHtjt5In5BAXgOLTaTZKBvLFUC_nN5dnHE,1094
|
|
7
|
+
roborev-0.77.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Wes McKinney and roborev contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|