Event Streaming
Stream review events in real-time for integrations, notifications, or custom tooling:
roborev stream # Stream all eventsroborev stream --repo . # Stream events for current repo onlyEvent Format
Events are emitted as newline-delimited JSON (JSONL):
{"type":"review.started","ts":"2025-01-11T10:00:00Z","job_id":42,"repo":"/path/to/repo","repo_name":"myrepo","sha":"abc123","agent":"codex"}{"type":"review.completed","ts":"2025-01-11T10:01:30Z","job_id":42,"repo":"/path/to/repo","repo_name":"myrepo","sha":"abc123","agent":"codex","verdict":"P"}Event Types
| Type | Description |
|---|---|
review.started | Review job started processing |
review.completed | Review finished successfully |
review.failed | Review failed (includes error field) |
review.canceled | Review was canceled |
Event Fields
All events include:
type: Event typets: ISO 8601 timestampjob_id: Unique job identifierrepo: Repository pathrepo_name: Repository display namesha: Commit SHA (ordirtyfor uncommitted changes)agent: Agent that processed the review
Additional fields:
verdict: Pass/Fail verdict (onreview.completed)error: Error message (onreview.failed)
Filtering with jq
Use jq to filter events:
# Only completed reviewsroborev stream | jq -c 'select(.type == "review.completed")'
# Only failuresroborev stream | jq -c 'select(.type == "review.failed")'
# Specific reporoborev stream | jq -c 'select(.repo_name == "myproject")'
# Failed verdictsroborev stream | jq -c 'select(.verdict == "F")'Integration Examples
Desktop Notifications (macOS)
roborev stream | while read -r event; do type=$(echo "$event" | jq -r '.type') repo=$(echo "$event" | jq -r '.repo_name') if [ "$type" = "review.completed" ]; then verdict=$(echo "$event" | jq -r '.verdict') if [ "$verdict" = "F" ]; then osascript -e "display notification \"Review failed\" with title \"$repo\"" fi fidoneWebhook
roborev stream | while read -r event; do curl -X POST -H "Content-Type: application/json" \ -d "$event" https://your-webhook.example.com/reviewsdoneSee Also
- TUI - Interactive terminal interface
- Commands Reference - Full command list