How abhiram0411/review-desk works
The Review Desk accepts a diff or public GitHub PR, generates inline review comments using team memory, and records Accept/Reject feedback to shape later reviews. Its live API also serves learned conventions, decision history, demo PRs, and replay metrics to the frontend. A separate replay evaluates memory-on versus memory-off behavior against saved Flask PRs. Relationships involving the frontend and unsampled API details are based on README documentation; the graph does not infer unshown internal calls.
Main entry points: main.py FastAPI API · replay_real.py Replay Engine · index.html Web UI · prs Saved PRs
Components 19
Live Review App
- Web UI
frontend/index.html - FastAPI API
main.py - Review Flow
main.py - Comment State
main.py - GitHub PR Fetch
main.py
Team Memory
- Hindsight Memory
- Feedback Retention
main.py - Category Rules
main.py - Decision History
main.py - Conventions
main.py
Replay Evaluation
- Replay Engine
replay_real.py - Replay Reviewer
replay_real.py - Replay Memory
replay_real.py - Replay Metrics
replay_real.py
Review Data
- Saved PRs
data/prs - Metrics File
data/metrics.json
Other components
- Reviewer
- Groq Model
- GitHub API
Connections 24
- Reviewer → Web UI: uses
README.md - Web UI → FastAPI API: calls API
README.md - FastAPI API → Review Flow: routes review
main.py - Review Flow → Hindsight Memory: recalls notes
main.py - Review Flow → Category Rules: applies rules
main.py - Review Flow → Groq Model: generates comments
README.md - Review Flow → Comment State: stores comments
main.py - Web UI → GitHub PR Fetch: submits PR link
README.md - GitHub PR Fetch → GitHub API: fetches PR
main.py - FastAPI API → Feedback Retention: routes feedback
main.py - Feedback Retention → Hindsight Memory: retains decision
README.md - Feedback Retention → Decision History: records decision
main.py - Category Rules → Decision History: reads decisions
main.py - FastAPI API → Conventions: serves rules
main.py - FastAPI API → Decision History: serves history
main.py - FastAPI API → Saved PRs: loads demo PRs
main.py - FastAPI API → Metrics File: reads metrics
main.py - Replay Engine → Saved PRs: loads PRs
replay_real.py - Replay Engine → Replay Reviewer: runs reviews
replay_real.py - Replay Reviewer → Groq Model: generates comments
replay_real.py - Replay Engine → Replay Memory: recalls and retains
replay_real.py - Replay Memory → Hindsight Memory: uses memory
replay_real.py - Replay Engine → Replay Metrics: summarizes results
replay_real.py - Replay Metrics → Metrics File: writes results
replay_real.py