Records completed tool-call durations and argument/result sizes (not contents) in monthly JSONL, then ranks slow, large and failing tools with /tools-stats; concurrent sibling calls are keyed separately.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:121212165/dsh-plugin-tool-trace
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
🧩 dsh 插件家族(22 件):总目录 dsh-plugin-family | 明星插件:ide-hub 跨 IDE 统一管理 · task-forge 跨窗口无损交接 · quota 实时用量仪表
EN · Per-tool-call telemetry: duration plus argument and result sizes appended to monthly JSONL, with /tools-stats ranking the slowest tools. Keys off the same rootCallId/callId pairing that price-aware verified. · 6 node --test green · result size is exact when content is a string and a serialized estimate otherwise · not live-mounted.
DeepSeek Harness (dsh) 插件:工具调用追踪。每次工具调用记录耗时、参数量与结果量(只记大小,不记内容),按月 JSONL 落盘,/tools-stats 出慢工具排行榜。transcript 回答"说了什么",本插件回答"做了什么、慢在哪"。
功能
/tools-stats:按累计耗时排序,展示调用次数、累计/平均/最慢耗时、平均结果量、错误计数。- 零模型可见面:追踪只写文件不进上下文,是给人看的透视镜。
- 容错:崩溃留下的半行跳过并计数;调用中途死掉只有开始没有结束,聚合自然忽略。
配置
| 字段 | 默认 | 说明 |
|---|---|---|
dataDir |
~/.dsh/tool-trace |
JSONL 目录 |
captureArgsSize |
true |
记录参数 JSON 长度 |
安装
三步,实测于 @deepseek-ai/dsh@0.1.7-alpha.1(需 pnpm 在 PATH 上):
# ① 装进 profile:dsh plugin 把参数原样转发给 pnpm,git 包会自动跑 prepare 构建 lib/
dsh plugin --profile web add github:121212165/dsh-plugin-tool-trace
② 把本仓库根目录 cordis.patch.yml 的内容并进 $DSH_HOME/profiles/web/cordis.patch.yml。
该文件默认是 [],所以要么整份替换,要么把 insert 条目并进同一个数组;不要直接追加——
追加会形成两个 YAML 文档,启动即报
failed to parse overlay ... end of the stream or a document separator is expected(本机实测踩过)。
③ 重启 dsh。配置层与 client 半都要重启才生效(客户端按 boot 时算出的内容 rev 下发,硬刷新浏览器没用)。
自检挂载:dsh --profile web --dump-config | grep dsh-plugin-tool-trace,应看到该条目。
验证状态
- 聚合/渲染/存储为纯函数,6 个 node --test 全绿。
tools/pre-execute/tools/post-execute与 price-aware 已验证的调用键控(rootCallId/callId)一致。- 结果体大小的提取依赖下游结果形状(content 为字符串时精确,其他形状序列化估计);未在运行中的 dsh 里 live mount 验证本插件自身。
Links
More in this category
yjh051108/dsh-routing-suite★ 7028
One repository, three parts: a runtime injector for DSH plugin packages (inject, hot-reload, unload, promote a dev staging tool to the front, route self-heal, plus a settings-page plugin manager that lists, unloads and drags folders in to internalize), a task-aware reasoning-mode router agent preset (router-standard / router-spec / router-react), and a graded two-level task protocol whose six tools (commit_star, lock_stage, revise_do, edit_plan, mark_task, redteam_verdict) pin task state to disk. The injector implementation ships in-tree, so the install carries its own behaviour rather than a dependency list.
strukto-ai/mirage#dsh★ 3954
Swaps the filesystem and bash providers for a mirage virtual workspace: file tools and shell commands run over mounted resources (RAM, S3, Redis, Slack, Gmail, Notion, Postgres) instead of the host disk, with per-mount read/write/exec modes, per-command sandbox routing (monty, pyodide, quickjs in process; docker, e2b, daytona remote), and installed CLIs (git, gh, slack, linear, ntn, gws, or one you register) as head words in the virtual terminal.
first-fluke/oh-my-agent#dsh★ 1496
Runs project OMA checks before and after tool execution and when a turn tries to finish. Installs its OMA CLI dependency and initializes unconfigured projects on first use. Requires Node.js 22+; initial setup needs network access and project write access.
MichengAI/dsh-skills-manager★ 641
Manages local DeepSeek Harness skills in Settings and shows shared Agent skills as read-only.
hust-open-atom-club/oh-dsh★ 326
Community distribution: TUI, desktop, and Web UI as one bundle with layered installation.
Fishquito7/dsh-skill-mcp-panel★ 292
Manages DSH skills and MCP servers from the web settings: skill cards with hot enable/disable, workspace scopes, groups, batch migration and drag-and-drop import, plus stdio/HTTP MCP CRUD with connection tests, secret redaction and the unified dsh-panel CLI.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.