How vishnugovindu23-cmd/llm-alert-summarizer works
This CLI turns an incident bundle into a triage or root-cause report. Its main workflow reads the bundle, applies privacy and injection guardrails, builds a mode-specific prompt, generates structured output with Claude or an offline provider, then validates and grounds the result before rendering the report and audit. The graph includes the documented report capabilities through the report schema and rendering stages. Relationships are based on the sampled source and README; unsampled modules are not assumed to have additional connections.
Main entry points: pipeline.py Summarization pipeline · cli.py CLI · providers.py Provider selection · render.py Markdown renderer
Components 16
CLI workflow
- CLI
cli.py - Summarization pipeline
pipeline.py
Evidence safeguards
- Redaction
guardrails.py - Injection scan
guardrails.py - Prompt construction
prompts.py
Report generation
- Provider selection
providers.py - Claude provider
providers.py - Offline provider
providers.py
Validation and output
- Report schema
schema.py - IOC grounding
guardrails.py - Placeholder restoration
pipeline.py - Markdown renderer
render.py
Other components
- Analyst
- Incident bundle
- Anthropic API
- Incident report and audit
Connections 20
- Analyst → CLI: runs
README.md - Analyst → Incident bundle: provides
README.md - CLI → Incident bundle: reads
cli.py - CLI → Summarization pipeline: calls
cli.py - CLI → Provider selection: selects
cli.py - Summarization pipeline → Redaction: redacts
pipeline.py - Summarization pipeline → Injection scan: scans
pipeline.py - Summarization pipeline → Prompt construction: builds prompt
pipeline.py - Summarization pipeline → Provider selection: requests report
pipeline.py - Provider selection → Claude provider: selects
cli.py - Provider selection → Offline provider: selects
cli.py - Claude provider → Anthropic API: sends request
providers.py - Claude provider → Report schema: configures output
providers.py - Summarization pipeline → Report schema: validates
pipeline.py - Summarization pipeline → IOC grounding: grounds IOCs
pipeline.py - Summarization pipeline → Placeholder restoration: restores placeholders
pipeline.py - CLI → Markdown renderer: renders result
cli.py - Markdown renderer → Incident report and audit: formats report
render.py - CLI → Incident report and audit: writes report
cli.py - Incident report and audit → Analyst: presents findings
README.md