Liangebra/dsh-smart-compact

Liangebra★ 0TypeScript最后同步: 2026-08-15

在 GitHub 打开

DeepSeek Harness 智能上下文压缩引擎(CompactionEngine 后端):可配置阈值提示、强制自动压缩安全网、DCP 风格去重/清理建议、自定义摘要提示词。零外部状态,原文永不删除。Smart context compaction engine for DeepSeek Harness

README 摘要

English · 简体中文 dsh-smart-compact A custom CompactionEngine backend for the DeepSeek Harness: configurable threshold prompting , a mandatory auto-compaction safety net at the limit, DCP-style dedup / purge suggestions, a fully configurable summary prompt , and a /compact command that keeps the original engine-driven behavior. Why the name? The strategy families — deduplication of repeated tool outputs, purging errored calls, a model-driven compress tool and nudges — are inspired by DCP (Dynamic Context Pruning) , the opencode-dcp approach to keeping long sessions cheap. The mechanism is different: opencode-dcp prunes only the outbound LLM payload without touching session history, while this engine lives on the DSH CompactionEngine seam and writes standard durable compaction brackets into the session log (zero external state, originals never deleted). "smart-compact" names the mechanism; the DCP lineage lives in the strategy module ( dcp.ts ) and the dcp status tool. Zero external state. No kernel, no ledger files, no database, no in-memory state that must stay in sync with the log. Every compression is a standard durable bracket in the append-only session log: Original events are ne…

在 GitHub 查看完整 README →
工具/开发dsh-plugin

分类