[Feature]: 使用结构化读取和索引维护代替全量读
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- rust
调研方向
Start by tracing how the desktop app's agent reads files and assembles conversation context; the issue does not identify specific files or tests. Compare that flow with the proposed indexing, structured extraction, range reads, and truncation approaches, then define scope and acceptance criteria before implementation. Done should mean relevant file context can be retrieved without routinely loading whole files, with tests showing the intended behavior.
由索引模型根据 Issue 内容生成。
描述
Problem / opportunity
Proposed behavior
从“全量读取”转向“按需检索与结构化摘要”。它们不再让 Agent 动辄把整个文件塞进上下文,而是通过索引、符号提取、范围读取或强制拦截,只给模型看真正需要的那一小块。
- AST 结构化提取(只给骨架,不给血肉)
- 语义检索与索引(只取相关片段);与其让 Agent 盲猜去读文件,不如先建索引,让它“问”出相关代码。Harness 在后台对仓库建立向量或符号索引。当 Agent 需要信息时,通过语义搜索(如 memory_query)直接返回最相关的代码块(chunk),并附带文件路径和行号,而不是整个文件。
- 数据支撑:ContextOS 的实测显示,相比传统的“Grep 搜索 + 全文件读取”,这种语义检索方式平均每次查询的 Token 消耗从 2,891 降到 1,054(降低约 64%),且准确率更高。
- 强制门禁与范围读取(物理拦截全量读取)
- 大结果转储与截断(溢出处理)
原始链接:https://chat.deepseek.com/share/ng5kcltilw0mlug2ru
Product surface
Desktop app
Details, examples, or constraints
No response
- 主要语言
- Rust
- 星标
- 2.3k
- 派生
- 236
- 平均合并
- 12 小时 24 分钟
- 30 天内合并 PR
- 370
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
GCWing/OpenBitFun 的其他 Issue
-
[Feature]: 模型服务表单缺少「图像生成」分类入口 —— 后端已支持 default_models.image_generation可能已有人在做 @skyfireitdiy 于 21 天前认领。 未关闭
难度 2/5 半天 新手友好度 74/100
GCWing/OpenBitFun#3279 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 35/100
GCWing/OpenBitFun#3784 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 52/100
GCWing/OpenBitFun#3777 ·
维护者通常 1 天内回复
-
[Bug]: v1.0.9 GLIBC_2.43 not found可能已有人在做 @kev1n77 今天认领。 未关闭
GCWing/OpenBitFun#3767 · 已指派 1 人 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 48/100
GCWing/OpenBitFun#3761 ·
维护者通常 1 天内回复
查看 GCWing/OpenBitFun 的全部 Issue
相似的 Issue
-
bug: merge_insert does not detect concurrent inserts of the same FixedSizeBinary primary key可能已有人在做 @lance-gatefixer 今天认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 84/100
lance-format/lance#10811 ·
维护者通常 2 天内回复
-
provider testing
难度 2/5 1-3 小时 新手友好度 78/100
mishraprafful/multihull#234 ·
维护者通常 1 天内回复
-
comp-documentation
难度 1/5 1 小时以内 新手友好度 84/100
ClickHouse/ClickHouse#129829 ·
维护者通常 1 天内回复
-
bug needs triage python
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
state:needs triage
难度 2/5 1-3 小时 新手友好度 87/100
zed-industries/zed#66628 ·
维护者通常 1 天内回复