How rohithbhagath/codesentinel works
CodeSentinel automates pull-request reviews: GitHub/GitLab webhooks and manual API requests create review jobs, a Celery worker runs the LangGraph review workflow, and the product exposes findings and summaries through its API and React dashboard. The documented review stages include PR ingestion, planning, specialist-agent analysis, synthesis, and provider feedback; static analysis runs tools in a Docker sandbox. The graph preserves these documented capabilities, but several workflow modules were not sampled, so their internal call relationships are not asserted.
Main entry points: orchestrator.py Workflow orchestrator · main.py FastAPI app · reviews.py REST API · pipeline.py Static analysis pipeline
Components 22
Ingress and API
- FastAPI app
backend/main.py - REST API
backend/app/api/v1/reviews.py - Prometheus metrics
backend/app/metrics.py
Review workflow
- Celery worker
backend/app/tasks/celery_worker.py - Workflow orchestrator
backend/app/agents/orchestrator.py - PR ingestion
backend/app/agents/pr_ingestor - Review planning
backend/app/agents/review_planner - Specialist agents
backend/app/agents/specialist
Analysis engines
- LLM review engine
backend/app/llm - Static analysis pipeline
backend/app/static_analysis/pipeline.py - Docker sandbox
backend/app/static_analysis/sandbox/docker_sandbox.py - Static tool runners
backend/app/static_analysis/tool_runners
Persistence and integrations
- Provider webhooks
backend/app/integrations/gitlab/webhooks.py - Application database
backend/app/db/session.py - Provider clients
backend/app/integrations
Web application
- React application
frontend/src/App.tsx - Review and dashboard pages
frontend/src/pages/ReviewDetails.tsx - Repository settings
frontend/src/pages/RepositorySettings.tsx - Frontend API client
frontend/src/api/client.ts
Other components
- GitHub
- GitLab
- Browser user
Connections 24
- FastAPI app → Provider webhooks: routes webhooks
backend/main.py - FastAPI app → REST API: mounts routes
backend/main.py - FastAPI app → Prometheus metrics: instruments app
backend/main.py - GitHub → FastAPI app: sends events
backend/main.py - GitLab → FastAPI app: sends events
backend/main.py - Provider webhooks → Application database: creates review jobs
backend/app/integrations/gitlab/webhooks.py - Provider webhooks → Celery worker: dispatches task
backend/app/integrations/gitlab/webhooks.py - REST API → Application database: reads and writes
backend/app/api/v1/reviews.py - REST API → Celery worker: dispatches task
backend/app/api/v1/reviews.py - Celery worker → Workflow orchestrator: starts review
backend/app/tasks/celery_worker.py - Workflow orchestrator → PR ingestion: ingests pull request
- Workflow orchestrator → Review planning: plans review
- Workflow orchestrator → Specialist agents: runs analysis agents
- Workflow orchestrator → Static analysis pipeline: uses static analysis
- Workflow orchestrator → LLM review engine: synthesizes review
- Static analysis pipeline → Static tool runners: runs selected tools
backend/app/static_analysis/pipeline.py - Static analysis pipeline → Docker sandbox: executes tools
backend/app/static_analysis/pipeline.py - Browser user → React application: uses interface
frontend/src/App.tsx - React application → Review and dashboard pages: routes to pages
frontend/src/App.tsx - React application → Repository settings: routes to settings
frontend/src/App.tsx - Review and dashboard pages → Frontend API client: requests review data
- Repository settings → Frontend API client: requests repository data
- Provider clients → GitHub: integrates with
- Provider clients → GitLab: integrates with