From memento-workflow
Cleans up old .workflow-state/ run directories to free disk space. Filters by start date, status (completed, running, error), keeps recent runs, supports dry-run previews or remove-all mode.
npx claudepluginhub mderk/memento --plugin memento-workflowThis skill uses the workspace's default tool permissions.
Remove old `.workflow-state/` run directories to free disk space.
Browse, inspect details, compare side-by-side, and clean up past pipeline runs in working/runs/ directories via /runs commands like list, latest, {id}, clean, compare.
Audits drives for orphaned git worktrees, large AI caches (.ollama, .gemini, .cursor, npm, pip), and artifacts (node_modules, .venv). Generates prioritized cleanup and migration plans for low disk space.
Opens local web dashboard to browse workflow runs, inspect step timelines, view artifacts, and diff executions side-by-side.
Share bugs, ideas, or general feedback.
Remove old .workflow-state/ run directories to free disk space.
Call mcp__plugin_memento-workflow_memento-workflow__cleanup_runs with:
cwd: project directory (defaults to .)before: remove runs started before this date (ISO 8601 or YYYY-MM-DD)status_filter: only remove runs with this status (completed, running, error)keep: keep the N most recent matching runs (default: 0)dry_run: preview what would be deleted without deletingremove_all: remove ALL runs (ignores other filters)| Goal | Parameters |
|---|---|
| Remove all completed runs older than a week | before: "2026-03-07", status_filter: "completed" |
| Remove everything, keep last 5 | remove_all: true, keep: 5 |
| Preview cleanup | remove_all: true, dry_run: true |
| Remove orphaned/stuck runs | status_filter: "running" |
cd memento-workflow
python -m scripts.cleanup --before 2026-03-01
python -m scripts.cleanup --status completed --keep 5
python -m scripts.cleanup --all --dry-run