How punithcse/opspilot-ai works
OpsPilot AI is a Streamlit incident-analysis suite: an engineer uploads logs, then a LangGraph workflow redacts and analyzes them, prepares evidence-backed remediation and drafts, and pauses for human approval before external actions. The README documents the main workflow and product capabilities; source excerpts and the SOURCE INDEX support the principal module links. Some UI and dispatch details are documented rather than fully visible in the excerpts.
Main entry points: graph.py Workflow graph · app.py Streamlit app · client.py LLM client · log_agent.py Log intelligence
Components 30
Incident workflow
- Workflow graph
orchestration/graph.py - Incident state
orchestration/state.py - Security redaction
security/redactor.py - Log intelligence
agents/log_agent.py - Log parser
ingestion/log_parser.py - Event classification
ingestion/classifier.py - Root cause
agents/root_cause_agent.py - Remediation agent
agents/remediation_agent.py - Cookbook agent
agents/cookbook_agent.py - Jira draft agent
agents/jira_agent.py - Slack draft agent
agents/notification_agent.py - Human approval
orchestration/graph.py
Analysis and knowledge
- Knowledge agent
agents/knowledge_agent.py - Runbook retrieval
rag/retriever.py - Runbook indexing
rag/ingestion.py - Local embeddings
rag/embeddings.py - Fallback playbook
agents/playbook.py
Runtime services
- Configuration
config.py - Jira integration
integrations/jira.py - Slack integration
integrations/slack.py - LLM client
llm/client.py - Agent tracing
agents/base.py - SQLite history and cache
storage/history.py
User experience
- Streamlit app
app.py - UI components
ui/components.py - UI theme
ui/theme.py - Report export
ui/report.py
Other components
- On-call engineer
- Jira service
- Slack webhook
Connections 38
- On-call engineer → Streamlit app: uploads logs
- Streamlit app → UI components: renders interface
app.py - Streamlit app → UI theme: uses theme
app.py - Streamlit app → Workflow graph: starts analysis
app.py - Streamlit app → Report export: exports report
app.py - Workflow graph → Security redaction: redacts input
orchestration/graph.py - Workflow graph → Log intelligence: runs triage
orchestration/graph.py - Workflow graph → Root cause: runs diagnosis
orchestration/graph.py - Workflow graph → Knowledge agent: runs retrieval
orchestration/graph.py - Workflow graph → Remediation agent: runs fixes
orchestration/graph.py - Workflow graph → Cookbook agent: runs checklist
orchestration/graph.py - Workflow graph → Jira draft agent: drafts ticket
orchestration/graph.py - Workflow graph → Slack draft agent: drafts alert
orchestration/graph.py - Workflow graph → Human approval: pauses for approval
orchestration/graph.py - Human approval → Workflow graph: resumes workflow
orchestration/graph.py - Workflow graph → Incident state: shares incident data
orchestration/graph.py - Log intelligence → Log parser: parses logs
agents/log_agent.py - Log intelligence → Event classification: summarizes events
agents/log_agent.py - Event classification → Log parser: uses parsed entries
ingestion/classifier.py - Root cause → Event classification: uses event summary
agents/root_cause_agent.py - Root cause → Fallback playbook: uses fallback knowledge
agents/root_cause_agent.py - Knowledge agent → Runbook retrieval: searches runbooks
agents/knowledge_agent.py - Knowledge agent → SQLite history and cache: reads incident memory
agents/knowledge_agent.py - Runbook retrieval → Runbook indexing: builds stale index
rag/retriever.py - Runbook indexing → Local embeddings: creates embeddings
rag/ingestion.py - Remediation agent → Fallback playbook: uses fallback guidance
agents/remediation_agent.py - Jira draft agent → Jira integration: creates approved ticket
agents/jira_agent.py - Slack draft agent → Slack integration: sends approved alert
agents/notification_agent.py - Jira integration → Jira service: calls Jira API
- Slack integration → Slack webhook: posts webhook
- Log intelligence → LLM client: requests analysis
agents/log_agent.py - Root cause → LLM client: requests reasoning
agents/root_cause_agent.py - Remediation agent → LLM client: requests fixes
agents/remediation_agent.py - Cookbook agent → LLM client: requests checklist
agents/cookbook_agent.py - LLM client → SQLite history and cache: reads and writes cache
llm/client.py - Agent tracing → LLM client: records usage
agents/base.py - Workflow graph → SQLite history and cache: saves incident
orchestration/graph.py - Streamlit app → Configuration: loads settings
app.py