Session Hygiene

Prevent sessions.json bloat from accumulating isolated sessions (hooks, crons, subagents). Sets up a cron to archive stale sessions to daily JSONL files and keep sessions.json lean. Use when sessions.json grows large, the gateway becomes slow or unresponsive, or as preventive maintenance on any OpenClaw instance with hooks or crons. Related to openclaw/openclaw#15225.

knownasnaffy Updated 0 repo stars

File contents

knownasnaffy/prompthound/tree/main/dataset/case_04589 commit 714099f158

Frequently asked questions

npx skillmds@latest add knownasnaffy/session-hygiene-5