DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
P

@local/dsh-performance-optimizer

Performance Optimizer

DSH bundle that exposes host-wide and per-event-loop performance metrics (CPU / memory / IO / chat DOM) via a Settings tab, an optional HUD, an in-process MCP server, and a native agent tool.

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:Weidows/dsh-performance-optimizer#ca7c2cbbac6fb96f75fb55d7a7abece1be9da9f8
READMECompatibilityVersions

Compatibility and provenance

Performance Optimizer is published as @local/dsh-performance-optimizer and currently resolves to version 0.1.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
github
Registry updated
10/20/2026

Versions

0.1.0stable
10/20/2026

Related plugins

Loading related plugins…

Latest
0.1.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
web
License
Not declared
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
11/2/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in developer-tools.

Web App@deepseek-ai/dsh-web-appThe dsh browser-surface bundle: the web patch layer over dsh-base plus the runtime glue plugin (frontend dist serving, web-surface prompt, bash runtime variables, URL line)Sdk App@deepseek-ai/dsh-sdk-appThe dsh SDK profile bundle: stdio JSON-RPC serving and process lifecycle over dsh-baseExperimental Inspector@deepseek-ai/dsh-experimental-inspectorExperimental cross-realm CDP hub for Host debugging and Client Runtime inspectionExperimental Inspector Profile@deepseek-ai/dsh-experimental-inspector-profileOptional Web bundle for raw Session logs and Chat node inspection

README

dsh-performance-optimizer

DSH bundle that exposes host-wide and per-event-loop performance metrics so the user (via a Settings tab) and the agent (via a native tool and a stdio MCP server) can reason about scroll lag, memory drift, and tool loops.

The bundle is intentionally minimal — it samples Node process.memoryUsage() / process.cpuUsage() once per second, keeps a 60-sample rolling buffer, and exposes it through three surfaces:

surfaceconsumermechanism
Settings → Plugins tabuserclient.js mounts <perf-settings-tab> into the per-plugin detail page; live table + Canvas2D chart with CPU / RSS / Heap / Wall tabs.
Floating HUDuser (opt-in)client.js mounts <perf-hud> into the document body when hudVisible: true.
Native toolagent (in-session)ctx.tools.register('performance_report') returns a fresh JSON report on demand.

Files

filerole
index.jsHost half. Owns the sampler, the performanceOptimizer Cordis service, and the performance_report tool.
client.jsWeb GUI half. Two custom elements (<perf-settings-tab>, <perf-hud>); routes by ctx.slot. Calls back into the Host via the runtime bridge.
cordis.patch.ymlLoader patch: one insert — the bundle itself.
locale/en.jsonEnglish copy.
locale/zh.json简体/中文 copy.
icon.svgBundle icon.

Install

# from a clone
npx @deepseek-ai/dsh plugin --profile web add /absolute/path/to/dsh-performance-optimizer

# from a tarball
npx @deepseek-ai/dsh plugin --profile web add ./dsh-performance-optimizer-0.1.0.tgz

# from npm (once published)
npx @deepseek-ai/dsh plugin --profile web add @local/dsh-performance-optimizer

Restart the Web profile and open http://127.0.0.1:3080/settings/plugins.

npx @deepseek-ai/dsh web

To remove:

npx @deepseek-ai/dsh plugin --profile web remove @local/dsh-performance-optimizer

What it measures

sample fieldsourcewhat it answers
t / tHrDate.now() + process.hrtime.bigint()When was this sample taken (clock / monotonic, never trust the wall for ordering).
rssprocess.memoryUsage().rssHas the Host process grown? Did release/manual GC help?
heapUsedprocess.memoryUsage().heapUsedV8 heap pressure (RSS includes native).
heapTotalprocess.memoryUsage().heapTotalDid V8 grow the heap (hint of churn).
externalprocess.memoryUsage().externalNative buffers / modules.
cpuMsprocess.cpuUsage()Cumulative user/system CPU time (ms).
cpuDeltaMsdelta against previous sampleCPU burn between two ticks; correlates with sampler tick & loop work.
wallDeltaMsnow - lastCpu.takenAtSampler timer drift — catches stalled timers caused by event-loop saturation.
uptimeMsprocess.uptime() * 1000Host uptime.

History is the last historySize samples (default 60). Sampling interval is sampleIntervalMs (default 1000 ms). When MCP is enabled, the most recent report is also written to a JSON file under the bundle's plugin directory every tick so the stdio MCP server can read it without holding a reference into the Host process.

How it talks to DSH

The Host half uses only Cordis accessors declared in inject:

  • tools — registers performance_report. Every MCP tool call routed through DSH eventually surfaces through tools.register, so this is the canonical agent interface regardless of whether @deepseek-ai/dsh-mcp-client is also mounted.
  • pluginContext — composition helper; lets the patch layer attach additional reads.

The Client half is mounted once per dsh.client.inject target. The package.json lists three:

  • @deepseek-ai/dsh-client-ui-settings-plugins — registers the per-plugin detail tab. This is the canonical user surface.
  • @deepseek-ai/dsh-client-shell — registers the HUD.
  • @deepseek-ai/dsh-client-ui-conversation — reserved for a future chip; currently no-op.

It looks up the runtime bridge via window.__DSH_HOST__ / window.__DSH__ / window.deepseek.host (whichever is present) and calls plugin:performance-optimizer.snapshot | .history | .config | .sample | .reset. If the bridge is missing, the tab renders an empty state and the HUD shows — — neither blocks the rest of the UI.

Tool surface (native)

{
  "name": "performance_report",
  "arguments": {},
  "result": {
    "kind": "json",
    "value": {
      "intervalMs": 1000,
      "sampleCount": 42,
      "latest": { "t": "2026-10-20T11:39:42.000Z", "rss": 314572800, "heapUsed": 134217728, "cpuMs": { "user": 1234.5, "system": 67.8 }, "...": "..." },
      "history": [ /* last 10 samples */ ],
      "generatedAt": "2026-10-20T11:39:42.000Z"
    }
  }
}

Agent surface

The bundle exposes one native tool:

performance_report

It returns the same JSON-shaped report shown above. Every MCP tool call routed through DSH ultimately surfaces through ctx.tools.register, so this is the canonical agent interface — there is no separate MCP server in this bundle.

If you want external MCP clients (Claude Code, Codex, an inspector) to also pull snapshots, write a small sibling DSH plugin that mounts an MCP server and reads ctx.performanceOptimizer.buildReport() for each tool call. Keeping MCP server concerns out of this bundle avoids coupling to a specific @modelcontextprotocol/sdk version.

Config

sampleIntervalMs: 1000  # sampling cadence in milliseconds
historySize: 60         # rolling buffer length
hudVisible: false       # boot-time HUD visibility
settingsTab: true       # mount the Settings → Plugins detail tab

All keys are optional; defaults are baked into the bundle.

Failure / uninstall

When the bundle is disabled in the Plugins page, ctx.effect cleanups tear down:

  • the sampler timer on the Host,
  • the performance_report tool registration,
  • the HUD element,
  • the <perf-settings-tab> element.

No side effects on the Host process remain.

License

MIT — see LICENSE.