Output-Overview: Viewing AI Output and Costs in DSH Web

Preface

When developing agents with DeepSeek Harness (DSH), session logs frequently contain write-class tool calls such as write, edit, and str_replace_editor. However, the host itself does not directly provide summaries such as “how many lines of code were generated, how much documentation was written, the adoption rate of changes, or the cost allocated by model.” To review efficiency or verify expenses, users often have to dig through logs or rely on external scripts, resulting in inconsistent statistical criteria.

output-overview is a community-maintained third-party DSH plugin. It reads session history from the local ~/.dsh/sessions, performs offline aggregation of code and document output, calculates two types of adoption rates, and collects costs by turn. It displays this information via a web settings panel and an HTTP API. All calculations are performed locally without accessing external services. The DSH ecosystem advocates “everything is a plugin”; directory pages like SkillHub are independently maintained by the community and have no official affiliation with DeepSeek or High-Flyer.

What is this

Maintainer: MarchingWorkhorse. Repository: Output-Overview, Directory Page: SkillHub - Output-Overview. Current package version 0.3.1, License MIT.

The plugin accesses session logs in read-only mode via the host-mounted ctx.sessionQuery, identifies file write operations, and performs approximate replay statistics. Under the web profile, it relies on the built-in webServer to register routes and host the frontend panel. In terms of classification, it is often categorized under “Memory” in directories, but its actual capabilities focus on output statistics and cost collection, rather than long-term memory storage.

Core Features

The definitions of the metrics below are derived from the plugin’s README. Window filtering (All / Today / Last 7 / 30 days / Custom from/to) only counts operations within the selected period; content replay still utilizes the full history to ensure accurate “code survival” determination.

Metric Description
Generated Code Lines Lines from full write content + lines added by editing tools; documentation files are excluded based on extension.
Documentation Statistics Count of files and generated lines for .md, .markdown, .mdx, .txt, .rst, .adoc.
Adoption Rate (Code Survival) Replays all writes/edits and performs line-level source tracking: Lines generated within the window that are still alive ÷ Lines generated within the window.
Adoption Rate (Tool Execution) The proportion of successful executions of write-class tool calls; rejected, errored, or result-less executions count as non-adoption; read-only view is not included.
Cost Collects token costs by turn (uncached input / cache read / cache write / output), then allocates them proportionally based on the lines of code/documents generated in that turn; turns with no writes are counted as “Conversation Overhead”; defaults to displaying in Renminbi (CNY, ¥), can be converted from USD based on configured exchange rates.
Display Dimensions Overview cards, by session, by date, and Top file list; the panel includes trends for the last 14 days and Top 10 files.

The README provides an example from a real environment (37 sessions): 12,604 lines of code generated, Code Survival Adoption Rate 80.5%, Tool Execution Adoption Rate 88.0%, Documentation 58 files / 4,682 lines, Total Cost ¥58.06 (including breakdowns for code, documentation, and conversation overhead, converted at 1 USD = 6.70 CNY). These figures serve only to illustrate the statistical criteria and do not represent the results in your environment.

Installation and Activation

The installation command must follow the original documentation (web profile):

dsh plugin --profile web add https://github.com/MarchingWorkhorse/Output-Overview.git

After installation, restart DSH (the plugin enters the bundle stack and requires a process reload). Open the web interface at Settings → Output Overview to view the panel.

For local development and debugging, you can install via a directory path (the Windows example uses a junction link; changes take effect after restart):

dsh plugin --profile web add D:\path\to\output-overview

Compatibility: The README notes verification on DSH 0.1.5-rc.1 (web profile). Profiles without a web panel, such as headless, are marked as untested in the documentation.

Typical Usage

Web Panel

  1. Navigate to Settings → “Output Overview”.
  2. At the top, you can multi-select workspaces (click list items to toggle; “All Workspaces” clears the selection), toggle subagent sessions, and select a time range.
  3. View the trend table and Top 10 files below. Costs are displayed in ¥ with the exchange rate noted. When a workspace is selected, all cards (including total cost) only aggregate sessions for that workspace; the top right corner displays “N sessions (of M total)”.
  4. Click “Pricing Config” to extract the model list from session logs, fill in the four types of unit prices, select the unit price currency (USD/CNY), default model, display currency and exchange rate, then Save and Recalculate. This writes to ~/.dsh/output-overview-config.json (taking precedence over cordis.patch.yml).

HTTP API

Summary Data:

GET /output-overview/api/summary

Common Query Parameters:

  • workspace=<cwd>: Can be repeated for multi-selection (defaults to all).
  • subagents=false: Controls whether to include subagent sessions.
  • from=<ms>&to=<ms>: Custom time window (epoch milliseconds, inclusive range).
  • refresh=1: Refresh cache.

The response includes aggregations for code/documentation/adoption rates/costs; all metrics (including cost and session count) follow workspace filtering—sessionCount represents the number of sessions in the selected workspace, while the total count for the entire library is totalSessionCount. Cost fields have been converted according to displayCurrency (annotated with costs.currency and costs.fx.rate).

Pricing and Currency Override:

GET /output-overview/api/config
POST /output-overview/api/config

The summary cache is automatically invalidated after a POST save.

Pricing and Currency (YAML Optional)

In addition to the panel, configuration can be done in the profile’s cordis.patch.yml (requires restart after changes). Multi-model tiered pricing example (excerpt):

- id: output-overview
  config:
    pricing:
      default: glm-5.3-flash
      unit: CNY
      models:
        glm-5.3-flash:
          hit: 0.11
          miss: 0.42
          write: 1.4
          out: 1.4
    currency:
      code: CNY
      symbol: "¥"
      fx: 6.7

A default tier for glm-5.3-flash is built-in (USD pricing: Input $0.06 / Cache Read $0.01725 / Cache Write $0.21 / Output $0.21). Display defaults to CNY, with a default exchange rate of 1 USD = 6.70 CNY (README notes exchange rate as of 2026-10-12).

Use Cases and Notes

Who it is for: Developers who need to view the scale of DSH-generated code/documentation, adoption rates, and model cost allocation by workspace and time range within the same web interface; also suitable for secondary display or scripting data retrieval via the HTTP API.

Permissions and Data: The plugin runs with the current DSH process permissions and can read ~/.dsh/sessions as well as tool arguments within sessions. You should review the source code and MIT license yourself before installation. The documentation states: Statistics routes are GET requests, do not execute shell commands, do not access the external network, and do not collect telemetry; the only write operation is the atomic write to ~/.dsh/output-overview-config.json when saving pricing via the panel.

Statistical Limitations: Edit replay executes literal substring replacement semantics; if files are modified by means other than the AI, metrics may deviate in extreme cases. Rejected or failed writes are not counted towards generated lines.

Conclusion

output-overview transforms write-class tool calls within DSH sessions into a readable output overview and cost breakdown, centralized in Settings → Output Overview and the /output-overview/api/* interfaces. It is suitable for offline local reviews of “how much was written, how much remains, and how much was spent” in AI-assisted development.

  • Directory Page: https://www.skillhub.cn/plugins/MarchingWorkhorse/Output-Overview
  • GitHub: https://github.com/MarchingWorkhorse/Output-Overview
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye