Project Templates์ถœ์ฒ˜: Show HN์กฐํšŒ์ˆ˜ 14

Show HN: Self-Healing AI Agents with Claude Code as Doctor

By ramsbaby
2026๋…„ 2์›” 10์ผ
**Show HN: Self-Healing AI Agents with Claude Code as Doctor**

I built a 4-tier self-healing system for OpenClaw (AI agent platform running on my Mac Mini 24/7). The interesting part is Level 3: when health checks fail repeatedly, the system spawns Claude Code in a tmux PTY session to autonomously diagnose and repair issues.Recovery escalation: - Level 0-1: LaunchAgent KeepAlive + Watchdog - Level 2: Automated "doctor --fix" (config validation, port checks) - Level 3: Claude Code spawns in tmux, reads logs, attempts repairs - Level 4: Discord alert if all automation failsProduction-tested in my homelab over 3 months: 99% recovery rate, recovery time reduced from 45min โ†’ 3min avg. Handled 17 consecutive crashes, config corruption, port conflicts.Built for macOS (stable) with Linux systemd support (beta). MIT licensed.Curious what others think about AI-powered infrastructure self-healing. Comments URL: https://news.ycombinator.com/item?id=46956003 Points: 3 # Comments: 0

---

**[devsupporter ํ•ด์„ค]**

์ด ๊ธฐ์‚ฌ๋Š” Show HN์—์„œ ์ œ๊ณตํ•˜๋Š” ์ตœ์‹  ๊ฐœ๋ฐœ ๋™ํ–ฅ์ž…๋‹ˆ๋‹ค. ๊ด€๋ จ ๋„๊ตฌ๋‚˜ ๊ธฐ์ˆ ์— ๋Œ€ํ•ด ๋” ์•Œ์•„๋ณด์‹œ๋ ค๋ฉด ์›๋ณธ ๋งํฌ๋ฅผ ์ฐธ๊ณ ํ•˜์„ธ์š”.