QIANLING-0831/dsh-memory-plus--packages-dsh-compaction-locator2

dsh-compaction-locator

Near-lossless compaction for the DeepSeek Harness — extends BasicCompactionEngine so each <compacted-summary> ends with an Exact Sources locator block (spill files, touched file paths, seq range), making compacted details recoverable via memory_search / read.

AI 분석

扩展基础压缩引擎,在压缩摘要后追加精确源定位符(如溢出文件、触碰路径),使压缩细节可被检索恢复。适合长会话且不愿丢失细节的用户。

패키지
dsh-compaction-locator
버전
0.1.0
라이선스
MIT
최근 업데이트
2026. 8. 20.

설치

검증된 bundle이 없거나 호환성 검사에 실패했습니다. 먼저 저장소 설명을 읽어 주세요. 전체 README 읽기 ↗

cordis.patch.yml — 用本插件替代 @deepseek-ai/dsh-compaction-basic(配置完全兼容)

plugins:

  • name: dsh-compaction-locator config: thresholdRatio: 0.8 retainRatio: 0.16

## 行为细节

- 定位符按 shadowed 区间的**全跨度事件**提取:spill 路径(从 tool/result 文本 `stored at: 
` 解析)+ 触碰文件(从区间内 tool/call 的 `path`/`file_path` 参数);
- 纯对话区间(无文件/spill)不产出定位符块,摘要保持原样;
- 除 `summarize()` 外不改任何行为:压力判定、retain 策略、shrink 校验、KV 复用的重放前缀全部继承基类。

## 测试

```sh
node --test test/compaction-locator.test.js