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.
How this skill is triggered — by the user, by Claude, or both
Slash command
/memento-workflow:cleanupThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Remove old `.workflow-state/` run directories to free disk space.
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
npx claudepluginhub mderk/memento --plugin memento-workflowInteractively bulk-cancel stale non-terminal workflows with a dry-run preview, safeguard checks, and user confirmation before applying.
Resets workflow artifacts (.otto/ directory) by clearing sessions, tasks, and specs. Useful for starting over with a clean state.
Cross-drive storage audit and cleanup. Surveys all drives, finds orphaned git worktrees, large AI tool caches, and build artifacts. Produces a prioritized action plan with migration commands.