Innovation Engine — productivity

Tool Graveyard Reverse-Index

August 29, 2026

Ethan has 700+ custom tools but no reverse map from a *problem phrase* to the tool that already solves it, so new sessions keep rebuilding near-duplicates (tool-recall, tool-rediscovery-card, tool-half-life all attack this after the fact). This builds a one-shot semantic index of every tool's purpose line and injects a 'you already built this' warning into any session where Ethan states an intent that matches an existing tool above threshold.

~/bin custom tool corpusembed-batch-submitClaude Code UserPromptSubmit hooksidea-debt-ledgersystemd timers

Create ~/bin/tool-prior-art: (1) build step walks ~/bin/* and ~/.claude/skills/*, extracts the first comment block / --help line of each as a purpose string, writes ~/.cache/tool-prior-art/index.jsonl; (2) embed each purpose via the existing embed-batch-submit tool, cache vectors keyed by file mtime so rebuilds are incremental. Then add a UserPromptSubmit hook in ~/.claude/settings.json that pipes the prompt to `tool-prior-art match --top 3 --min-score 0.72`; on a hit it emits additionalContext: 'Prior art: ~/bin/ — . Confirm this doesn't already cover the ask before building.' Wire a weekly systemd timer to `tool-prior-art build` alongside the existing tool-graveyard-reaper timer, and emit near-duplicate pairs (score > 0.9 between two existing tools) into the idea-debt-ledger for consolidation.

Needs Review
Build timed out after 5 minutes
Active Projects
innovation-engine, joyos-labs-monitor, joyos-lab-staging, jekelinspections, .claude
Category
productivity