How diablogithubx/devops-ai-triage-toolkit works
The toolkit investigates Kubernetes workload and CI failures through a CLI-driven, read-only agent: it gathers evidence via MCP tools, consults an LLM, and returns a diagnosis with execution traces. Distinct branches provide Kubernetes inspection, CI-log analysis, and evaluation of investigation outcomes. The README documents the skill-guided workflow and controlled failure environment. Some source excerpts are partial; uncertain internal links are omitted rather than inferred.
Main entry points: agent_loop.py Investigation loop · server.py MCP server · cli.py Agent CLI · mcp_client.py MCP client
Components 21
Diagnostic agent
- Agent CLI
agent/cli.py - Agent settings
agent/config.py - Triage skill
skills/k8s-triage/SKILL.md - Investigation loop
agent/agent_loop.py - LLM client
agent/llm_client.py - MCP client
agent/mcp_client.py - MCP process config
common/mcp_process.py - Execution traces
agent/trace.py
MCP diagnostics
- MCP server
mcp-server/server.py - Input and response safety
mcp-server/safety.py - Kubernetes tools
mcp-server/kubernetes_tools.py - CI log tools
mcp-server/ci_tools.py - Failure extraction
common/ci_extraction.py
Evaluation
- Evaluation runner
agent/eval/runner.py - Outcome evaluator
agent/eval/evaluator.py - Evaluation reports
agent/eval/report.py
Failure environment
- Failure workloads
env/workloads
Other components
- Operator
- LLM provider
- Kubernetes API
- CI log fixtures
fixtures/ci
Connections 20
- Operator → Agent CLI: starts investigation
README.md - Agent CLI → Agent settings: loads settings
agent/cli.py - Agent CLI → Investigation loop: runs
agent/cli.py - Investigation loop → Triage skill: uses runbook
README.md - Investigation loop → LLM client: requests completion
agent/agent_loop.py - LLM client → LLM provider: sends requests
agent/llm_client.py - Investigation loop → MCP client: dispatches tools
agent/agent_loop.py - MCP client → MCP process config: builds server parameters
agent/mcp_client.py - MCP client → MCP server: calls over stdio
README.md - Investigation loop → Execution traces: emits events
agent/agent_loop.py - MCP server → Kubernetes tools: routes diagnostics
mcp-server/server.py - MCP server → CI log tools: routes diagnostics
mcp-server/server.py - MCP server → Input and response safety: applies controls
mcp-server/server.py - Kubernetes tools → Kubernetes API: reads cluster state
mcp-server/kubernetes_tools.py - CI log tools → Failure extraction: extracts evidence
mcp-server/ci_tools.py - CI log tools → CI log fixtures: reads logs
README.md - Failure workloads → Kubernetes API: deployed to
README.md - Evaluation runner → Agent CLI: executes cases
README.md - Evaluation runner → Outcome evaluator: scores outcomes
agent/eval/runner.py - Evaluation reports → Evaluation runner: formats run results
agent/eval/report.py