How jeevan-9797/recallops works
RecallOps is an incident-triage copilot: an on-call engineer selects an incident in the dashboard, starts a streamed triage, reviews recalled incidents and tool activity, then receives a recommendation and can provide feedback. The backend coordinates LLM reasoning, organizational and engineer memory, operational data, and optional team collaboration. Separate dashboard views expose incident history, patterns, and benchmark learning metrics. The README documents these capabilities; source excerpts show key API, tool, database, and UI relationships, but not every integration or route implementation.
Main entry points: incidents.py Incident triage API · router.py API router · tool_handlers.py SRE tool dispatcher · repository.py Operational repository
Components 32
Engineer Dashboard
- RecallOps dashboard
recallops-web/app/incidents/[id]/page.tsx - Triage stream UI
recallops-web/components/triage.tsx - Triage event state
recallops-web/lib/useTriage.ts - API and SSE client
recallops-web/lib/api.ts
API Platform
- API router
backend/app/api/router.py - Incident triage API
backend/app/api/incidents.py - Alert API
backend/app/api/alerts.py - Metrics API
backend/app/api/metrics.py - Observation API
backend/app/api/observations.py - Protected demo API
backend/app/api/demo.py - Runtime configuration
backend/app/config.py - Exception sanitization
backend/app/core/exceptions.py - SSE transport
backend/app/core/sse.py
Triage Intelligence
- SRE tool dispatcher
backend/app/services/tool_handlers.py - LLM agent
backend/app/services/groq_agent.py - Dual-memory service
backend/app/services/hindsight_service.py - Band collaboration adapter
backend/app/services/band_adapter.py - Agent prompts
backend/app/prompts/system_prompts.py - Agent tool contracts
backend/app/schemas/agent_tools.py
Operational State
- Operational repository
backend/app/db/repository.py - Application data models
backend/app/db/models.py - Async DB sessions
backend/app/db/session.py - PostgreSQL store
database/models.py - Database connection
database/connection.py
Learning and Evaluation
- Recall ranking pipeline
eval/recall_pipeline.py - Memory templates
eval/memory_templates.py - Incident dataset builder
data/generators/dataset_builder.py - Root-cause catalog
data/generators/root_causes.py
Other components
- On-call engineer
- Hindsight Cloud
- Groq inference
- Band service
Connections 34
- On-call engineer → RecallOps dashboard: uses
README.md - RecallOps dashboard → Triage stream UI: opens incident
- Triage stream UI → Triage event state: starts triage
- Triage event state → API and SSE client: streams events
recallops-web/lib/useTriage.ts - API and SSE client → Incident triage API: requests triage
- API router → Incident triage API: mounts
backend/app/api/router.py - API router → Alert API: mounts
backend/app/api/router.py - API router → Metrics API: mounts
backend/app/api/router.py - API router → Observation API: mounts
backend/app/api/router.py - API router → Protected demo API: mounts
backend/app/api/router.py - Incident triage API → SSE transport: streams events
backend/app/api/incidents.py - Incident triage API → LLM agent: runs reasoning
backend/app/api/incidents.py - Incident triage API → SRE tool dispatcher: executes tools
backend/app/api/incidents.py - Incident triage API → Dual-memory service: uses memory
backend/app/api/incidents.py - Incident triage API → Band collaboration adapter: coordinates
backend/app/api/incidents.py - Incident triage API → Operational repository: reads and writes
backend/app/api/incidents.py - Incident triage API → Exception sanitization: sanitizes errors
backend/app/api/incidents.py - SRE tool dispatcher → Dual-memory service: recalls memories
backend/app/services/tool_handlers.py - SRE tool dispatcher → Operational repository: queries operations
backend/app/services/tool_handlers.py - SRE tool dispatcher → Band collaboration adapter: posts updates
backend/app/services/tool_handlers.py - SRE tool dispatcher → Agent tool contracts: validates tools
backend/app/services/tool_handlers.py - LLM agent → Groq inference: infers
- Dual-memory service → Hindsight Cloud: recalls and retains
- Band collaboration adapter → Band service: posts updates
- Operational repository → Application data models: queries
backend/app/db/repository.py - Async DB sessions → Application data models: maps schema
backend/app/db/session.py - Database connection → PostgreSQL store: connects
database/connection.py - Alert API → Operational repository: accesses data
backend/app/api/alerts.py - Recall ranking pipeline → Memory templates: uses templates
eval/recall_pipeline.py - Incident dataset builder → Root-cause catalog: uses causes
- Incident dataset builder → PostgreSQL store: seeds data
- Metrics API → Recall ranking pipeline: reports results
- Incident triage API → Agent prompts: uses prompts
- Incident triage API → Runtime configuration: uses settings
backend/app/api/incidents.py