When the gateway goes down, it escalates: watchdog → HTTP health check → Claude Code "doctor" (reads logs, diagnoses, autonomously fixes) → Discord alert.
The interesting part: Claude Code is both the patient and the doctor. Open source, bash-only, macOS/Linux.