session-cleanup
Installation
SKILL.md
Session Cleanup
Maintain Hermes session history without corrupting or bypassing state.db.
For the legacy-to-supported migration rationale, scheduler path pitfall, and first verified cleanup results, load references/v018-migration-and-first-run.md.
Canonical Workflow
The scheduled job runs session_cleanup.py from ~/.hermes/scripts/ (that is where
hermes cron resolves a bare script name). ~/.hermes/bin/session_cleanup.py is a
symlink to it, kept only so older docs/commands still work. Edit the scripts/ file.
Run:
python3 ~/.hermes/scripts/session_cleanup.py
The script: