A minimal ops agent that checks disk/log risk in an OpenClaw workspace and emits a daily markdown report.
- Track: Agent Track
- No browser automation
- Safe by default (read-only unless
--heal)
- Disk guardrail: reports disk usage and compares to a threshold (default 85%)
- Log growth guardrail: lists the largest files under the workspace
- Cron verifier (best-effort): checks whether expected substrings appear in
crontab -l - Self-heal (optional): if usage is above threshold, can safely truncate log-like files under the workspace
cd /home/ubuntu/.openclaw/workspace/projects/moltiverse-hackathon/entries/05-sentinelops
python3 sentinelops.py --dry-run --workspace /home/ubuntu/.openclaw/workspace --top 15 --expect-cron "openclaw,gateway"
sed -n '1,200p' ops-report.mdThis only triggers if disk usage is above --threshold.
# still safe: shows what would be truncated/deleted
python3 sentinelops.py --heal --dry-run
# live: will truncate a few biggest log-like files under the workspace
python3 sentinelops.py --heal --max-heal 3ops-report.md— daily ops report with disk usage, largest files, cron check, and actions taken
- Terminal output showing the command run and
OK ops-report.md(Disk section + Largest files table)- If you used
--heal: the Self-heal actions list inops-report.md - Optional:
df -houtput before/after (if healing)
- Healing only touches files under
--workspaceand only for log-like extensions:.log,.trace,.jsonl,.txt. - It may remove
__pycache__directories. - It does not delete arbitrary files.