Open-sourced self-healing skill for AI agents detects and fixes failures automatically

The self-healing skill is an open-source tool that enables AI agents to automatically detect, diagnose, and fix their own failures. It was developed after a real incident where a cron job broke at 1:24 AM due to a Python script failing to find a template file after macOS cleaned the /tmp directory.
How it works
The agent (named Psy, running on Opus) in the source example detected the failure, traced the root cause, moved the file to a permanent location, updated the code to use relative paths, committed the fix, and rebuilt the failed page. This entire process happened automatically while the developer was asleep, with everything fixed by 9 AM.
Key features
- Failure scanner that checks cron jobs, sub-agents, and deploy logs
- Known-fixes database that learns from every fix so the same error gets resolved instantly next time
- Five-step process: detect → diagnose → fix root cause (not just retry) → verify → log what was learned
Implementation details
The skill works as an OpenClaw skill or standalone tool. It's MIT licensed and available on GitHub at github.com/psyduckler/self-healing-agents. The developer created it as a reusable pattern rather than something baked into a HEARTFEAT.md file.
This type of tool is useful for developers running AI agents in production environments where automated failure recovery can prevent downtime and reduce manual intervention. The approach focuses on fixing root causes rather than simply retrying failed operations.
📖 Read the full source: r/openclaw
👀 See Also

WinRemote MCP: Open Source MCP Server for Full Control of Windows Desktops
WinRemote MCP provides AI agents with full control over Windows desktops, allowing for UI detection, file operations, registry access, and more, utilizing over 40 tools.

Developer Tests Qwen3.5 27B vs Larger Models for Local Coding Tasks
A developer tested multiple Qwen3.5 and Nemotron models, finding Qwen3.5-27B-GGUF:UD-Q6_K_XL performs well for development tasks on existing 2x RTX 3090 hardware, with 803 pp and 25 tg/s at 256k context on vast.ai.

OpenClaw Integration for Indian Stock Markets: Multi-Agent Analysis and Trading Terminal
An open source trading terminal for Indian markets has been wired up as an OpenClaw skill server, allowing any OpenClaw agent to pull Indian stock market data and run full analysis over HTTP without local installation. The system uses seven specialist agents working in parallel to generate structured analysis with trade plans.

Claude Code v2.1.143: Plugin Dependency Enforcement, PowerShell Defaults, and Background Session Fixes
Anthropic released Claude Code v2.1.143 with plugin dependency enforcement, PowerShell -ExecutionPolicy Bypass, new worktree isolation option, and numerous fixes for background sessions, Windows Terminal, and macOS file access.