DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Snapcompact — DeepSeek Harness 插件(DSH Plugin)
← Plugins
S

dsh-snapcompact

Snapcompact

DSH 的位图帧上下文压缩插件:使用确定性像素字体对对话历史进行可视化归档

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:JessenReinhart/dsh-snapcompact#6fb85e26537c6ff8eb5b2db95480ac265499bca5
README兼容性版本

兼容性与来源证明

Snapcompact 以 dsh-snapcompact 发布,当前版本为 1.0.0。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
github
Registry 更新时间
2026/9/23

版本

1.0.0stable
2026/9/23

相关插件

正在加载相关插件…

最新版
1.0.0
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
web
许可证
MIT
发布源
github
GitHub
★ 0
周下载
0
最近提交
2026/9/23
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录

相关插件

继续浏览 memory-context 分类下经过校验的插件。

Memory Plugin@openviking/dsh-memory-plugin适用于 DeepSeek Harness 的 OpenViking 记忆与上下文套件Weknora@wxg-prc-cpg/dsh-weknora适用于 DeepSeek Harness (dsh) 的 WeKnora 知识检索工具:通过自有知识库进行语义搜索、文档阅读以及 RAG/代理回答。Archive Manager@michengai/dsh-archive-manager可通过 NPM 安装的 DSH Web 插件,用于管理已归档的会话。Mnemondsh-mnemon面向 DeepSeek Harness 的可组合三层记忆控制平面:持久化运行时上下文、可搜索的项目文档、可插拔的长期记忆、受保护的策略、WebUI 和无头工具。

README

dsh-snapcompact

Bitmap-frame context compression plugin for DeepSeek Harness (DSH).

Inspired by @oh-my-pi/snapcompact.

Instead of asking an LLM to summarize discarded conversation history in lossy prose, snapcompact serializes the exact conversation and renders the text into dense PNG frames of pixel-font glyphs that vision models read back directly. The entire process is local, fast, and deterministic — no auxiliary LLM API calls, no summarization latency, and zero token-cost overhead beyond the compact bitmap frames.

Features

  • Local & Deterministic: High-throughput rasterization using native pixel-font rendering (@oh-my-pi/pi-natives).
  • Provider-Aware Shapes:
    • anthropic (11on16-bw): 8x13 font on 11px advance, black-and-white.
    • google (8on22-bw): 8x13 font on 22px pitch, tuned for Gemini vision budget.
    • openai (8on22-bw): 8x13 font on 22px pitch, sent with detail: "original".
    • cjk (silver16-bw): Silver TrueType font on 16x16 grid for East Asian (Chinese, Japanese, Korean) text.
  • Structured Transcript Serialization:
    • ¶user: user message sections
    • ¶think: assistant reasoning blocks
    • ¶ai: assistant message sections
    • ¶call: name(args)//intent tool calls with parameters
    • <out>...</out> formatted tool results with dimmed noise
    • Automatic FILES section tracking read and modified files ((Read), (Write), (RW))
  • DSH Attachment Integration:
    • Renders PNG frames and persists them through ctx.attachments.saveImages
    • Fully compatible with DSH session persistence and replay
  • Command & Service Support:
    • /snapcompact [--frames <N>] [--shape <name>] [--all] command for on-demand manual compaction
    • SnapcompactEngine implements the standard DSH CompactionEngine service
    • Automatic step-pressure compaction on agent/pre-step
    • Automatic context-overflow recovery on agent/request-error

Installation

1. Clone into DSH Profile

Clone the repository into your active DSH profile's packages/ directory (e.g. desktop):

# Windows PowerShell
git clone https://github.com/JessenReinhart/dsh-snapcompact.git "$env:USERPROFILE\.dsh\profiles\desktop\packages\dsh-snapcompact"

# macOS / Linux
git clone https://github.com/JessenReinhart/dsh-snapcompact.git ~/.dsh/profiles/desktop/packages/dsh-snapcompact

2. Register Bundle in Profile Configuration

Add packages/dsh-snapcompact to dsh.profile.bundles in your profile's package.json (e.g. ~/.dsh/profiles/desktop/package.json):

{
  "dsh": {
    "profile": {
      "bundles": [
        "packages/dsh-snapcompact"
      ]
    }
  }
}

The plugin automatically mounts its Cordis row via the bundled cordis.patch.yml.

3. Native Rasterizer

Snapcompact uses the high-performance native pixel-font rasterizer binary (pi_natives.<platform>.node).

The plugin automatically discovers this binary from any of:

  • ~/.omp/natives/<version>/pi_natives.<platform>.node
  • ~/.bun/install/cache/@oh-my-pi/pi-natives-*
  • Environment variable override: PI_NATIVES_PATH=/path/to/pi_natives.<platform>.node

4. Restart DSH

Restart DeepSeek Harness to load the profile bundle. In chat, test with:

/snapcompact status

Usage

Commands

In any DSH session chat:

  • /snapcompact — Archive older history immediately using smart defaults (auto shape, max 8 frames, retains 16% recent tokens in plain text).
  • /snapcompact auto — Toggle automatic background compaction when the agent is idle.
  • /snapcompact auto on — Enable automatic idle compaction.
  • /snapcompact auto off — Disable automatic idle compaction.
  • /snapcompact auto threshold <pct> — Set context window threshold percentage to trigger idle compaction (default 80%).
  • /snapcompact status — Display current configuration, threshold, and live session token usage.
  • /snapcompact --frames <N> — Archive history with custom maximum frame count.
  • /snapcompact --shape <name> — Archive history with specific font/shape variant (11on16-bw, 8on22-bw, silver16-bw).
  • /snapcompact --all — Archive all eligible history without retaining recent plain text.

Persistence

Auto-compaction preferences are saved to ~/.dsh/snapcompact-config.json and persist across sessions and application restarts.

Programmatic Compaction

const snapcompact = ctx.get("snapcompact");
await snapcompact.compactNow(agent, signal);