How pvcube66/pr-reviewer works
PR Reviewer accepts GitHub pull-request webhooks, verifies and deduplicates them, obtains and indexes the diff, runs four sequential specialist reviews plus aggregation, and posts the resulting comment. The graph also shows prompt assets, injection filtering, vector context, and event logging. Main call relationships are supported by excerpts; the specialist sequence and ChromaDB context role are also documented in the README. External service details beyond those shown are not inferred.
Main entry points: orchestrator.py Review orchestrator · main.py Webhook API · prompts.py Prompt loader · agents.py Security review
Components 17
Webhook ingress
- Webhook API
app/main.py
Review pipeline
- Review orchestrator
app/orchestrator.py - Security review
app/agents.py - Quality review
app/agents.py - Test review
app/agents.py - Docs review
app/agents.py - Findings aggregator
app/agents.py
Context and prompts
- Diff index
app/memory.py - Context retrieval
app/memory.py - Prompt loader
app/prompts.py - Role prompts
prompts/v1
Safety and events
- Injection guard
app/security.py - Event spine
app/spine.py - JSONL event log
Other components
- GitHub PR
- GitHub API
- Groq LLM
Connections 29
- GitHub PR → Webhook API: sends webhook
README.md - Webhook API → GitHub API: fetches diff
app/main.py - Webhook API → Diff index: indexes diff
app/main.py - Webhook API → Review orchestrator: starts review
app/main.py - Webhook API → GitHub API: posts comment
app/main.py - GitHub API → GitHub PR: returns diff
README.md - GitHub API → GitHub PR: publishes comment
README.md - Review orchestrator → Context retrieval: retrieves context
app/orchestrator.py - Review orchestrator → Security review: dispatches first
app/orchestrator.py - Review orchestrator → Quality review: dispatches next
app/orchestrator.py - Review orchestrator → Test review: dispatches next
app/orchestrator.py - Review orchestrator → Docs review: dispatches next
app/orchestrator.py - Review orchestrator → Findings aggregator: dispatches last
app/orchestrator.py - Security review → Groq LLM: requests findings
app/agents.py - Quality review → Groq LLM: requests findings
app/agents.py - Test review → Groq LLM: requests findings
app/agents.py - Docs review → Groq LLM: requests findings
app/agents.py - Findings aggregator → Groq LLM: requests summary
app/agents.py - Security review → Prompt loader: loads role prompt
app/agents.py - Quality review → Prompt loader: loads role prompt
app/agents.py - Test review → Prompt loader: loads role prompt
app/agents.py - Docs review → Prompt loader: loads role prompt
app/agents.py - Findings aggregator → Prompt loader: loads role prompt
app/agents.py - Prompt loader → Role prompts: reads prompt
app/prompts.py - Security review → Injection guard: filters diff
app/agents.py - Security review → Event spine: emits review events
app/agents.py - Findings aggregator → Event spine: emits call events
app/agents.py - Webhook API → Event spine: emits lifecycle events
app/main.py - Event spine → JSONL event log: appends events
README.md