Repository navigation
feat(worktree): reclaim clean worktrees whose commits are all on a remote - #93
Merged
Merged
Conversation
Deploying keeper with
|
| Latest commit: |
c868c26
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://eb1880b0.keeper-9oy.pages.dev |
| Branch Preview URL: | https://cb-pushed-worktrees.keeper-9oy.pages.dev |
Contributor
|
Ejected: the rebase failed: it conflicts in CHANGELOG.md, src/scanners.ts, and the workspace has no Anthropic API key for an agent to resolve that: add one in the dashboard's settings, https://mergeloop.ai/cjber/settings. Add |
…as low risk A worktree with no uncommitted files and no commits outside a remote loses nothing when deleted: the branch and PR stay on the remote and git worktree add recreates it. An open PR now blocks only when there are local-only commits or uncommitted files. Such worktrees use a 1 day idle window instead of staleDays. Detached HEADs on a remote commit count. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KXatHM4gpsmfeiUgUipa9b
cjber
force-pushed
the
cb/pushed-worktrees
branch
from
November 19, 2026 14:52
4a9ae26 to
c868c26
Compare
This was referenced Nov 19, 2026
merge-loop Bot
pushed a commit
that referenced
this pull request
Nov 19, 2026
Releases the two worktree changes on main: #92 (a worktree still on main is offered after 1 idle day) and #93 (a clean worktree whose commits are all on a remote is low risk). Also corrects the #92 changelog line, which said an open PR still blocks; #93 changed that. Verification: `bun run gate` passes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01KXatHLEwwQDashiEwr9ASp --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
cjber
added a commit
that referenced
this pull request
Nov 19, 2026
Prepares the 0.8.0 release: a clean worktree with every commit on a remote is low risk (#93), and an unused worktree still on a default-branch commit is offered after 1 idle day. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Agents create about 120 worktrees a week and keeper blocked nearly all of them (open PR, no merge proof, 7 day window), so about 1,000 piled up. Our rule is that work is always pushed, so a clean worktree with every commit on a remote loses nothing when deleted: the branch and PR stay on the remote and
git worktree addrecreates it.What
inspectWorktree: clean status,rev-list --count HEAD --not --remotesis 0, valid checkout, no unfinished operation, not in use. Low risk, reason "Every commit is on a remote".pushedIdleDays = 1instead ofstaleDays(merged stays exempt).--stale-daysbelow 1 still wins.keeper autoalready applies every bulk-eligible low-risk finding, so it picks these up with no change.Verification
biome,tscandkeeper.test.tspass, with new tests for pushed+open PR (low), touched an hour ago (blocked), unpushed+open PR (blocked), dirty+pushed (blocked), detached HEAD. Two load-renice tests fail only when run undernice 19locally; CI runs them normally.🤖 Generated with Claude Code
https://claude.ai/code/session_01KXatHM4gpsmfeiUgUipa9b