How the Archon Cleanup Service Manages Old Workflow Runs and Associated Worktrees
The Archon cleanup service automatically reclaims disk space by removing merged and stale git worktrees every 6 hours while preserving active sessions, and provides manual CLI commands to purge old workflow run records from the database.
The Archon project (coleam00/Archon) maintains isolated development environments using git worktrees to sandbox AI-driven workflows. As these isolation environments proliferate across codebases, the cleanup service implemented in packages/core/src/services/cleanup-service.ts provides a robust retention strategy that aggressively targets disk space consumption while implementing strict safety checks
Have a question about this repo?
These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:
curl -s "https://instagit.com/install.md" Maintain an open-source project? Get it listed too →