Repository navigation
4.5.0
This release makes worktree cleanup come to you instead of waiting to be asked: a reminder at session start, and /apogee:finish tidying up after its own branch.
Reminder at session start
On a new session or after /clear, in a project with docs/apogee/, the session-start hook counts the linked worktrees of the repository and its first-level submodules. When a record points at a deleted directory, when a worktree has been idle for two hours with every commit pushed or merged, or when five or more are live, the agent mentions it once, in one line, and offers /apogee:cleanup.
The count is cheap by design: no du, no git status, and a two-second budget for the whole scan. It deletes nothing; /apogee:cleanup still checks for uncommitted work and removes only what you pick.
Cleanup in /apogee:finish
- Before the git-flow finish, it removes the linked worktrees that have the branch checked out, which git would otherwise refuse to delete. It never forces: a worktree with uncommitted or untracked files, or a lock, stops the finish with its path; one with submodules goes through the cleanup inventory first.
- Run from a linked worktree, it stops and points at the main checkout.
- After the merge, the report adds one line when the inventory finds stale records or removable worktrees. Other worktrees are left alone, since agents may still be working in them.