How krey-yon/pra works
Strivon is a self-hosted GitHub pull-request review agent. Its main workflow verifies and normalizes GitHub webhooks, durably queues accepted work, runs a fenced review using repository context and AI, verifies findings, then publishes results to GitHub while retaining repository memory. A separate admin-console workflow configures GitHub, model providers, and enabled repositories. The README documents the major review capabilities; the sampled source confirms intake, dispatch, persistence, worker, and console wiring, but several internal runtime links are documented rather than inspected directly.
Main entry points: orchestrator.ts Run Orchestrator · worker.ts Execution Worker · server.ts Console API · index.ts HTTP App
Components 22
Webhook Intake
- HTTP App
src/app/index.ts - Webhook Dispatch
src/github/webhook/dispatch-webhook.ts - Webhook Inbox
src/db/webhook-inbox.ts
Durable Execution
- Worker Process
src/app/worker.ts - Execution Worker
src/execution/worker.ts - Run Admission
src/execution/admission.ts - Run Orchestrator
src/execution/orchestrator.ts
Review Runtime
- Diff Context
src/runtime/diff-context.ts - Repository Policy
src/runtime/repo-policy.ts - Symbol Impact
src/runtime/symbol-impact.ts - ReAct Review
src/runtime/agent-loop.ts - Finding Verification
src/runtime/verifier.ts - GitHub Gateway
src/runtime/github.ts
Admin Console
- Console API
src/console/server.ts - Console UI
src/console/ui/App.tsx - Console Settings
src/console/store.ts - Provider Connections
src/console/connections.ts
Persistent State
- Execution Store
src/execution/store.ts - Repository Memory
src/runtime/memory.ts
Other components
- GitHub
- AI Providers
- PostgreSQL
Connections 24
- GitHub → HTTP App: sends webhooks
- HTTP App → Webhook Dispatch: dispatches
src/app/index.ts - Webhook Dispatch → Webhook Inbox: persists accepted events
src/app/index.ts - Webhook Inbox → PostgreSQL: writes outbox
src/db/webhook-inbox.ts - HTTP App → Console API: starts
src/app/index.ts - Worker Process → Execution Worker: starts
src/app/worker.ts - Execution Worker → Run Admission: plans runs
src/execution/worker.ts - Execution Worker → Run Orchestrator: executes runs
src/execution/worker.ts - Execution Worker → Execution Store: dispatches work
src/execution/worker.ts - Execution Store → PostgreSQL: stores run state
- Run Orchestrator → Diff Context: builds review context
- Diff Context → Repository Policy: applies ignore policy
src/runtime/diff-context.ts - Run Orchestrator → Symbol Impact: analyzes changed symbols
- Run Orchestrator → ReAct Review: runs review
- ReAct Review → AI Providers: requests generation
- ReAct Review → Finding Verification: checks findings
- Run Orchestrator → Repository Memory: loads and records memory
- Run Orchestrator → GitHub Gateway: reads and publishes
- GitHub Gateway → GitHub: publishes review
- Console UI → Console API: calls API
src/console/ui/App.tsx - Console API → Console Settings: reads settings
src/console/server.ts - Console Settings → PostgreSQL: persists settings
- Console API → Provider Connections: configures providers
src/console/server.ts - Provider Connections → AI Providers: routes generation