How skyy-prog/reviewpilot works
ReviewPilot turns GitHub pull-request webhooks into queued LLM reviews, posts findings back to GitHub, and exposes review history, statistics, and feedback in an authenticated dashboard. The graph follows the documented webhook-to-worker flow and the sampled calls between worker, integrations, and storage. Some dashboard-to-server wiring is documented in the README; unsampled implementation details are not inferred beyond that.
Main entry points: worker.ts Review worker · server.ts Express server · config.ts Runtime config · github.ts GitHub client
Components 17
Webhook and API
- Express server
backend/src/server.ts - Session auth
backend/src/auth.ts - Dashboard API
backend/src/api.ts
Review processing
- Review worker
backend/src/worker.ts - Diff filtering
backend/src/diff.ts - GitHub client
backend/src/github.ts - Gemini review
backend/src/llm.ts - Telegram notify
backend/src/notify.ts - Runtime config
backend/src/config.ts
Review data
- Postgres client
backend/src/db.ts - Review database
backend/src/db.ts
Dashboard
- Dashboard UI
frontend/src/App.tsx - Dashboard API client
frontend/src/api.ts
Other components
- GitHub
- Dashboard user
- Gemini API
- Telegram
Connections 24
- GitHub → Express server: sends webhook
README.md - Express server → Review database: queues jobs
backend/src/server.ts - Express server → Session auth: mounts routes
backend/src/server.ts - Express server → Dashboard API: mounts API
backend/src/server.ts - Review worker → Review database: claims jobs
backend/src/worker.ts - Review worker → GitHub client: fetches PR data
backend/src/worker.ts - Review worker → GitHub client: reads repo config
backend/src/worker.ts - Review worker → Diff filtering: filters and annotates
backend/src/worker.ts - Review worker → Gemini review: requests review
backend/src/worker.ts - Gemini review → Gemini API: calls API
backend/src/llm.ts - Review worker → GitHub client: posts review
backend/src/worker.ts - Review worker → Review database: stores findings
backend/src/worker.ts - Review worker → Telegram notify: sends summary
backend/src/worker.ts - Telegram notify → Telegram: sends message
backend/src/notify.ts - Dashboard user → Dashboard UI: uses dashboard
README.md - Dashboard UI → Dashboard API client: requests dashboard data
frontend/src/App.tsx - Dashboard API client → Express server: calls /api
README.md - Dashboard API → Review database: queries and updates
backend/src/api.ts - Express server → Runtime config: loads settings
backend/src/server.ts - Review worker → Runtime config: uses settings
backend/src/worker.ts - GitHub client → Runtime config: uses credentials
backend/src/github.ts - Gemini review → Runtime config: uses model settings
backend/src/llm.ts - Session auth → Runtime config: uses session settings
backend/src/auth.ts - Postgres client → Runtime config: uses database URL
backend/src/db.ts