How gopi-yenduru/ai-code-review-agent-system works
AI Code Review Agent reviews GitHub pull requests through a webhook-triggered, parallel three-agent analysis, persists findings and developer statistics, and presents review history and analytics in a React dashboard. The graph preserves the documented security, performance, quality, risk-scoring, GitHub-comment, review-detail, and analytics capabilities. Source excerpts verify the webhook orchestration and persistence path; README documentation supports the broader product flow where implementation details were not sampled.
Main entry points: client.js API Client · webhook.py Webhook Router · review_service.py Review Orchestrator · graph.py Agent Graph
Components 23
PR Intake
- Webhook Router
backend/routers/webhook.py - GitHub Service
backend/services/github_service.py - Review Orchestrator
backend/services/review_service.py
AI Review
- Agent Graph
backend/agents/graph.py - Security Auditor
backend/agents/security_agent.py - Performance Analyst
backend/agents/performance_agent.py - Quality Judge
backend/agents/quality_agent.py
Review Data
- Reviews Router
backend/routers/reviews.py - Analytics Router
backend/routers/analytics.py - Analytics Service
backend/services/analytics_service.py - Review and Issue Models
backend/models/review.py - Developer Model
backend/models/user.py - PostgreSQL
backend/database.py
Dashboard
- React App
frontend/src/App.jsx - Overview Dashboard
frontend/src/pages/Dashboard.jsx - Review Detail
frontend/src/pages/ReviewDetail.jsx - Developer Stats
frontend/src/pages/DeveloperStats.jsx - API Client
frontend/src/api/client.js - Risk Score Card
frontend/src/components/RiskScoreCard.jsx - Agent Result Panel
frontend/src/components/AgentResultPanel.jsx
Other components
- GitHub
- Google Gemini
- Developer
Connections 30
- GitHub → Webhook Router: sends events
README.md - Webhook Router → GitHub Service: verifies and fetches
backend/routers/webhook.py - Webhook Router → Review Orchestrator: starts review
backend/routers/webhook.py - Webhook Router → GitHub Service: posts comment
backend/routers/webhook.py - Review Orchestrator → Agent Graph: runs pipeline
backend/services/review_service.py - Agent Graph → Security Auditor: dispatches
backend/agents/graph.py - Agent Graph → Performance Analyst: dispatches
backend/agents/graph.py - Agent Graph → Quality Judge: dispatches
backend/agents/graph.py - Security Auditor → Google Gemini: analyzes diff
README.md - Performance Analyst → Google Gemini: analyzes diff
README.md - Quality Judge → Google Gemini: analyzes diff
README.md - Review Orchestrator → Review and Issue Models: saves findings
backend/services/review_service.py - Review Orchestrator → Developer Model: updates statistics
backend/services/review_service.py - Review and Issue Models → PostgreSQL: stored in
backend/models/review.py - Developer Model → PostgreSQL: stored in
backend/models/user.py - GitHub Service → GitHub: fetches diff and comments
README.md - Developer → React App: uses dashboard
README.md - React App → Overview Dashboard: routes to
frontend/src/App.jsx - React App → Review Detail: routes to
frontend/src/App.jsx - React App → Developer Stats: routes to
frontend/src/App.jsx - Overview Dashboard → API Client: requests stats
frontend/src/pages/Dashboard.jsx - Review Detail → API Client: loads review
frontend/src/pages/ReviewDetail.jsx - Developer Stats → API Client: loads analytics
frontend/src/pages/DeveloperStats.jsx - API Client → Reviews Router: requests reviews
README.md - API Client → Analytics Router: requests analytics
README.md - Analytics Router → Analytics Service: delegates queries
backend/routers/analytics.py - Analytics Service → Review and Issue Models: reads reviews
backend/services/analytics_service.py - Analytics Service → Developer Model: reads developers
backend/services/analytics_service.py - Review Detail → Risk Score Card: renders score
frontend/src/pages/ReviewDetail.jsx - Review Detail → Agent Result Panel: renders results
frontend/src/pages/ReviewDetail.jsx