How soham04mehra/agenti_sre works
This is an SRE incident investigation and recommendation platform: an alert enters the API, telemetry is prepared, a bounded LangGraph investigation gathers evidence, evaluates confidence and conflicts, then returns a cited RCA report with explicit uncertainty states. Diagnostic tools cover logs, metrics, deployments, code search, and historical incidents. The repository also includes a microservice demo that produces fault telemetry and a benchmark endpoint. Relationships for unsampled modules are included only where the README or SOURCE INDEX supports them; other uncertain links are omitted.
Main entry points: api.py Incident API · registry.py Tool Dispatcher · nodes.py Investigation Stages · payment_service.py Payment Service
Components 24
API and Console
- Incident API
api.py - Web Console
static/App.jsx - Benchmark Endpoint
eval/evaluate.py
Investigation Workflow
- Workflow Router
agent/graph.py - Investigation Stages
agent/nodes.py
Diagnostic Evidence
- Tool Dispatcher
tools/registry.py - Log Retrieval
tools/fetch_logs.py - Metrics Query
tools/query_metrics.py - Deployment Lookup
tools/get_deployments.py - Code Search
tools/search_codebase.py - Similar Incidents
tools/retrieve_similar_incidents.py
State and Grounding
- Confidence Scoring
agent/confidence.py - Citation Validation
agent/citation.py - Workflow State
agent/state.py - Execution Tracing
agent/tracer.py - Language Model
agent/llm.py - Incident Repository
database/repository.py - Runtime Configuration
config.py
Service Telemetry
- Order Service
services/order_service.py - Payment Service
services/payment_service.py - Structured Logging
services/logger.py - Metrics Tracker
services/metrics.py
Other components
- SRE / Alert
- Supabase Store
Connections 28
- SRE / Alert → Incident API: submits alert
api.py - Incident API → Workflow Router: invokes workflow
api.py - Incident API → Incident Repository: saves / loads state
api.py - Incident API → Benchmark Endpoint: runs benchmark
api.py - Incident API → Web Console: serves static app
api.py - Workflow Router → Investigation Stages: routes stages
agent/graph.py - Investigation Stages → Tool Dispatcher: dispatches tools
agent/nodes.py - Investigation Stages → Confidence Scoring: evaluates evidence
agent/nodes.py - Investigation Stages → Citation Validation: creates citations
agent/nodes.py - Investigation Stages → Language Model: uses reasoning
agent/nodes.py - Tool Dispatcher → Log Retrieval: dispatches
tools/registry.py - Tool Dispatcher → Metrics Query: dispatches
tools/registry.py - Tool Dispatcher → Deployment Lookup: dispatches
tools/registry.py - Tool Dispatcher → Code Search: dispatches
tools/registry.py - Tool Dispatcher → Similar Incidents: dispatches
tools/registry.py - Similar Incidents → Incident Repository: queries history
tools/retrieve_similar_incidents.py - Incident Repository → Supabase Store: reads / writes
database/repository.py - Benchmark Endpoint → Workflow Router: evaluates workflow
eval/evaluate.py - Benchmark Endpoint → Incident Repository: saves state
eval/evaluate.py - Incident API → Payment Service: prepares telemetry
api.py - Order Service → Payment Service: processes payment
services/order_service.py - Order Service → Structured Logging: emits logs
services/order_service.py - Order Service → Metrics Tracker: updates metrics
services/order_service.py - Payment Service → Structured Logging: emits logs
services/payment_service.py - Payment Service → Metrics Tracker: updates metrics
services/payment_service.py - Log Retrieval → Runtime Configuration: reads settings
tools/fetch_logs.py - Metrics Query → Runtime Configuration: reads settings
tools/query_metrics.py - Deployment Lookup → Runtime Configuration: reads settings
tools/get_deployments.py