codemap icon indicating copy to clipboard operation
codemap copied to clipboard

find is an identifier search; symptom queries miss the fix file where grep finds it

Open JordanCoin opened this issue 4 weeks ago • 0 comments

codemap find is BM25 over path and identifier tokens. That makes it a good symbol finder and a poor bug-report-to-file locator, but the skill text presents it as the latter.

Two symptom-style queries, both on the fix commit's parent:

  • werkzeug, "rule match converter values wrong parameter order many converters segment": the fix file src/werkzeug/routing/matcher.py is not in the top 5 (rules.py, accept.py, exceptions.py, converters.py are). grep -rl converter src lists matcher.py first.
  • yt-dlp, "redirect Location header relative dot segments urllib": fix file yt_dlp/networking/_urllib.py ranks 4th (5.3 s on 1239 files). grep -rln Location yt_dlp ranks it 3rd in 0.01 s.

Suggestion: say what it is in the tool description ("ranks files by identifier match; use grep for free text"), or add a body-text fallback when the identifier match is weak.

JordanCoin avatar Nov 06 '26 02:11 JordanCoin