Skip to content

v0.3.1 — Fix fuzzy correction silently corrupting technical term searches

Latest

Choose a tag to compare

@mikeadolan mikeadolan released this 27 May 02:16
· 5 commits to main since this release

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 = 30 constant. In-vocab terms are only corrected if doc < 30 AND 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.