Prerequisites:
- A Kubernetes cluster you can install into, and
kubectlpointed at it - Helm 3
- Go 1.21+ with
$GOPATH/bin(or$HOME/go/bin) on yourPATH - An Anthropic API key — optional. Without one, everything below still works; the plan comes back rule-based instead of AI-written.
1. Install the CLI
2. Install the operator with self-healing on
llm/aiRemediation flags if you are running without a key.
healthCheck.enabled=true is the flag that turns the loop on — it is off by default. See AI setup for verifying that the AI planner started.ClusterPersona named dorgu-cluster on startup and discovers your nodes, add-ons, and capacity:
3. Deploy an app that will break
Save this asdemo-oom.yaml. It is a container that allocates ~90 MB against a 64Mi limit, so the kernel OOM-kills it within seconds.
OOMKilled, then CrashLoopBackOff. Left alone, Kubernetes would restart it forever.
4. Watch Dorgu detect and diagnose it
Wait one detection cycle — 30 seconds with the settings above — then:OOMKilled and CrashLoopBackOff. Two symptoms, one root cause. Read the diagnosis:
ai-enhanced when Claude ran, rule-based otherwise.
5. Review the proposed fix
PLAN: ai-anthropic if AI planning is on. Now read the actual plan:
dorgu remediation for a full annotated example.
6. Approve — and watch it heal
ApplicationPersona spec — the app’s desired-state record. Then the CLI shows you exactly which Deployment, container, and fields it is about to change, asks for confirmation, and patches the Deployment with your credentials. Add --yes to skip the prompt.
1/1 Running with no new restarts. That is the aha.
7. It is remembered
The remediation will read
Applying or Verifying for the next ~10 minutes, and the incident stays open until then. That is the verification window: the operator re-runs detection at the end of it and automatically rolls the change back if health regressed. Your pod is already healthy — the wait is what makes the rollback guarantee real.Clean up
Also: generate manifests
Manifest generation is Dorgu’s other half. Point the CLI at any app with aDockerfile or docker-compose.yml:
--dry-run to print instead of write, and --llm-provider openai (or anthropic, gemini, ollama) for LLM-enhanced analysis. See the manifest generation guide.
Next steps
Self-healing in depth
Detection signals, guardrails, verification, and troubleshooting
dorgu remediation
Every flag for list, diff, approve, reject, and heal
AI setup
Key handling, verification, and how to turn AI off
Working with personas
Write the personas the loop depends on