Skip to content

v0.1.0

Latest

Choose a tag to compare

@lemonxiny55 lemonxiny55 released this 21 Aug 03:40
· 1 commit to main since this release

English

dsh-code-index — the first native semantic repo index for DeepSeek Harness: tree-sitter symbol extraction, ranked code search, and a bounded auto-refreshing repo map injected into agent context.

Tools

  • code_index — status / rebuild the index for the current workspace
  • code_symbols — list symbols with file:line, filtered by name / path / kind / exported
  • code_search — ranked lookup (exact > prefix > substring, exports first)
  • code_map — bounded ranked repo map (top files by symbol density)

Highlights

  • Pure-local parsing (tree-sitter WASM), no native build
  • TypeScript + JavaScript; incremental mtime cache
  • Optional system-prompt injection (60s TTL, autoInject toggle)
  • Config: excludeDirs / mapTopFiles / mapMaxChars

Verified

35 unit tests · typecheck · end-to-end verified in dsh Web UI

中文

dsh-code-index —— DeepSeek Harness 首个原生语义仓库索引插件:基于 tree-sitter 的符号提取、带排名的代码搜索,以及注入到 agent 上下文的限量自动刷新仓库地图。

工具

  • code_index — 查看/重建当前工作区的索引
  • code_symbols — 列出符号(函数/类/接口/类型/方法…),带 file:line,支持按名称/路径/类型/导出过滤
  • code_search — 排名检索(精确 > 前缀 > 子串,导出优先)
  • code_map — 限量排名仓库地图(按符号密度取核心文件)

亮点

  • 纯本地解析(tree-sitter WASM),无需原生编译
  • 支持 TypeScript + JavaScript;基于 mtime 的增量缓存
  • 可选系统提示词注入(60s TTL,autoInject 可关)
  • 可配置:excludeDirs / mapTopFiles / mapMaxChars

验证

35 项单元测试 · 类型检查 · 已在 dsh Web UI 端到端验证