dsh-compaction-meta
Manifest validMeta-compaction: the model decides for itself when and how to compress its own context—listing surface, selecting ranges, replacing with self-written text; the replacement goes through the official compaction transaction (checkpoint, pairing balance, reconstructable).
dsh-compaction-meta · 元压缩
Meta-compaction for DeepSeek Harness:模型自己决定何时、如何压缩自己的上下文。
愿景
我们对未来模型的判断:
- 上下文不会无限大,模型依旧在有限上下文里工作
- 短期内做不到动态权重调整:今天告诉它的信息,不会自动变成永久的记忆
- 模型会获得元认知,能够自我剖析
由这几点推出的方向:
- 有了元认知,模型可以自己控制自己的上下文。今天大部分 harness(包括 DSH)的做法是越过阈值后被动压缩,模型无法干预
- 未来的 harness 应该配合模型的元认知:让模型容易地编辑自己的上下文,容易地为自己添加和删除工具
DeepSeek 的下一步是长期学习,DSH 是面向开发者的基座。
这个插件做的是其中一块:把"编辑自己的上下文"变成模型可以直接调用的动作,替换掉阈值触发的被动压缩。
状态
🚧 骨架阶段——尚未实现。实现计划见 src/index.js 顶部注释。
计划中的能力
context_list:列出当前上下文(带编号、按 turn/调用折叠、前后缀、token 估算),模型据此定位自己记忆中的区间context_compact:把指定区间替换为模型自写的文本;替换走官方 compaction 事务(检查点标记、工具调用配对平衡、日志可重建)- 关闭被动压缩:阈值不再触发,何时压缩由模型决定
- 配套 skill:教模型何时、如何使用
与官方后端的关系
本包是 compaction seam 的第三个 Provider,与 compaction-basic(被动阈值裁剪)、
compaction-instant 并列,在 preset 的 isolate: { compaction: true } 组中替换 basic 使用。
安装
dsh plugin --profile <name> add dsh-compaction-meta
# 或从 GitHub 安装:
dsh plugin --profile <name> add "github:DViridescent/dsh-compaction-meta"
Comments
Loading…
From the same category
by tt-a1i
Agent skill for beautiful, verifiable architecture, workflow, sequence, data-flow, and lifecycle diagrams—self-contained HTML with motion and crisp export.
★ 73.7k
↓ 4.8k/wk
MIT
JavaScript
Sep 28, 2026
dsh plugin --profile agent add @tt-a1i/archify-dshDeepSeek Harness plugin for Reactive Resume: bridges your resumes and job applications into a Harness session over MCP.
★ 41.7k
↓ 275/wk
MIT
Aug 24, 2026
dsh plugin --profile web add dsh-plugin-reactive-resumeby Tencent
Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.
★ 31k
↓ 1k/wk
NOASSERTION
Go
Sep 29, 2026
dsh plugin --profile web add @wxg-prc-cpg/dsh-weknoraby anywhere-labs
为 DeepSeek Harness (DSH) 插件生态打造的现代化桌面端解决方案。万物皆「插件」,桌面本身也是「插件」。
★ 29.4k
↓ 192/wk
MIT
TypeScript
Sep 29, 2026
dsh plugin --profile web add dsh-plugin-desktopdeepseek-harness-desktop is a interface plugin for DeepSeek Harness. See the repository documentation for its documented capabilities.
★ 28.6k
MIT
by titanwings
Distilly — Distill how they think into reusable Skills for any Agent or Bot. Formerly Colleague Skill(原同事 Skill).
★ 25.1k
MIT
TypeScript
Sep 22, 2026