Event-driven and decoupled: the webhook only verifies and enqueues; a worker owns the review from there, checkpointing every step.
THE PIPELINE
GitHub webhook → signature verification → BullMQ queue → worker → review orchestrator → PR understanding → planner → wave one → wave two → deduplication against earlier commits → reflection → review writer → GitHub review with line comments. Findings and per-agent executions are persisted to PostgreSQL; the dashboard reads them over REST and a live stream.
AGENT WAVES
A PR-understanding agent establishes intent, scope and risk; a planner schedules the specialists. Wave one — security, architecture, reliability — runs in parallel; wave two — testing, code quality, requirements — follows. A reflection agent then audits every finding for false positives before the writer posts.
PERMISSION-SCOPED TOOLS
Agents gather evidence through a tool registry of 12 tools — file contents, diffs, commits, dependency manifests, directory trees, file history, linked issues, CI status — each agent granted only the tools its role needs, inside a tool loop capped at eight steps.
THREE-TIER MEMORY
Run memory checkpoints each review step to Redis for instant recovery; cross-commit memory tracks findings as open, resolved or reopened across pushes; repository memory stores the detected stack and project-specific engineering rules.