ljsysfurryACE/dsh-compaction ↗★ 0
@agentframe/dsh-compaction
AgentFrame compaction backend for DeepSeek Harness: semantic + physical KV compression (28.4x) replacing LLM summarization
AI 분석
提供高效的语义和物理 KV 压缩方案,替代传统的 LLM 文本总结。适合需要大幅降低长对话 Token 消耗、优化上下文窗口利用率的 DSH 进阶用户。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:ljsysfurryACE/dsh-compaction使用
在 profile 的 cordis.patch.yml 中把 compaction-basic 替换为:
- id: compaction-agentframe
name: '@deepseek-ai/dsh-compaction-agentframe'
config:
semantic: true
retainRatio: 0.2
physical: true
配置
| 字段 | 默认 | 说明 |
|---|---|---|
semantic | true | 语义压缩(保留高信息行) |
retainRatio | 0.2 | 压缩后保留比例 |
physical | true | 物理压缩记账(bytes/token) |
bytesPerToken | 7776 | INT4 压缩后每 token 字节 |
auto | true | 自动压缩 |