Technical Reference

Platform Architecture & Documentation

Comprehensive technical guide on the multi-stage review pipeline, arbitration model, GitHub App integration, and REST API specification.

Multi-Stage Review Pipeline

The platform never runs LLM code reviews synchronously during HTTP requests. All analysis runs through a resilient BullMQ worker pipeline with distinct, observable state transitions:

1QUEUED

PR review request is validated, assigned an idempotency key, and queued in BullMQ.

2FETCHING

Authoritative PR metadata and file patches/diffs are fetched via GitHub REST APIs.

3ANALYZING

AST and rule-based static analyzers (ESLint, TypeScript) run concurrently in sandboxed isolation.

4AI_REVIEW

The centralized AI Platform inspects diffs with structured output schema validation.

5AGGREGATING

Arbitration engine deduplicates identical findings and calibrates severity rankings.

6PUBLISHING

GitHub Check Runs and configured in-line PR comments are created.

7COMPLETED

Final results are persisted to MongoDB and notifications are dispatched.

Chrome Extension (Manifest V3)

The Chrome extension injects an autonomous review button onto any GitHub Pull Request page (github.com/:owner/:repo/pull/:number).

  1. Run npm run build inside the extension/ directory.
  2. Open Google Chrome and navigate to chrome://extensions.
  3. Enable Developer Mode in the top-right corner.
  4. Click Load Unpacked and select the extension/dist/ directory.
  5. Navigate to any GitHub PR to see the ✨ Review PR with AI button.

REST API Specification

Interactive Swagger Docs
MethodEndpointDescriptionAccess
POST/api/v1/reviewsEnqueue a GitHub PR for automated reviewPublic / Optional
GET/api/v1/reviewsList reviews with filters & paginationPublic / Optional
GET/api/v1/reviews/:idGet review metadata and statusPublic
GET/api/v1/reviews/:id/findingsGet granular findings for a reviewPublic
POST/api/v1/reviews/:id/cancelCancel an active or queued reviewPublic / Optional
POST/api/v1/reviews/:id/retryRetry a failed reviewPublic / Optional
POST/api/v1/github/webhooksGitHub App webhook receiver (HMAC validated)Webhook Secret
GET/api/v1/repositoriesList connected repositoriesPublic / Optional
PATCH/api/v1/repositories/:id/configUpdate repository review policiesProtected
GET/healthHealth check endpoint with uptime & DB statusPublic