Zhuchen00123/dsh-compaction-cacheaware ↗★ 0
dsh-compaction-cacheaware
Reasonix-style cache-aware compaction backend for DeepSeek Harness (DSH). Replaces/enhances compaction-basic with compact_ratio, one structured summary checkpoint, and a stable recent tail.
安装
此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗
说明文档
阅读完整 README ↗dsh-compaction-cacheaware
Reasonix-style cache-aware compaction backend for DeepSeek Harness (DSH).
This is a standalone, modular DSH plugin. It implements the official
@deepseek-ai/dsh-compaction seam (ctx.compaction) and is designed to be
mounted instead of @deepseek-ai/dsh-compaction-basic inside a preset's
compaction realm. It does not modify other plugins, presets, or host files.
🐋 收录于 DSH 创意工坊
本仓库打上
dsh-plugintopic 后,会被 DSH 创意工坊 自动扫描收录。 在线地址:
Docs
- PROJECT.md — 项目说明与维护入口
- MAINTENANCE.md — 维护手册
- MIGRATION_BRIEF.md — 迁移交接说明
- reasonix_compact_design.md — Reasonix 原始设计
What it ports from Reasonix
- One automatic trigger:
compact_ratio(default0.85), not multiple soft/snip/force thresholds. - One structured checkpoint: stable prefix + one summary + recent tail.
- Recent tail budget:
clamp(window×10%, 32K, 96K). - Checkpoint acceptance: normal candidates ≤ 50% of window and below the trigger; exceptional fixed-prefix path requires ≥25% savings.
- Canonical transcript preserved: DSH's surface
replaceshadows the old range in the model-visible projection only; the raw session log remains the source of truth. - One summarizer call per transaction: no application-layer retry loops.
- : , , , , , , .