feat(git): kvb-git-orphans-find for merged and abandoned branches

orphans.py classifies every local branch and detached worktree as merged-clean, merged-dirty, stale-open or active (ancestor or patch-equivalent of origin/<default>, dirty and unpushed counts, last activity, live council claims, busy processes) and proposes kvb-git-branch-gc, ask or keep; it reads only. The skill asks one question before any per-row round. kvb-dream step 8 runs it per repository in scope, kvb-cleanup at watch stage warn or with large worktrees.

🎯 Fix: 92 %
💥 Break: 3 %
💸 Cost: 148 %
⏱️ Time: –
🛡️ Security: 100 %
💰 Value: ?
🏆 Score: 60
🚦 Gate: ⚠️ cost 148 % > 100: ask the operator before the commit

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kevin Veen-BirkenbachandClaude Opus 5.5 committed 2026-11-04 19:58:10 +01:00
1 parent 03c56f0801
commit b8d0b6cf87
6 files changed
+776 -13

No files matched your search

+3 -3
View File
@@ -75,9 +75,9 @@ in-scope session's scripts, tests and skills into their repositories.
The `kvb-cleanup` skill for the disk, `/tmp`, Docker and agent directories the
window filled, with the finished tasks' artifacts (`rasci.py artifacts
--ended`) as candidates; then the `kvb-git-branch-gc` skill for every
in-scope repository's merged branches and worktrees. Each keeps its own
confirmations; the dream never writes, deletes or commits for them. Close
--ended`) as candidates; then `kvb-git-orphans-find` per in-scope
repository, which hands merged-clean rows to `kvb-git-branch-gc`. Each keeps
its own confirmations; the dream never writes, deletes or commits for them. Close
with `date +%s > ~/.claude/.dream-stamps/"$CLAUDE_CODE_SESSION_ID"`, so the
next hint is twelve hours out.