2026-11-27 16:21 UTC

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

10-14 13:00⭐ origin echo-reconstructedClean 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 on github (echo) · attributed from hn.story.50110204
—
10-15 21:03first on hacker news · published · +32.1hShow HN: Lopper – A Git Worktree Cleaner
shinokami
—
10-15 21:03amplified on hacker news 👑hn.story.50110204
shinokami
peak 1 · 0 comments · 105% of case engagement
10-15 22:21our radar first saw it · +33.4hdiscovery anchor: hn.story.50110204—

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnShow HN: Lopper – A Git Worktree Cleaner
Retrieved article excerpt

Open 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)
shinokami10
🟧 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

Decision trace