kober-basket/dsh-cachescope2

@kober-basket/dsh-cachescope

Prompt-cache observability and logical-input diagnostics for DeepSeek Harness

AI 分析

核心用途是监控和诊断 DSH 的 Prompt 缓存命中情况与逻辑输入。适合需要优化 Token 消耗、调试 Prompt 结构的开发者。默认会保留最近的完整输入,需注意提示词隐私。

パッケージ
@kober-basket/dsh-cachescope
バージョン
0.1.2
ライセンス
MIT
最終更新
2026/08/30

インストール

$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.

KeySchema defaultInstalled bundleEffect
captureInputmetadatafullRetain fingerprints and metrics only, or bounded complete logical inputs.
maxAttempts500500Maximum attempts retained in process memory. Older attempts are evicted.
rawRetentionAttempts1212Maximum recent attempts that may retain complete inputs.
maxRawInputBytes20000002000000Maximum UTF-8 JSON bytes retained for one complete input.
refreshMs15001500Dashboard polling interval in milliseconds.
logAttemptstruetruePrint one metadata-only summary after each attempt.
includeAuxiliarytruetrueInclude compaction, title generation, and direct calls.
dashboardtruetrueRegister the dashboard when the WebServer is bound to loopback.
pricingunsetunsetOptional 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.