Innovation Engine — productivity

Stale Worktree Resurrection Card

May 23, 2026

A daily tablet page that surfaces git worktrees with uncommitted changes older than 5 days across all ~/projects, with stylus checkboxes to keep / archive / finish-now per worktree. Closes the loop on the 'subagent died mid-task, work uncommitted' gotcha you've been burned by, and gives abandoned exploratory branches a graceful exit instead of accumulating silently.

git worktreesTCL tablet syncnotes-watcher dispatcherasync-loop agent spawn

Create ~/bin/stale-worktree-card (bash, ~70 lines): iterate `find ~ -maxdepth 3 -name .git -type d`, for each repo run `git worktree list --porcelain` + `git -C status --porcelain` + `git -C log -1 --format=%ct`, filter to worktrees with dirty index AND HEAD age >5d. Render a markdown page to ~/Tablet/Inbox/worktree-card-$(date +%F).md with one section per worktree (branch, path, dirty file count, last-commit-date) and three checkbox lines `[ ] keep [ ] archive [ ] finish-now`. Add cron `30 6 * * * stale-worktree-card`. Extend existing notes-watcher to detect checked boxes on this filename pattern and dispatch: keep=touch sentinel to suppress for 14d, archive=spawn Haiku agent to `git stash push && git worktree remove`, finish-now=spawn Sonnet agent in that worktree with prompt 'finish or commit-as-WIP the dirty state, then push'. Bats test in stale-worktree-card.test.sh covering the age+dirty filter logic with a fixture repo.

Needs Review
Build timed out after 5 minutes
Active Projects
innovation-engine, russ-telegram, joyos-labs-monitor, linkedin-engine, bys-website
Category
productivity