Each agent creates a Git worktree, which uses disk space:
- Small projects: ~50MB per worktree
- Medium projects: ~100-150MB per worktree
- Large projects: ~200MB+ per worktree
Stale worktrees are automatically cleaned up:
- Default retention: 7 days
- Configurable via
worktree_retention_daysin config.yaml - GitHub Actions run cleanup every 15 minutes
# List all worktrees
git worktree list
# Remove specific worktree
git worktree remove worktrees/agent-dev-42
# Remove all stale worktrees
python .conductor/scripts/cleanup-stale.py --timeout 0
# Alias for quick cleanup (if configured)
gtclean- Large Projects: Set
worktree_retention_days: 3in config.yaml - Regular Cleanup: Run
gtcleanweekly - Monitor Usage: Use
du -sh worktrees/to check disk usage - CI/CD Servers: Set aggressive cleanup (1-2 days retention)
For projects with limited disk space:
# .conductor/config.yaml
worktree_retention_days: 2
max_concurrent_agents: 3This limits the number of worktrees and reduces retention time.