DeepSeek Harness Plugin

JoblessJoe/deep-toolbox

Stars ★ 0 Downloads (30d) 280 Category Usage & Billing Added 2026-11-27 npm deep-toolbox

Tool usage and startup cost: a Plugins-page tab showing which tools your agents call, which ones fail, and how many tokens each tool definition (built-in, plugin or MCP server) adds to every request, with a startup-context chart and plain-language tips on what to drop; a read-only toolbox_report agent tool gives agents the same numbers. Reads dsh session logs locally, no hooks.

Install

# from npm (prebuilt)

dsh plugin --profile web add deep-toolbox

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:JoblessJoe/deep-toolbox

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

A DeepSeek Harness (dsh) plugin that shows which tools your agents actually use, which ones fail, and what each one costs you in every request. Every tool you install (built-in, plugin or MCP server) sends its full definition with every model request. A 37-tool MCP server can add thousands of tokens to each prompt, even if no agent ever calls it. deep-toolbox finds that dead weight so you can drop it.

npx @deepseek-ai/dsh plugin --profile web add deep-toolbox

Then restart your dsh web server and reload the tab. A Tool usage & startup cost tab appears on the Plugins page. Full details under Install.

What you see

  • A new chat starts with: the tokens every new chat carries before you type, and how much of that is tool definitions.
  • Paid for, never used: tools whose definitions go out with every request, but no agent called them in the chosen range.
  • Failed calls: the error rate, with the latest error messages per tool.
  • What stands out: plain-language tips, like "math adds 4.6K tok to every new chat but was not used in the last 30 days".
  • Startup context: a chart of the built-in tools, each MCP server and plugin, each AGENTS.md, the system prompt and the skill list.
  • Tool sources: one row per source, tagged used a lot, rarely used or never used. Open one for calls (main agent and subagents), errors, average time, result size, tokens per chat and last use of each tool.
  • Ranges: last 7, 30 or 90 days. Show removed adds tools you used before but no longer have installed.

For agents

Every agent gets a read-only toolbox_report tool with the same numbers as short text. An agent can notice "this MCP server costs 4.6K tok per chat and was never used" and offer to turn it off with dsh's built-in plugin_manager, which asks you first.

How it works

No hooks, no database, no tracking code in the agent loop. dsh already records every tool call, result and request in its session logs (~/.dsh/sessions/**/session.v*.jsonl.zstd). deep-toolbox reads those logs when you open the tab and adds them up. Parsed files are cached until they change. Nothing leaves your machine.

  • Host: one JSON route, /api/deep-toolbox/stats, plus the toolbox_report agent tool. It also notes which plugin registers which tool, so plugin tools don't count as built-in.
  • Client: one self-contained bundle on dsh's own design tokens, so it looks native in both themes.

Token numbers are estimates (characters ÷ 4). "Sent" is the raw volume before prompt caching.

Install

Into your dsh web profile (web below is the profile name; use whichever profile backs your web GUI). From a source checkout, use pnpm dsh instead of npx @deepseek-ai/dsh:

npx @deepseek-ai/dsh plugin --profile web add deep-toolbox

Restart the dsh web server afterwards, then reload the browser tab.

Other sources:

# straight from GitHub
npx @deepseek-ai/dsh plugin --profile web add github:JoblessJoe/deep-toolbox
# from a local checkout
npx @deepseek-ai/dsh plugin --profile web add file:/path/to/deep-toolbox

The agent tool also works in headless and TUI profiles. The tab needs the web GUI.

Requirements: dsh 0.2.2 or newer (engines.dsh: >=0.2.2-rc.1 <0.4.0), Node 22.15+ (built-in zstd).

CLI

The same report in a terminal, or for an agent through bash:

npx deep-toolbox                       # last 30 days
npx deep-toolbox 7                     # last 7 days
npx deep-toolbox --errors web_fetch    # latest errors of one tool
npx deep-toolbox --json
npx deep-toolbox --agent               # the toolbox_report text

Set DSH_HOME (or DSH_SESSIONS) if your sessions are not under ~/.dsh.

Develop

npm install
npm run build   # lib/index.js (host) + lib/client.js (web) + lib/cli.js
npm test

License

MIT

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.