kober-basket/dsh-cachescope ↗★ 2
@kober-basket/dsh-cachescope
适用于 DeepSeek Harness 的 Prompt 缓存可观测性与逻辑输入诊断插件。
AI 分析
核心用途是监控和诊断 DSH 的 Prompt 缓存命中情况与逻辑输入。适合需要优化 Token 消耗、调试 Prompt 结构的开发者。默认会保留最近的完整输入,需注意提示词隐私。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:kober-basket/dsh-cachescope說明文件
閱讀完整 README ↗Configuration
The Schema default applies when the plugin is mounted directly. The published installable bundle overrides only captureInput to full; the profile's own patch remains authoritative.
| Key | Schema default | Installed bundle | Effect |
|---|---|---|---|
captureInput | metadata | full | Retain fingerprints and metrics only, or bounded complete logical inputs. |
maxAttempts | 500 | 500 | Maximum attempts retained in process memory. Older attempts are evicted. |
rawRetentionAttempts | 12 | 12 | Maximum recent attempts that may retain complete inputs. |
maxRawInputBytes | 2000000 | 2000000 | Maximum UTF-8 JSON bytes retained for one complete input. |
refreshMs | 1500 | 1500 | Dashboard polling interval in milliseconds. |
logAttempts | true | true | Print one metadata-only summary after each attempt. |
includeAuxiliary | true | true | Include compaction, title generation, and direct calls. |
dashboard | true | true | Register the dashboard when the WebServer is bound to loopback. |
pricing | unset | unset | Optional currency and per-million-token rates for local cost estimates. |
Optional pricing
Supply all four rates from your current provider price sheet; CacheScope does not ship or update a pricing table.
- id: cachescope
name: '@kober-basket/dsh-cachescope'
config:
pricing:
currency: CNY
uncachedInputPerMillion: 0 # replace with your current rate
cacheReadPerMillion: 0 # replace with your current rate
cacheWritePerMillion: 0 # replace with your current rate
outputPerMillion: 0 # replace with your current rate
Replace every zero before relying on cost estimates. CacheScope uses normalized usage fields and the values you supply; the example contains no current or recommended provider rates.