Innovation Engine — insight

Screenshot Debt Reaper

August 28, 2026

Ethan's recent sessions are full of pasted screenshots from ~/.claude/image-cache, and he already has cleanup-screenshots, but nothing links a screenshot to the decision it produced. This indexes every image dropped into a Claude session against the session's goal ledger entry, so 'that screen with the elements to remove' becomes searchable months later instead of an orphaned PNG.

claude-session-capturecleanup-screenshotsgoal-ledgermemory-search

Create ~/bin/screenshot-provenance-index: a bash+jq script that walks ~/.claude/projects/*/**.jsonl for user messages containing image-cache paths, extracts the surrounding 200 chars of prompt text plus the session id, and appends {image, session, project, prompt_snippet, mtime} lines to ~/.claude/state/screenshot-index.jsonl. Join against the existing goal-ledger output per session id to attach the ledger goal string. Add a `screenshot-recall ` wrapper that greps the index and prints matching image paths, opening the top hit with xdg-open. Wire a daily systemd timer (mirroring the cleanup-screenshots unit pattern) that runs the indexer BEFORE cleanup-screenshots so purged images still leave a searchable text record, and have cleanup-screenshots skip any image referenced in a ledger entry from the last 14 days.

Needs Review
Build timed out after 5 minutes
Active Projects
jekelinspections, bys-website, .claude, innovation-engine, joyos-lab-staging
Category
insight