Skip to content

hooks: pre-search directive does not name a word behind a bare dot - #1762

Merged
swapnilpaliwal-sd merged 1 commit into
0.1.8from
loop/to-p0-presearch-hint-noise
Sep 29, 2026
Merged

swapnilpaliwal-sd merged 1 commit into
0.1.8from
loop/to-p0-presearch-hint-noise

Conversation

@swapnilpaliwal-sd

Copy link
Copy Markdown
Contributor

Follow-up to #1753: the pre-search directive named decl whenever a search was for a Datalog \.decl, and the same rule would name a function called json for a \.json search. A lowercase word behind a bare dot now counts as a name only when it is called (\.name\().

  • Golden: \.work\( names work. Control: \.work (dot only) stays silent.
  • Checked: tests/directive.py 26/26, mcp_first.py 43/43, hooks_from_path.py 26/26, hosts.py ok (VM).
  • Replay of 159 past sessions with the per-session stamp off: the directive speaks on 48 of ~2,200 searches, down from 74, and the next graph call targets the named declaration in 26/48 (54%). The old generic text was said before 2,205 of them.

…ive, not a name the directive names

`\.json` or a Datalog `\.decl` named a same-named function; `.name(` still does.

Co-authored-by: axiomcode-bot[bot] <334110751+axiomcode-bot[bot]@users.noreply.github.com>
Co-Authored-By: Claude <noreply@anthropic.com>
@swapnilpaliwal-sd
swapnilpaliwal-sd force-pushed the loop/to-p0-presearch-hint-noise branch from d844dfa to ede4ca5 Compare September 29, 2026 05:07
@swapnilpaliwal-sd
swapnilpaliwal-sd merged commit 406df07 into 0.1.8 Sep 29, 2026
12 checks passed
@swapnilpaliwal-sd
swapnilpaliwal-sd deleted the loop/to-p0-presearch-hint-noise branch September 29, 2026 05:24
@swapnilpaliwal-sd swapnilpaliwal-sd mentioned this pull request Sep 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant