LoveDoLove/dsh-token-saver ↗★ 1

dsh-token-saver

裁剪工具输出并应用提示词精简以节省Token。 适合需要控制上下文压力、减少Token消耗并稳定缓存布局的用户。

套件
dsh-token-saver
相容性
待驗證
Harness 依賴範圍
>=0.0.1-rc.1 <0.3.0
Cordis 依賴範圍
>=4.0.0 <5.0.0
版本
1.0.2
授權
MIT
最近更新
2026年10月20日

同名套件的其他儲存庫

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:LoveDoLove/dsh-token-saver

Configuration

The settings panel is available in DSH Web under Settings → Token Saver. You can also configure the plugin through its DSH bundle configuration.

Example:

dsh-token-saver:
  mode: conservative # off | conservative | balanced | aggressive
  rtkEnabled: false
  cavemanLevel: off # off | lite | full | ultra | wenyan-lite | wenyan | wenyan-ultra
  ponytailLevel: off # off | lite | full | ultra
  localResponsesEnabled: false
  localResponses: [quota, prefix, title, suggestion, filepath]
  llmSummaryEnabled: false

Modes

  • off — disables token-saving transformations.
  • conservative — trims/folds oversized tool output while retaining the normal DSH compaction path.
  • balanced — enables additional context-pressure handling.
  • aggressive — enables more extensive compaction behavior; review the configuration before enabling it.

Exact behavior depends on the individual options and the installed DSH version. Check the settings panel and configuration defaults for the current build.