Bundle
@yuuu0109/dsh-cache-hit-decimal
DeepSeek Harness web plugin that displays cache-hit rate with two decimal places
- Source
- Yuuu0109
- stars
- 1 stars
- License
- MIT
- Updated
- Updated 8 days ago
Readme
# dsh-cache-hit-decimal A small DeepSeek Harness Web plugin that replaces the native integer cache-hit percentage with a two-decimal value, such as `42.86%`.  It shadows the existing `stats` cell in `conversation.composer.dock` instead of patching the official conversation package. Removing the plugin restores the native integer display. [中文说明](README.zh.md) ## Install ```sh dsh plugin --profile web add @yuuu0109/dsh-cache-hit-decimal ``` Restart the `dsh web` process and refresh the browser. ## Update ```sh dsh plugin --profile web update @yuuu0109/dsh-cache-hit-decimal ``` Restart `dsh web` and refresh the browser. If a configured npm mirror has not synced the latest version yet, use the official registry: ```sh dsh plugin --profile web update @yuuu0109/dsh-cache-hit-decimal --registry=https://registry.npmjs.org/ ``` pnpm 11 may delay newly published versions for 24 hours. To update immediately: ```sh dsh plugin --profile web update @yuuu0109/dsh-cache-hit-decimal@0.2.0 --config.minimumReleaseAge=0 ``` ## Install from source ```sh git clone https://github.com/Yuuu0109/dsh-cache-hit-decimal.git cd dsh-cache-hit-decimal pnpm install pnpm build dsh plugin --profile web add . ``` ## Changelog ### 0.2.0 - Adapted to DeepSeek Harness `0.1.2-alpha.4`: dependencies and peers moved from `0.1.0-rc.6` to `0.1.2-alpha.4`. - The stats line now reads the host-computed `sessionStats` and `tokenUsage` projections through the standard session hooks (`useProjection` / `useChat`), with the legacy node fold kept as fallback. - Slot registration updated to the current list-slot contract (`id`/`order`/`priority`, `locale: 'chat'`); the native `stats` cell is still shadowed at priority `-1`, and removing the plugin restores the integer display. ### 0.1.4 - Display the full stats line on one centered row without wrapping or an ellipsis. ### 0.1.3 - Display the cache-hit rate with two decimal places. ## Uninstall ```sh dsh plugin --profile web remove @yuuu0109/dsh-cache-hit-decimal ``` Restart `dsh web`. The native integer `StatsLine` becomes the active slot occupant again. ## Development ```sh pnpm typecheck pnpm test pnpm build ``` Compatibility is pinned to DeepSeek Harness `0.1.2-alpha.4` and React 18. This is an independent community plugin and is not part of the official DeepSeek Harness repository.
Install
dsh plugin --profile web add github:Yuuu0109/dsh-cache-hit-decimal
Profile: web
With the hub plugin installed, ask your agent to install it by name — it resolves the same plan shown here.
dsh plugin --profile web add github:stvlynn/dsh.fish#path:packages/dsh-plugin-hub
install yuuu0109-dsh-cache-hit-decimal from the hub
- This package builds from source on install. pnpm will ask you to allow its build script — that is permission to run the package’s code on your machine, outside the agent sandbox. Only allow sources you trust.
- This source has no pinned commit, so a later push upstream changes what installs. Prefer pinning a commit.