Two feature waves since the last release (v1.4.0): a smarter recovery ladder that escalates failed regex searches automatically, and a new curated-docs search lane that surfaces a repo's learnings/, docs/, and git-tracked README/CLAUDE/MEMORY files alongside your session history.
What's New
Curated-docs search lane
One command now covers both "what did we discuss" (sessions) and "what's the documented gotcha" (curated notes):
- Searches the cwd repo's
learnings/thendocs/(orCLAUDE_GREP_DOCS=dir1:dir2), plus every git-trackedREADME.md/CLAUDE.md/MEMORY.mdat any depth. - Each hit is a navigable
file:line § headingpointer — jump straight to it. -sfuses a dense embedding lane with a BM25 keyword lane via reciprocal-rank fusion. Keyword lane needs no index, so doc search still works when Ollama is down.- New flags:
--docs-only(head-safe, no session scan),--no-docs,--index --docs,--bench-docs,--mine-docs-queries.
Recovery ladder
When a regex returns nothing, claude-grep escalates automatically — within your chosen scope, never widening -a/-d:
- regex as typed
- tokenized — multi-word queries retry as AND-of-terms (no Ollama needed)
- semantic — embedding search
A stderr note tells you which layer answered. Near-miss hints suggest a simpler pattern when a complex one fails.
Worktree-aware paths
Run from a git worktree and claude-grep substitutes the main repo path, so you search the project's real session history instead of an empty worktree scope.
Benchmark harness
claude-grep --bench bench/queries.json runs the recovery ladder over a labeled query set and reports layer attribution — measure recall changes against bench/baseline.json.
Full Changelog
feat: curated-docs search lane(#2)feat: --docs-only flag for head-safe curated-docs searchfeat: search git-tracked README/CLAUDE/MEMORY in the curated-docs lanefeat: show file:line in curated-docs hits for navigable pointersfeat: regex->tokenized->semantic recovery ladder with layer telemetryfeat: tokenizedSearch — AND-session, OR-message recoveryfeat: --bench harness over the live recovery ladderfeat: substitute main repo path when run from a git worktreedocs: restructure README for GitHub presentability
Full diff: v1.4.0...v1.7.0