Cleanup

From mderk/memento · View interactive version

Cleanup is an AI agent skill from the GitHub repository mderk/memento. Clean up old workflow state directories to free disk space

How to use this skill

Skill file

Workflow State Cleanup

Remove old .workflow-state/ run directories to free disk space.

Usage

Call mcp__plugin_memento-workflow_memento-workflow__cleanup_runs with:

Examples

| 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" |

CLI

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
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.