dsh-force-compact
dsh-force-compact 为 DeepSeek Harness 智能体提供激进、本地优先的上下文压缩能力,空闲时影射节点并以检查点替换原文片段,注册的 /force-compact 命令为延迟加载,支持 npm、git 与本地目录
查看原仓库英文描述
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 成本、数据不出本机。
基础信息核对
资料已更新项目活跃度
数据覆盖 60% · 抽样数据 · 数据截至 2026-09-23
100 次提交 · 最近推送 今天
2 个样本 · 暂不计分
2 个样本 · 暂不计分
2 位近 90 天活跃贡献者
最近发布 今天
10 Stars · 2 Forks
安装
dsh plugin --profile web add github:falling-ts/dsh-force-compact
首次安装 GitHub 来源的包时,可能需要在 profile 的 pnpm-workspace.yaml 的 allowBuilds 中允许该包的构建脚本;也可用 github:falling-ts/dsh-force-compact#<commit-sha> 锁定版本。详见官方文档。
还没有 DSH?两步开始 →
第一步:准备 Node.js 环境
DSH 依赖 Node.js(建议 20 LTS 或更新版本)。终端里运行 node -v 能显示版本号即已就绪。
已有 Node.js:直接进入第二步。
没有 Node.js:去 nodejs.org 下载 LTS 安装包(Windows/macOS 双击安装);或用包管理器:
brew install nodewinget install OpenJS.NodeJS.LTS第二步:启动 DSH
无需安装,直接运行:
npx @deepseek-ai/dsh web浏览器打开 http://127.0.0.1:3080,在 Web UI 的插件市场里搜索 dsh-force-compact,或粘贴上面的安装命令。