Lopper offers cross-directory Git worktree cleanup for agent-heavy workflows
state: expiredheat: lowuncertainty: mediumrelevance: lowcoding-agent git-worktree developer-tooling worktree-cleanupshinokamishinokamix
What is this?
Lopper is an MIT-licensed Git worktree cleanup tool by Shinokami. Its GitHub README says it searches across directories for repositories and worktrees, lists them in an interactive interface, and offers CLI commands for scanning and removal, including checks intended to avoid removing work with uncommitted changes without warning. The developer’s Show HN post describes the motivation: coding tools such as Codex and Claude Code can leave worktrees in different locations. The supplied sources establish the project’s stated features, not broad adoption or that it has become a standard utility.
Why it matters
Lopper addresses a practical bit of friction as developers use multiple coding agents: worktrees can accumulate across repositories and directories, and Git’s usual listing is repository-by-repository. A cross-directory inventory and cleanup tool may save time and avoid spending agent tokens on housekeeping. But this is an early, single-developer utility; the supplied evidence does not show adoption, prove it finds every agent-created worktree, or support the claim that it could become a standard.
Current assessment
The developer’s Show HN post says coding tools including Codex, Claude Code, T3 Code, Orca and Superset put worktrees in different locations, motivating a deterministic alternative to asking an agent to find and remove them. The GitHub README describes an MIT-licensed tool with an interactive list, repository scans, JSON output and CLI removal; it says removal is checked again and risky cases require a warning or force option. The README also says scans cover common directories or a specified path and that a cache affects discovery speed, not which worktrees are eligible. This is a newly surfaced developer-tooling project, not evidence of a broader trend in usage or a standard. Practical questions for evaluation include scan coverage, safety on valuable or uncommitted work, and whether the workflow is useful alongside agents’ own cleanup. The supplied sources do not establish independent testing, adoption, or comparative reliability.
Measured heat
no measured readings yet — the hourly heat pass fills this in
How the heat travelled
Evidence (2) — ⭐ canonical anchor
| source | object | author | score | comments |
| 🟧 hn | Show HN: Lopper – A Git Worktree CleanerRetrieved article excerptOpen article · Retrieved 2026-10-15T22:28:48.645303+00:00 # lopper
Clean up the Git worktrees you and your agents left behind.
[lopper removes four merged worktrees and, after a warning, two with uncommitted work](https://github.com/shinokamix/lopper/blob/main/packages/demo/demo.gif)
Worktrees end up all over the disk. You create some by hand, coding
agents create one per task, and every tool keeps them in a different
place. Each one is a copy of the project with its own `node_modules`,
`.venv` or Rust `target/`, and can take up gigabytes.
Git lists worktrees one repository at a time. Nothing shows you all of
them, which repository each one belongs to, or how much space it takes.
lopper finds them and puts them in one list, so you can see what is
there and remove what you no longer need.
## Install
macOS and Linux:
```
curl -fsSL https://raw.githubusercontent.com/shinokamix/lopper/main/install.sh | sh
```
Windows, in PowerShell:
```
irm https://raw.githubusercontent.com/shinokamix/lopper/main/install.ps1 | iex
```
With Go:
```
go install github.com/shinokamix/lopper/apps/lopper/cmd/lopper@latest
```
Binaries are also on the [releases page](https://github.com/shinokamix/lopper/releases/latest).
## Usage
```
lopper # interactive UI, scans home and temporary directories
lopper ~/code # scan a specific directory
lopper scan --json # JSON output
lopper rm ../wt # remove if safe, --force otherwise
lopper update # update to the latest release
```
lopper checks GitHub for updates in the background.
Set `LOPPER_NO_UPDATE_CHECK=1` to disable the check.
lopper remembers where it found repositories, in `lopper/repos.json`
under your user cache directory, so that the next scan lists their
worktrees first and finds the rest while you work. The cache only
changes how soon worktrees appear, never which, and nothing is removed
without being checked again. Set `LOPPER_NO_CACHE=1` to scan without it.
## Contributing
See [CONTRIBUTING.md](https://github.com/shinokamix/lopper/blob/main/CONTRIBUTING.md). Security issues go through
[SECURITY.md](https://github.com/shinokamix/lopper/blob/main/SECURITY.md).
## License
[MIT](https://github.com/shinokamix/lopper/blob/main/LICENSE) | shinokami | 1 | 0 |
| 🟧 echo.github ⭐ | Clean up the Git worktrees you and your agents left behind. Worktrees end up all over the disk from different tools (Codex, Claude Code, T3 | shinokamix | — | — |
Interpretation history
2026-10-21T14:08:12Z
audience grounding: low — Lopper addresses a practical bit of friction as developers use multiple coding agents: worktrees can accumulate across repositories and directories, and Git’s usual listing is repository-by-repository. A cross-directory inventory and cleanup tool may save time and avoid spending agent tokens on housekeeping. But this is an early, single-developer utility; the supplied evidence does not show adoption, prove it finds every agent-created worktree, or support the claim that it could become a standard.
Decision trace
- 10-30 10:20expireexpired deterministically: single-evidence seed quiet 14 days (lifecycle)
- 10-22 01:08groundLopper addresses a practical bit of friction as developers use multiple coding agents: worktrees can accumulate across repositories and directories, and Git’s usual listing is repository-by-repository
- 10-22 01:04repair_retry_expeditedAuthorized four-worker Songbird catchup retry after provider cooldown; retain checkpoints and attempt count
- 10-16 10:26attention_routeThe editor compared this story and chose to keep watching.
- 10-16 10:23attention_candidatecreate
- 10-16 10:23groundLopper is a reactive cleanup tool for the current fragmented reality where each coding agent (Codex, Claude Code, etc.) independently creates worktrees in different locations. Scott's canon argue
- 10-16 10:14createBuilder-released tool addressing a concrete multi-agent friction point — different tools create worktrees in different directories, each with node_modules/.venv/target taking gigabytes; Lopper scans,