跳到主要内容

dsh-context-management

已验证

dsh-context-management · v0.9.29 · MIT

Windowed, reversible context management for DeepSeek Harness; replaces Basic compaction.

安装

dsh plugin add dsh-context-management

用 dsh --profile default --dump-config 确认 layer 已生效 —— 参见安装指南。

源码

标签

说明文档

dsh-context-management

English · 简体中文

DSH 上下文管理插件,自动接管目标 profile 中各 preset 的原生 Basic 压缩,支持上下文换窗、可逆压缩和历史检索。长旅程在压力线附近优雅降级(换窗 → 就地回退 → 有限超出),并提供自适应保真:摘要足够时直答,需要精确值或逐字原文时模型自主下探无损归档。适配 DSH 0.1.7 预发布系列及 0.2.0-rc.1,需要 Node.js ≥ 22.12。没有原生压缩的 preset(如 minimal)保持原样。

安装

CLI profile:

dsh plugin --profile web add [email protected]

桌面端应用(DeepSeek Harness.app)的 desktop profile 由应用独占管理,CLI 会拒绝写入;请在应用内 设置 → 插件 安装同一个包。

桌面端在 设置 → 插件 的包名栏填 [email protected]。精确版本号也可避免刚发布时包管理器的最小发布时长策略回退到旧版。已安装 0.9.12 的 profile 需要升级插件;发布新包不会自动替换旧安装。

卸载

dsh plugin --profile web remove dsh-context-management

桌面端同样在 设置 → 插件 中卸载。

总览:功能、优越性与历史 · 设计思路 · 测试数据 · 可选后台摘要与实验 · 150k 迭代日志 · 长程实验:结论与未决清单 · 版本发布 · npm · MIT / 来源声明