DeepSeek Harness Plugin

rebornace/dsh-agent-enhancer

Stars ★ 1 Downloads (30d) 1,668 Category UI Enhancements Added 2026-11-03 npm dsh-agent-enhancer

Agent enhancements for DeepSeek Harness Desktop: prompt history, one-click optimize with undo, next-prompt prediction, conversation and tracked-file restore, model bill, context details with compact, Auto routing, and per-provider DeepSeek balance.

Install

# from npm (prebuilt)

dsh plugin --profile web add dsh-agent-enhancer

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

dsh plugin --profile web add github:rebornace/dsh-agent-enhancer

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

English | 简体中文

Make DeepSeek Harness Desktop easier to write, refine, roll back, and see usage & context.
Features live inside the official chat and settings. Defaults on; turn off individually under Settings → Built-in plugins → Agent Enhance.


Features

Previews are 56×56 squares — click for the full image. UI language follows Desktop (zh / en).

Capability How Preview
Write ↑↓ / Alt+R history; Optimize (undo); after a reply, Tab for gray predict; select in chat / preview / editor / terminal → Quote text
Soft pause Pause / Resume on the latest user bubble toolbar (‖ in a circle): hold the next model step to save later tokens; the current stream and in-flight tools still finish. Official Stop remains a hard interrupt
Run alerts Finish / approval / error alerts; default when unfocused (dual-monitor or another app), or background-only / always; OS notification while away, Toast after focus if needed
Restore Bubble or timeline Restore to here (optional tracked text files) → preview → confirm; + / / Undo restore
Workspace Preview Edit (Monaco); guide capsule Extra folders; left-nav Skills / Connectors (Plugins-page chrome: list · Add dialog · detail; Skills GitHub·Zip → ~/.agents/skills → /; Connectors via mcp.json); session ⋯ Delete session
Usage Token usage → model bill; Settings → Models for per-provider balance
Context Meter → right-pane details; one-click official /compact
Routing Pick Auto in the model list; map Instant / Thinking / Pro in settings
Settings Features thirteen toggles · Models & routing helpers / Auto · About updates

Limits (short): Quote never calls a model; streaming assistant replies and HTML/PDF/Excel previews are not quote sources yet. Restore tracks UTF-8 text only — no processes / terminals / untracked / binaries. Extra folders do not widen the Agent sandbox. Skills and Connectors are left-nav peers under Plugins (Plugins-page chrome): Skills use GitHub·Zip install / search / detail / uninstall (default ~/.agents/skills; GitHub can update, Zip cannot; no AGENTS.md or empty stubs; invoke via /); Connectors add via mcp.json, toggle in the list, tools on the detail page. Session delete is permanent. Context numbers are heuristic; bill “≈ ¥” is not an invoice. Soft pause holds later model steps after pause; the gate is not kept across restarts. Run alerts post to the Windows Action Center via the Host (under DeepSeek Harness / DSH Desktop); otherwise a Toast appears after focus returns. Level is adjustable on Features; they do not replace sidebar status dots.

Feature toggles: history · optimize · predict · quote · rollback · softPause · runAlerts · contextInspect · usage · sessionDelete · fileEdit · instructionsSkills · mcpConnectors (all default on; Extra folders follows fileEdit).


Install

Targets Desktop / the desktop profile (do not validate with web). Quit Desktop (including tray) first.

Method Steps
In-app (recommended) Settings → Plugins → search dsh-agent-enhancer / Agent Enhance → install → restart
CLI dsh plugin --profile desktop add dsh-agent-enhancer@0.3.8
Dev corepack pnpm install --frozen-lockfile → corepack pnpm desktop:link → restart; back to npm: corepack pnpm desktop:npm

Optional market: dsh-market (in-app search dshmarket; do not use the web profile). Remove legacy dsh-composer-enhancer before installing this package.

Do not install into Desktop with dsh plugin --profile web …. Do not add / link: / file: a repo path (Windows Junctions expose node_modules and leave the plugin off). Use desktop:link (pack snapshot; re-link after code changes).

Uninstall: in-app remove, or dsh plugin --profile desktop remove dsh-agent-enhancer. For a linked dev install, do not remove blindly — edit the profile package.json, then delete only the node_modules link.

Compatibility: DSH >=0.2.2-rc.1 <0.3.0-0.


Privacy

  • History / select-to-quote: no model calls. Optimize / predict: only the needed draft or latest completed turn.
  • Bill and context stay local; balances use Desktop-stored credentials — this plugin ships no keys. No telemetry upload.
  • Overlap with third-party plugins is hinted only; never auto-disabled.

Development

corepack pnpm install --frozen-lockfile
corepack pnpm check   # typecheck + test + build + pack verify

src/host/ · src/client/ · tests/ · lib/ build output · docs/images/ screenshots (thumbs/ via scripts/make-readme-thumbs.py).


License

MIT · CHANGELOG

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.