Repository navigation
Critical fix: fuzzy correction silently corrupting technical term searches
scripts/fuzzy_search.py was correcting any in-vocab term with doc < 100 if a close match had 20x+ frequency. This silently swapped technical terms like PreCompact (~50-90 docs in typical brains) for unrelated common words like prompt (10,000+ docs). Result: searches for PreCompact, PostCompact, FastMCP, and other CamelCase / technical terms returned wrong results.
Fixed
- Added
_RARE_DOC_MAX = 30constant. In-vocab terms are only corrected ifdoc < 30AND a close match has 20x+ frequency. Technical terms with 30+ legitimate uses are now protected. - Caught by Codex bootstrap testing — Codex called
search_transcripts("PreCompact hook")and got prompt-related results back.
Upgrade: cd /your/install/path && git pull then restart any Claude Code sessions so the MCP server reloads the module.