How kanhaiya-bhayana/debuai works
DebugAI is a stack-trace analysis CLI: it accepts logs, extracts and parses traces, then presents structured diagnostics, optionally enriched with local source, AI analysis, and related GitHub issues. The graph reflects the CLI and supporting modules shown in sampled source; parser routing and the GitHub Action are documented capabilities whose internals were not sampled.
Main entry points: cli.py CLI Workflow · registry.py Parser Registry · ai_analyzer.py AI Orchestrator · action.yml GitHub Action
Components 25
Input and CLI
- CLI Workflow
debugai/cli.py - Clipboard Reader
debugai/clipboard.py - GitHub Action
action.yml
Trace Analysis
- Trace Analyzer
debugai/analyzer.py - Trace Ranking
debugai/scorer/relevance.py - Parser Registry
debugai/parser/registry.py - Python Parser
debugai/parser/python.py - Java Parser
debugai/parser/java.py - Go Parser
debugai/parser/go.py - C# Parser
debugai/parser/csharp.py - Node Parser
debugai/parser/node.py
Optional Enrichment
- Source Context
debugai/source_context.py - Issue Search
debugai/issue_search.py - AI Orchestrator
debugai/ai_analyzer.py - Provider Contract
debugai/providers/base.py - OpenAI Provider
debugai/providers/openai_provider.py - Anthropic Provider
debugai/providers/anthropic_provider.py - NVIDIA Provider
debugai/providers/nvidia.py
Providers and Results
- CLI / JSON Result
debugai/cli.py
Other components
- Developer
- Log Input
- GitHub Actions
- Local Source Files
- GitHub Issues API
- AI APIs
Connections 26
- Developer → CLI Workflow: invokes
- Log Input → CLI Workflow: provides input
- CLI Workflow → Clipboard Reader: reads paste
- GitHub Actions → GitHub Action: runs
- GitHub Action → CLI Workflow: invokes
- CLI Workflow → Trace Analyzer: analyzes traces
- CLI Workflow → Trace Ranking: selects trace
- Trace Analyzer → Parser Registry: selects parser
- Parser Registry → Python Parser: dispatches
- Parser Registry → Java Parser: dispatches
- Parser Registry → Go Parser: dispatches
- Parser Registry → C# Parser: dispatches
- Parser Registry → Node Parser: dispatches
- CLI Workflow → Source Context: reads context
- Source Context → Local Source Files: reads lines
- CLI Workflow → AI Orchestrator: requests analysis
- AI Orchestrator → Provider Contract: uses contract
- AI Orchestrator → OpenAI Provider: selects provider
- AI Orchestrator → Anthropic Provider: selects provider
- AI Orchestrator → NVIDIA Provider: selects provider
- OpenAI Provider → AI APIs: sends prompt
- Anthropic Provider → AI APIs: sends prompt
- NVIDIA Provider → AI APIs: sends prompt
- CLI Workflow → Issue Search: searches issues
- Issue Search → GitHub Issues API: queries
- CLI Workflow → CLI / JSON Result: renders result