dsh-force-compact
llama-cpp qwen3.8-27b 低上下文时,强制上下文压缩插件,提示模型使用效率和使用流畅度,外加完善的压缩提示。
- 形态
- Plugin 插件
- 安装
- npm 包安装
- 需要密钥
- 否
- 近月下载
- 2,703
- 最近推送
- 7 天前更新
项目说明
From README
dsh-force-compact Aggressive, local-first context compaction for DeepSeek Harness agents.A DSH Cordis function plugin that keeps the agent's working context lean by design: serve Qwen3.8‑27B on a self-hosted llama.
cpp with a modest context, and the plugin shrinks the conversation itself — a large-window feel with no API cost and no data egress.中文 --- Why - Self-hosted inference — the agent talks to a local OpenAI-compatible llama.cpp server through the standard DeepSeek adapter; no separate adapter needed.
- Low context, high signal — instead of fighting a small cap, the plugin shrinks the conversation, so the agent reasons over a tight prompt while keeping deep memory in the compressed head.
- Think off for compactions, passthrough everywhere else — disableThinking: true (default) turns thinking off on this plugin's own compaction summarization call only ; every other model request ri
Original description
Aggressive context compaction for local-first agents. Runs Qwen3.8‑27B on self‑hosted llama.cpp at low context, shrinking history so the live prompt stays small, fast, and private—delivering a big‑window experience without API cost or data egress. 面向本地的激进上下文压缩插件。自托管 llama.cpp 低上下文运行 Qwen3.8‑27B,不断收缩历史、保持常驻 prompt 小而快,兼顾隐私与大窗口体验,零 API 成本、数据不出本机。
安装方式
npm 包安装 · 安装无需配置
npm install @falling-ts/dsh-force-compactdsh plugin --profile web add github:falling-ts/dsh-force-compactdsh plugin --profile web add ./dsh-force-compact安全能力
静态扫描源码得到的权限画像 —— 回答的是「它要动什么」,而不是「它好不好」
- 写入文件
- 读取文件
- 读取环境变量
未发现已知红线(明文传输、安装期执行代码、凭据外传等)。
能力与红线来自 awesome-dsh-plugin 的静态扫描结果(CC0 公有领域),本站未逐行复核源码; 它只覆盖能被静态识别的模式,不等于安全审计结论。
为什么是这个分数
近 8 天内有提交;README 给出了可直接复制的安装命令;装完即可用,无需额外配置;近月 npm 下载 2703 次,star 不多但真在被使用。
- 维护活跃
- 86
- 实用度
- 66
- 生态热度
- 69
- 上手便捷
- 100
- 信号质量
- 100
- 数据置信度
- 100%
相关插件
dsh-clear-mind
john-walks-slow/dsh-clear-mind
让模型自主压缩自身上下文的 dsh 插件:mind_map 工具俯瞰模型自己的上下文表面(稳定 seq、角色、token 重量、清理边界标记,返回内附清理手册),clear_mind 工具把选定的对话历史区间替换成模型自写的检查点(走平台原生 compaction 事务,GUI 渲染可展开的压缩行),调用对自动折叠成单行墓碑,上下文过长或单轮步数过多时主动提醒模型清理;人类侧会话记录保持原样、可审计可回退。
dsh-compaction-policy
zyd232/dsh-compaction-policy
让 DeepSeek Harness 不再过早压缩对话(把早期内容总结掉)。默认行为下,上下文窗口不大的模型(十几万 token 那种)常常在半满出头就开始压缩;装上它之后,压缩会等你设定的比例(默认 80%)到了才发生,并且可以按 provider/model 分别设置。它只改“什么时候压缩”,一次压缩保留哪些内容仍由 DSH 决定。
dsh-plugin-magic-context
wk544863858/dsh-plugin-magic-context
Magic Context for DeepSeek Harness: reversible context reclaim, an out-of-band historian, an m[0]/m[1] memory baseline, project memories, and the compaction seam.