Install
openclaw skills install agent-self-careAutonomous agent health, optimization, and cleanup. Use when: (1) running scheduled cron jobs for agent maintenance, (2) responding to "optimize", "cleanup",...
openclaw skills install agent-self-careAutonomous health monitoring and optimization for OpenClaw agents. Runs on cron or triggers manually.
subagents action=list
Kill any stale sub-agents:
process action=list
Kill hanging processes:
session_status
Metrics to watch:
Execute scripts/optimize.sh which:
After 10 executions, run:
memory/daily/YYYY-MM-DD.mdRecommended: Every 5 minutes for active agents.
{
"name": "agent-self-care",
"schedule": {"kind": "every", "everyMs": 300000},
"payload": {"kind": "agentTurn", "message": "Run agent-self-care skill"},
"sessionTarget": "isolated",
"enabled": true
}
Report after each run:
🔧 Self-Care Report
- Sub-agents: X active, Y killed
- Processes: X running, Y cleared
- Context: X% used
- Health: ✅ GOOD / ⚠️ WARNING
- Retrospective: SKIP / COMPLETE