Cheng-cheng9669/dsh-cache-precision

DSH client plugin: render the built-in session cache-hit percentage with three decimal places.

Bundle verified MIT JavaScript v0.1.1
Bundle verified

Listed

3

Tools

Bundle verified

Versionv0.1.1
LanguageJavaScript
LicenseMIT
View on GitHub

What it does

Renders the built-in cache-hit percentage with three decimals and widens the composer stats line to prevent truncation.

Best for

  • Users who inspect small changes in DSH's built-in session cache-hit percentage.
  • Web UI setups where three-decimal cache precision is useful for comparing cache behavior.
  • Users whose composer statistics are currently truncated and need a wider in-place stats line.

Not ideal for

  • Users who do not monitor cache-hit percentages or need only whole-number precision.
  • Workflows needing cache-policy changes or performance optimization; the plugin only changes display precision and width.
  • Interfaces other than the built-in composer stats line, which is the specific surface this plugin modifies.

README

dsh-cache-precision

English 中文

Two in-place composer-dock refinements:

  1. Rewrites the built-in cache-hit percentage with three decimals (缓存命中 12% -> 缓存命中 12.345%).
  2. Widens the built-in stats line (max-width grows beyond the chat content width) so the extra precision and other dock items no longer truncate with ....

Both read the same tokenUsage projection and re-apply automatically after React re-renders.

Install

dsh plugin --profile web add D:\Dsh\tools\dsh-cache-precision

Restart dsh web.

Frequently Asked QuestionsFAQ

Use the verified command dsh plugin --profile default add github:Cheng-cheng9669/dsh-cache-precision in a DSH-enabled shell. The command resolves the public package metadata and keeps the plugin attached to the catalog identity shown on this page.