search_graph: clarify how to find a known symbol without specifying its label
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 82/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
- Domain
- devtools
Research direction
Find the search_graph tool description and its documentation, then clarify the difference between BM25 query search and name_pattern lookup. Explain that unlabeled BM25 search excludes Variable nodes, and that literal names should use escaped, anchored patterns. Done when both the tool description and documentation explain these behaviors; the issue reports that an E2E test already verified structural search.
Written by the indexing model from the issue text.
Description
What problem does this solve?
The current search_graph tool description does not clearly explain when to use query versus name_pattern.
For example, given an indexed TypeScript declaration:
export const nativeScaleRefreshMarker = 913;
The following BM25 search does not return the declaration:
{
"project": "<project>",
"query": "nativeScaleRefreshMarker",
"limit": 6,
"format": "json"
}
This is intentional. BM25_UNLABELLED_EXCLUSION excludes Variable, File, Folder and Project nodes to prevent path matches from crowding out other definitions.
However, clients can already find a known symbol without knowing its label by using an anchored name_pattern and omitting query:
{
"project": "<project>",
"name_pattern": "^nativeScaleRefreshMarker$",
"limit": 6,
"format": "json"
}
Proposed solution
Update the search_graph tool description and documentation to explain that:
queryuses BM25 full-text search. Without alabelfilter, Variable nodes are excluded.name_patterncan locate known symbols without requiring their node label.- For literal symbol names, clients should escape regex metacharacters and use anchored patterns.
No changes to BM25 ranking, candidate selection or the database schema are needed.
Verification
A native E2E test confirmed that structural search finds both variable declarations in a repository containing 2,105 competing functions, without specifying a label or changing BM25 behavior.
Confirmations
- I searched existing issues and this is not a duplicate.
- Dominant language
- C
- Stars
- 45.8k
- Forks
- 3.8k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 108
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from DeusData/codebase-memory-mcp
-
bug ux/behavior
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
DeusData/codebase-memory-mcp#3191 ·
Maintainers usually reply within 1 day
-
hook-augment: the five-row cap keeps the first five search_graph rows, so variables and modules displace function definitions (v0.12.1)Possibly taken A pull request linked to this issue is open or already merged. Openbug editor/integration parsing/quality ux/behavior
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
DeusData/codebase-memory-mcp#3062 · 2 comments ·
Maintainers usually reply within 1 day
-
bug documentation editor/integration parsing/quality
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
DeusData/codebase-memory-mcp#3050 · 1 comment ·
Maintainers usually reply within 1 day
-
editor/integration parsing/quality
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
DeusData/codebase-memory-mcp#2286 ·
Maintainers usually reply within 1 day
-
install writes an unsupported `args` key into the Claude Code SubagentStart hook, so it never runsOpenbug editor/integration priority/high stability/performance ux/behavior
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
DeusData/codebase-memory-mcp#2239 · 1 comment ·
Maintainers usually reply within 1 day
All issues in DeusData/codebase-memory-mcp
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
NVIDIA/open-gpu-kernel-modules#1635 ·
Maintainers usually reply within 1 day
-
iOS: the "Edit controls" button never hides, even with a controller connected, and covers the gameOpengame: 010065A014024000 ios
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
seedds/nxnative#3714 · 1 comment ·
Maintainers usually reply within 2 days