disyli/dsh-tool-call-stats

disyli★ 0JavaScript最后同步: 2026-08-14

在 GitHub 打开

DeepSeek Harness plugin: per-process tool-call statistics (not token usage) — tool_stats tool with call counts, error counts, avg durations

README 摘要

dsh-tool-call-stats A tiny community plugin for DeepSeek Harness ( dsh ). It records every committed tool call in the current harness process and exposes a tool stats tool, so the model (or you) can ask at any point: Which tools were used, how often did they fail, and where did the time go? Not to be confused with the token/cost trackers in the ecosystem ( dsh-token-stats , dsh-usage-report , ...) — this plugin counts tool-call dispatches , not tokens. Also unrelated to dsh-tool-stat (a descriptive-statistics math tool). Status : built and verified end-to-end against the dsh v0.1 developer preview (headless profile, live DeepSeek session): both event listeners record real dispatches and tool stats returns the table below. Upstream interfaces may still change during the preview. Example output (from the verification run): How it works Everything in dsh is a plugin, and this one is deliberately minimal — three seams, 100 lines, no build step: - tools/execute (waterfall): wraps each dispatch to record its start time, then delegates via next() . - tools/result (observer): counts each committed result per tool name and accumulates duration; result.isError drives the error counter. - ctx…

在 GitHub 查看完整 README →
Tools / Devcordisdeepseek-harnessdsh-plugin

分类