Project Templates์ถ์ฒ: Show HN์กฐํ์ 13
Show HN: Self-Healing AI Agents with Claude Code as Doctor
By ramsbaby2026๋
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์์ ์ ๊ณตํ๋ ์ต์ ๊ฐ๋ฐ ๋ํฅ์ ๋๋ค. ๊ด๋ จ ๋๊ตฌ๋ ๊ธฐ์ ์ ๋ํด ๋ ์์๋ณด์๋ ค๋ฉด ์๋ณธ ๋งํฌ๋ฅผ ์ฐธ๊ณ ํ์ธ์.
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์์ ์ ๊ณตํ๋ ์ต์ ๊ฐ๋ฐ ๋ํฅ์ ๋๋ค. ๊ด๋ จ ๋๊ตฌ๋ ๊ธฐ์ ์ ๋ํด ๋ ์์๋ณด์๋ ค๋ฉด ์๋ณธ ๋งํฌ๋ฅผ ์ฐธ๊ณ ํ์ธ์.
