search_graph: clarify how to find a known symbol without specifying its label
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 1/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 82/100
- Issue 类型
- 文档
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- typescript
- 领域
- devtools
调研方向
找到 search_graph 工具描述及其文档,然后阐明 BM25 query 搜索与 name_pattern 查找之间的区别。说明未标注的 BM25 搜索会排除 Variable 节点,并且字面名称应使用经过转义且带锚点的模式。工具描述和文档都解释这些行为后,即为完成;issue 指出 E2E 测试已经验证了结构搜索。
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- C
- 星标
- 45.8k
- 派生
- 3.8k
- 平均合并
- 2 天 18 小时
- 30 天内合并 PR
- 108
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
DeusData/codebase-memory-mcp 的其他 Issue
-
bug ux/behavior
难度 2/5 1-3 小时 新手友好度 70/100
DeusData/codebase-memory-mcp#3191 ·
维护者通常 1 天内回复
-
hook-augment: the five-row cap keeps the first five search_graph rows, so variables and modules displace function definitions (v0.12.1)可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭bug editor/integration parsing/quality ux/behavior
难度 2/5 1-3 小时 新手友好度 75/100
DeusData/codebase-memory-mcp#3062 · 2 条评论 ·
维护者通常 1 天内回复
-
bug documentation editor/integration parsing/quality
难度 2/5 1-3 小时 新手友好度 75/100
DeusData/codebase-memory-mcp#3050 · 1 条评论 ·
维护者通常 1 天内回复
-
editor/integration parsing/quality
难度 2/5 1-3 小时 新手友好度 68/100
DeusData/codebase-memory-mcp#2286 ·
维护者通常 1 天内回复
-
install writes an unsupported `args` key into the Claude Code SubagentStart hook, so it never runs未关闭bug editor/integration priority/high stability/performance ux/behavior
难度 2/5 1-3 小时 新手友好度 72/100
DeusData/codebase-memory-mcp#2239 · 1 条评论 ·
维护者通常 1 天内回复
查看 DeusData/codebase-memory-mcp 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
NVIDIA/open-gpu-kernel-modules#1635 ·
维护者通常 1 天内回复
-
iOS: the "Edit controls" button never hides, even with a controller connected, and covers the game未关闭game: 010065A014024000 ios
难度 2/5 1-3 小时 新手友好度 76/100
seedds/nxnative#3714 · 1 条评论 ·
维护者通常 2 天内回复
-
HTTP/3
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
haskell/bytestring#730 · 1 条评论 ·
-
area/docdb kind/enhancement mvu-pg15-pg19 priority/low
难度 2/5 1-3 小时 新手友好度 76/100
yugabyte/yugabyte-db#40355 ·
维护者通常 1 天内回复