treehouse: a pool of git worktrees for parallel agents
Spin several worktrees of one repo at once, see the whole pool's status in one glance, and sweep only the ones that are clean and merged. One bash file.
When two or three agents work in the same repo they collide. treehouse gives each one its own worktree under ~/.treehouse/<repo>/, shows the pool's status in one table, and removes only worktrees that are clean and already merged. Limits: Single-file bash. No Windows shell. It never deletes a worktree with uncommitted or unmerged work, so a dirty pool stays until you clean it. Door 5 of 100 Doors.
License: MIT
Runs on: macOS or Linux, git and bash. No network, no keys.
Setup: Clone, symlink treehouse.sh onto PATH
Get it on GitHubFree