dsh-plugin-save-token
Reversible context slimming for DeepSeek Harness: TOON-style lossless tabular re-encoding of uniform JSON arrays, stride-sampled table windows with line numbers, and cross-turn dedup for repeated tool output; every replacement passes a byte-plus-token gate (≤72% bytes, strictly fewer estimated tokens) and the original is spilled to disk behind a `[save-token #id]` notice retrievable in one call via the `save_token_expand` tool, with billed and avoided token metering on a settings dashboard.
可逆的上下文瘦身插件:均匀 JSON 数组走 TOON 式无损表格化重编码,管道表按行号抽样保留窗口,90 秒内字节级相同的工具输出跨轮去重;每次替换都要通过双重门(压缩后 ≤72% 字节且估算 token 严格下降),原文落盘并以 `[save-token #id]` 标记,可用 `save_token_expand` 工具一步取回;设置页仪表盘分别统计实际计费与节省的 token。
How to install
dsh plugin add dsh-plugin-save-token About
dsh-plugin-save-token English | 简体中文 **In one sentence: a DeepSeek Harness (dsh) dynamic plugin that cuts token cost without cutting model intelligence.** It slims down oversized tool outputs at the entrance of every model request — **reversibly and structure-aware**. The full original text is always saved to disk; what the model sees is always a condensed version carrying a retrieval path. Every optimization obeys one red line: **any replacement must be restorable in one step**, and the estimated token count after compression must be strictly smaller than the original. --- Why you need it The…
Recommendation signals
Meta
- License
- MIT
- Language
- JavaScript
- GitHub stars
- 4
- mo. downloads
- –
- Last push
- 2026-08-29
- Created
- 2026-08-27
Basic safety check
- Findings
- None
- Sources
- curated:awesome-dsh-plugin.com, curated:awesome-dsh-plugin/awesome-dsh-plugin
- Topics
- agent, dsh-plugin, token-optimization
Related plugins
get-shit-done
gsd-build/get-shit-done
A light-weight and powerful meta-prompting, context engineering and spec-driven development system for Claude Code by TÂCHES.
dsh-mnemon
dsh-external/dsh-mnemon
Composable three-tier memory control plane for DeepSeek Harness: persistent runtime context, searchable project documents, pluggable long-term memory, guarded strategies, WebUI, and headless tools.
hindsight
vectorize-io/hindsight/tree/main/hindsight-integrations/coding-agents
Hindsight, agent memory that learns: long-term project memory with auto recall and retain, knowledge pages, deep reflection, and per-repo memory banks.
mcp-ssh-manager
bvisible/mcp-ssh-manager
MCP SSH Server: 37 tools for remote SSH management | Claude Code & OpenAI Codex | DevOps automation, backups, database operations, health monitoring