Skip to content

Releases: huangjua/dsh-context-economy

Release list

v0.0.1

Choose a tag to compare

@huangjua huangjua released this 16 Aug 06:25

AI 生成声明
本插件由 DSH(DeepSeek Harness)搭载 DeepSeek V4 Flash 编写,开发过程中使用了
myDshPresets 插件。

dsh-context-economy v0.0.1

Token-efficient project reading plugin for DSH —— 项目阅读的"上下文经济层"。

这个插件是怎么写出来的

  • 灵感来源:拆解 DSH 自带"项目阅读 + Agent 记忆"的 token 经济(指针式懒加载、mtime 自愈、spill 落盘)。
  • 骨架:DSH 插件生产线 dev_scaffold_plugin 生成 hybrid 形态。
  • 实现:src/core.ts(增量文件树/符号表/import 图 + byte 切片)、src/index.ts(6 个 project_* 工具)。
  • 构建:本机坏 WSL bash,改用运行时 junction + 本地 tsc 编译。
  • 验证:scripts/e2e-self-test.mjs 真实跑通,并在 demo 项目量化出单次符号查询约省 80–93% 输出 token。

Tools

  • project_index_status
  • project_symbols_find
  • project_imports
  • project_files
  • project_slice_read
  • project_cost_probe

Install

Use the DSH plugin installer with this tarball, or clone + build via npm run build.