Autonomous Kubernetes runbook executor with continual learning.
- Parses markdown runbooks into executable decision trees
- Executes them step-by-step against a live K8s cluster
- Asks for approval before any mutating action
- Learns from failures via an CL loop that improves the skill over time
uv sync
make setup # installs git hooks# Parse a runbook
uv run python -m runegard parse assets/runbooks/crashloop.md
# Execute (dry-run)
uv run python -m runegard run assets/runbooks/crashloop.md --dry-run
# Execute (live, against a K8s cluster)
uv run python -m runegard run assets/runbooks/crashloop.md
# Analyze failures and improve
uv run python -m runegard improve trace_log.json --runbook assets/runbooks/crashloop.mdAdd the skill.md to your Claude Code skills directory, then:
"Run the crashloop runbook against my cluster"
make fmt # format code
make lint # run ruff linter
make typecheck # run ty type checker
make test # run all tests
make audit # run all quality checks# 1. Create kind cluster with seeded failures
./demo/setup_cluster.sh
# 2. Run the full demo
./demo/run_demo.shRequires:
- Python 3.12+
uvfor package managementANTHROPIC_API_KEYenvironment variablekubectlconfigured for your cluster (for live execution)