Agentic Run History Cleanup
Optimizes agentic workflow environments by aggregating run insights and purging obsolete process data.
The Cleanup skill is an essential maintenance utility for the Babysitter framework that manages the lifecycle of agentic execution data. It prevents storage bloat in the .a5c/runs and .a5c/processes directories by intelligently identifying terminal runs and orphaned files. Beyond simple deletion, it extracts valuable performance data and failure patterns into a centralized insights document, ensuring that historical knowledge is preserved even after raw logs are removed. With support for dry runs and customizable retention thresholds, it provides a safe, deterministic way to keep your agentic development environment lean and performant.
Key Features
01Configurable data retention with the --keep-days parameter
02Interactive dry-run mode to preview deletions before execution
03Automated insight aggregation into docs/run-history-insights.md
04Orphaned process detection to remove unreferenced execution files
05Disk usage reporting and remaining run count summaries
061,310 GitHub stars
Use Cases
01Maintaining workspace performance by cleaning up thousands of legacy agent execution files
02Generating a historical audit trail of agent successes and failures for workflow debugging
03Reclaiming disk space by purging terminal runs while protecting active, in-progress tasks