How kiran4ukir/incident-memory-agent works
Incident Memory Agent is a Flask-based SRE triage app. An on-call engineer submits an alert through the UI; the API asks the agent for both a baseline answer and a memory-informed answer. The latter recalls similar incidents and reflects on recurring patterns before composing advice with a Groq model. Engineers can teach the system by retaining resolved incidents; a separate seed loader adds historical examples. The README documents these capabilities, but UI interactions and unsampled implementation details are not independently verified here.
Main entry points: app.py Flask API · agent.py Memory triage · memory.py Incident retention · index.html Incident UI
Components 18
Triage experience
- Incident UI
static/index.html - Flask API
app.py - Resolution intake
app.py
Agent reasoning
- Triage orchestrator
agent.py - Baseline triage
agent.py - Memory triage
agent.py - LLM request
agent.py
Incident memory
- Memory bank setup
memory.py - Incident narrative
memory.py - Similar incident recall
memory.py - Pattern reflection
memory.py - Incident retention
memory.py
Incident history
- Demo alert
seed_data.py - History loader
seed.py - Synthetic incidents
seed_data.py
Other components
- On-call engineer
- Groq model API
- Hindsight service
Connections 22
- On-call engineer → Incident UI: uses
README.md - Incident UI → Flask API: submits alerts
README.md - Flask API → Demo alert: serves demo
app.py - Flask API → Triage orchestrator: calls triage
app.py - Triage orchestrator → Baseline triage: runs in parallel
agent.py - Triage orchestrator → Memory triage: runs in parallel
agent.py - Baseline triage → LLM request: requests answer
agent.py - Memory triage → Similar incident recall: requests memories
agent.py - Memory triage → Pattern reflection: requests insight
agent.py - Memory triage → LLM request: requests answer
agent.py - LLM request → Groq model API: sends completion
agent.py - Flask API → Memory bank setup: ensures bank
app.py - Similar incident recall → Hindsight service: recalls memories
memory.py - Pattern reflection → Hindsight service: reflects patterns
memory.py - Memory bank setup → Hindsight service: creates bank
memory.py - On-call engineer → Resolution intake: teaches agent
README.md - Incident UI → Resolution intake: submits resolution
README.md - Resolution intake → Incident retention: retains incident
app.py - Incident retention → Incident narrative: formats incident
memory.py - Incident retention → Hindsight service: stores incident
memory.py - History loader → Synthetic incidents: loads history
seed.py - History loader → Incident retention: retains each
seed.py