mapan0424/deepseek-harness-insights 预览 preview

mapan0424/deepseek-harness-insights

DeepSeek Harness 非官方使用情况洞察插件

项目介绍Project Overview

Harness Insights 是随附的 Cordis 插件,为 DeepSeek Harness 增加本地优先的“用量洞察”设置页,展示 Token 活动、模型用量、会话、缓存命中率、活动分布和常用工具。需要在不改上游源码时查看本地用量可用它;它仅 Web 端、面向 0.1.1-rc.2,且为非官方社区插件。

Harness Insights is a bundled Cordis plugin for DeepSeek Harness that adds a local-first “Usage insights” settings page. It shows token activity, model usage, active sessions, cache hit rate, activity breakdown, and frequently used tools without modifying upstream Harness source. Use it to inspect local usage metadata. It is web-only, targets Harness 0.1.1-rc.2, and is an unofficial community plugin.

或使用命令行安装(适合开发者)Or use CLI install (for developers)

命令行安装CLI Install

dsh plugin --profile demo add @anarkhgatsby/deepseek-harness-insights

mapan0424/deepseek-harness-insights 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

Harness Insights

中文文档

A bundled Cordis plugin for DeepSeek Harness. It adds a local-first Usage insights settings page without modifying upstream Harness source.

Published package: @anarkhgatsby/deepseek-harness-insights.

Preview

The plugin adds a Usage insights page under Harness settings, with token activity, model usage, active sessions, cache hit rate, activity breakdown, and the most frequently used tools.

Harness Insights usage dashboard

Install as a Harness bundle

The package follows the official Harness bundle manifest and can be installed into a profile with dsh plugin:

dsh plugin --profile demo add @anarkhgatsby/deepseek-harness-insights
dsh --profile demo

To remove it later:

dsh plugin --profile demo remove @anarkhgatsby/deepseek-harness-insights

The plugin is web-only and targets the 0.1.1-rc.2 Harness projection and client APIs. It is an independent, unofficial community plugin and is not published by DeepSeek.

For local development, the same bundle can be installed from a checkout:

dsh plugin --profile demo add ./packages/harness-insights

The package also retains its dsh.client metadata so the browser entry is loaded with the required Harness client services.

Data boundary

Harness Insights folds only structured session metadata:

  • assistant/message.data.usage
  • assistant/message.data.message.source.provider/model
  • tool/call.data.name
  • event timestamps and session projection identity

It does not request session history in the browser, store message content, read API keys, or upload usage data. Historical aggregation runs through Harness's official sessionProjectionCache.coldSnapshot() path and persists only the projection checkpoint owned by Harness.

Packaging

The package is developed independently under packages/harness-insights and copied into each bundled runtime at build time. Harness Desktop deploys its tiny pure-JavaScript runtime copy to the standard out-of-tree plugin root under $DSH_HOME/node_modules and loads it through a --patch overlay.

The plugin contains no architecture-specific native modules and is shared by macOS arm64, macOS x86_64, and Windows x86_64 builds.

Tool icon assets

assets/tool-icons contains the project-provided Codex-style Harness tool icon set: 26 matching SVG pairs for light and dark interfaces. The build embeds the optimized pairs into the client bundle; the UI switches them through Harness's body[data-ds-dark-theme] contract without its own theme preference.

上一个 Prev dsh-fetch-models-unselect-all 下一个 Next dsh-live-notify