Automation

Memory Health Monitor

Real-time agent memory health monitoring, compaction tracking, and auto-repair for OpenClaw workspaces.

Buy Now — $4.99

One-time purchase · Instant download · Yours forever

Memory Health Monitor

Real-time agent memory health monitoring, compaction tracking, and auto-repair for OpenClaw workspaces.

Quick Start


# Full health dashboard
python3 scripts/memory-health-monitor.py status

# Monitor context window fill rate
python3 scripts/memory-health-monitor.py context

# Track compaction events and data loss
python3 scripts/memory-health-monitor.py compaction

# Auto-backup memory files
python3 scripts/memory-health-monitor.py backup

# Auto-repair corrupted memory files
python3 scripts/memory-health-monitor.py repair

# Continuous monitoring mode (writes alerts to stdout)
python3 scripts/memory-health-monitor.py watch --interval 60

Commands

`status` — Full Health Dashboard

Displays composite health score (0-100) covering:

`context` — Context Window Monitor

Estimates current context window usage by analyzing:

`compaction` — Compaction Tracker

Tracks memory compaction events by:

`backup` — Auto-Backup

Creates timestamped backups of all memory files:

`repair` — Auto-Repair

Detects and fixes common memory issues:

`watch` — Continuous Monitoring

Runs in background, periodically checking health and writing alerts.

Parameters

| Parameter | Default | Description |

|-----------|---------|-------------|

| --workspace | ~/.openclaw/workspace | Workspace root path |

| --warn-at | 70 | Context fill % to warn |

| --critical-at | 85 | Context fill % critical alert |

| --emergency-at | 95 | Context fill % emergency |

| --max-backups | 10 | Number of backups to retain |

| --format | text | Output format: text, json, markdown |

| --interval | 60 | Watch mode check interval (seconds) |

| --quiet | false | Suppress non-critical output |

Integration with OpenClaw

Add to HEARTBEAT.md for periodic monitoring:


- [ ] Run memory-health-monitor status (every 4 heartbeats)

Or set up as a cron job:


Schedule: every 2 hours
Command: python3 skills/memory-health-monitor/scripts/memory-health-monitor.py status --format json --quiet

Ready to get started?

One-time purchase. No subscription. Download instantly and use forever.

Buy Now — $4.99
Category: Automation Price: $4.99 USD Released: 2026-05-13 Skill ID: memory-health-monitor