DeepSeek Harness Workbench Plugin

Introduction

The DeepSeek Harness (DSH) desktop client provides features including a task list, change review, checkpoints, session organization, usage statistics, page publishing, model settings, and session titles. Each feature is displayed as an independent entry on the Plugins page and can be enabled or disabled individually; disabling one restores the original DSH interface for that area.

Requirements

  • DeepSeek Harness desktop: >=0.2.2-rc.2 <0.3.0-0 (see engines.dsh in package.json; versions outside this range will not load); verified on App 0.2.2-rc.5.
  • macOS only at this time; Windows is not yet supported.
  • Building from source requires Node.js >=22.19.0 and npm. Installing a pre-built tgz does not require a build step.

Installation

This plugin is not yet published on npm. Download the tgz from GitHub Releases, save it to your local machine, then go to the Plugins page in DSH, select Add Plugin, and enter the absolute path to the file, e.g. /absolute/path/miint-sunny-dsh-workbench-0.2.0.tgz.

Alternatively, after fully quitting DSH, use the bundled dsh CLI to install into a specific profile; the example below uses desktop:

dsh plugin --profile desktop add /absolute/path/miint-sunny-dsh-workbench-0.2.0.tgz

Once published on npm, enter @miint-sunny/dsh-workbench in the same entry point, or run:

dsh plugin --profile desktop add @miint-sunny/dsh-workbench

After opening DSH, verify on the Plugins page that the workbench row has loaded. Each feature can be toggled individually; the Workbench (dsh-workbench) root row is responsible for loading the feature UIs — disabling it hides all workbench interfaces. If an optional feature is missing dependencies, the relevant row or preset description will indicate the reason.

Features

Conversation & Navigation

  • Task List & Wrap-Up Box: Displays task progress. The model provides a summary and options requiring confirmation via wrap_up; clicking an option sends the corresponding message. The first option is the recommended one — when the input box is empty, press ⌘↵ (Ctrl+Enter on Windows/Linux) to select it. Closing the box only dismisses the question and options without sending a message. Sub-agents do not provide wrap_up; their last reply is delivered as the result to the parent session.
  • New Session Card: When the model determines that something is better handled in a separate session, it displays a card at the end of the current turn via propose_session, containing a title, instructions for the new session, and options for workspace, work tree, agent preset, model, reasoning level, and permissions. By default, clicking Start creates the new session; if you explicitly request a new session this turn and the options do not exceed the current session (same workspace, permissions not higher than the current session), it is created immediately. If full permissions are needed but the current session doesn’t have them, clicking Start or pressing ⌘↵ prompts for confirmation first. Handle in This Session sends a message on your behalf; closing the card merely logs it without further prompting. When something you describe this turn is suitable for a standalone task, the model can also pass ask: true (filling only title and brief), displaying a “Start a new session?” card at the end of the turn; the turn then ends and the input box remains available. Only one such card per turn, with no options and no close button: New Session (⌘↵) creates one using the current session’s settings without a work tree and without changing the remembered last model; if the workspace, options, or permissions cannot be carried over, it won’t create one and the card will state the reason. Handle in This Session (press Esc when focus is not in the input box) sends a message on your behalf. The Don’t Ask Again menu offers Always New Session, Always Handle in This Session, and Settings; after saving an “Always…” preference, subsequent proposals follow the new setting. If Always New Session cannot carry over the current settings, the card is still shown. If saving the preference fails, this instance still follows your chosen action, and subsequent proposals continue using the original settings. To revert to asking every time, change When the model proposes a new session to Ask on the New Session Card row in the Plugins page. A maximum of three cards per turn (including ask: true); the same matter is not proposed repeatedly; sessions opened from a card cannot propose further. When a new session stops (completed, awaiting response, error), it reports once to the current session. DSH’s sidebar does not support session hierarchy; new sessions are opened in the same workspace and, when manually sorting, appear below the current session.
  • Review: The Review tab in the right sidebar covers unstaged, staged, uncommitted, branch, and per-turn changes. You can act on the entire range, individual files, or a single hunk: stage, unstage, and revert (revert is undoable; untracked files go to the Trash), commit, push to the target indicated in the commit box, create a branch on a detached HEAD, and generate a commit message via a separate request. Line comments can be continued after refreshing the current browser tab and are sent to the model together. Entry points: the change card at the end of each turn, a new right-sidebar tab, the session More Actions menu, and after /review completes. Staging and unstaging are available while a session is active; reverting and undoing require the session to be stopped. If the file and the displayed diff don’t match, the operation is rejected and the file is re-read.
  • Regenerate & Edit-Resend: Forks a new session from before the prompt; the original session is preserved. Unavailable when the prompt contains attachments, references, or mid-turn inserted messages.
  • Reply to Selection & Plan Full View: Select text to reply or reference it; pending plans are displayed directly in the conversation, and sending a reply can request modifications.
  • Checkpoints: Saves workspace state at the start of top-level turns; you can restore files, fork a session, or do both. Restores are undoable.
  • Session Search & Turn Navigation: ⌘F searches displayed text; the turn ruler supports preview, drag-to-jump, and bookmarks. Bookmarks are stored in the current browser only.
  • Side Conversations & Session Organization: Open another session in the right sidebar; organize sessions with color labels and mark as unread; the Needs Your Attention filter aggregates approvals, questions, and pending plans.
  • Command Palette: Search sessions, actions, entry points, and commands; starting with / searches commands only. First remove ⌘K from Search Sessions in Settings → Shortcuts, then assign ⌘K to Command Palette.
  • New Tab & Session Top Bar: Right-sidebar entries can be pinned and reordered; the session top bar moves More Actions to the left side and places routine change-request entry points in that menu, still showing a top-bar prompt when action is needed.
  • Session Title: After a new session sends its first message, the model names it based solely on that message; Rename in the sidebar session menu or /retitle recalculates using the first message and recent conversation, replacing any manually set title. Sessions whose auto-titling failed and whose title is still the placeholder get one more attempt at the end of a subsequent turn. When this row is enabled, it overrides DSH’s built-in first-message title generation (the title service accepts only one provider at a time); disabling this row immediately restores DSH’s built-in title generation without a restart.
  • Browser Viewport Size: The right-sidebar browser toolbar gains a Viewport Size button with options for phone, tablet, desktop, or custom size (240 to 3840 pixels), plus an orientation swap. The page lays out at that size, then scales into the card; the size and scale ratio are shown below the toolbar. Each card remembers its setting independently; newly opened cards default to auto. Only the page layout dimensions change — no touch simulation, device pixel ratio, or browser user-agent spoofing.

Usage & Context

  • Usage Dashboard: Tracks tokens, model requests, and estimated costs from session logs, with time range, trends, and per-item breakdowns. Data is loaded on open or refresh; no background polling.
  • Balance & Quota: Queries DeepSeek, OpenCode Go, and GLM Coding Plan for configured credentials. Credentials are used only in the host process.
  • Context: Inspect tools, skills, memory, and tool results in requests, as well as recent requests and compaction records; viewing pages does not invoke the model.
  • Idle Compaction: Set compaction thresholds for active or idle periods per session; off by default. Only applies to presets on the configured list.

Code & Pages

  • Web Publishing & Design Canvas: publish_page saves HTML and its local assets as a versioned page; the design canvas provides desktop and phone artboards, element comments, CSS variable preview, and HTML export.
  • Local Review: /review uncommitted or /review --base <local-branch> launches an independent read-only review; findings appear below the diff lines in Review. Untracked files must be explicitly included; sensitive files, symlinks, binaries, and oversized files are excluded.
  • Commit & PR Commands: /commit, /push, /pr, /fix-ci send the corresponding task to the model; normal permission approvals still apply.
  • Work Tree Management: Create, enter, and clean up Git work trees from the session menu. Cleanup moves to the Trash and preserves the branch; cleanup is refused if there are unpublished commits or the tree is still in use by a session.
  • Project Memory: memory_view and memory_write persist facts for the same project; Git work trees share memory. Sub-agents do not have these two tools.

Settings & System

  • MCP Visibility: Hide servers and tools per session or project, and view call counts since the last startup; does not modify server configuration.
  • Allow Rules: Save confirmed rules for simple bash commands (project, directory, executable, and arguments); pipes, redirects, and expansions are not covered. DSH’s automatic review still runs.
  • Workspace Trust: Control whether supported HTML previews can load local workspace resources; static preview is the default. Trust records can be revoked in settings.
  • System Notifications & Wake Lock: Send notifications when background sessions complete or await action; keep the Mac awake during work, enabled by default only on power.
  • Switch Agent Preset. After a session has started, switch between Standard, Code, and Full mode via the Agent Preset tab in the session top bar. A confirmation is shown before switching: tool additions/removals, system prompt changes, and the estimated number of uncached tokens for the next request; you can run /compact first. Only root sessions that are idle and have no pending questions, approvals, plan reviews, or queued input can switch. The next request uses the new preset immediately, and so do restarts, replays, and forks going forward. Blank sessions still use the top-bar official selector.
  • Tools On Demand: Code mode loads common tools first; the rest are retrieved by the model on demand. Individual add-on packages disable this row by default.
  • Settings Page Icons: Adds icons to the settings pages for dsh-bili-whale and dsh-plugin-subscriptions, replacing the default gear; if those plugins provide their own icons, those are used.
  • Workspace Folders & Permissions: Right-click a workspace in the sidebar to open Workspace Settings…, where you can rename, add sub-folders, and external folders. Sub-folders become independent workspaces whose sessions cannot write to the main folder by default (can be set writable); external folders are writable under the Modify in Workspace permission, same as the main folder. Replace Folder… on the main folder row migrates the workspace to a new folder or merges into an existing workspace there: sessions, forked sessions, sub-agent sessions, and workbench checkpoints, project memory, and workspace trust settings all migrate. Migration requires quitting DSH and auto-reopens after completion; a backup is made before migration and can be undone from the post-reopen prompt or workspace settings.
  • Model Settings: Replaces the Settings → Models page. Opens as a two-column layout: categories on the left, providers on the right; added providers open a detail page, unadded ones open a fill-in page. The detail page allows replacing and clearing API keys, organizing the model catalog, and checking connectivity; Fetch Available Models makes a single request to the provider on click. Providers like OpenCode and OpenRouter that mix several API protocols can also add models outside the catalog, stored as auxiliary entries by protocol. Providers, models, and API keys are still stored in DSH’s settings and credentials; disabling this row restores DSH’s built-in models page. The separate OpenCode Session ID row adds the session ID header for out-of-catalog OpenCode models and can remain active even if Model Settings is disabled.
  • Protect DSH Data & Workspaces: When the agent attempts to write, move, or delete $DSH_HOME/storages and $DSH_HOME/sessions in any session or sub-agent, or move, rename, or delete the root folder of a registered workspace, a manual approval is triggered first (with an explanation of the correct approach); recognizable read-only commands are allowed. Commands that are too long, too deeply nested, or whose write target cannot be confirmed also trigger a prompt. Allow rules do not auto-approve, and automatic review cannot override.

Migrating from Standalone Plugins

Model Settings and Session Title were originally two standalone plugins (@miint-sunny/dsh-model-settings, @miint-sunny/dsh-session-title-headtail), now merged into Workbench 0.2.0 and no longer published separately. If you have them installed, first uninstall them from the Plugins page, then install or upgrade the workbench, and restart DSH.

  • When both are installed, the Model Settings, OpenCode Session ID, and Session Title rows in the workbench will not load; the Plugins page will indicate which old plugin is conflicting. The old plugins continue to work normally, and the rest of the workbench rows are unaffected. Uninstall the old plugins and restart for these rows to load.
  • Providers, models, API keys, and default model are stored in DSH’s settings and credentials; session titles are stored in session logs. Switching will not lose any data.
  • Settings written to the profile using the old row IDs (model-settings, model-settings-opencode-session, session-title-headtail) will not carry over; the new row IDs are dsh-workbench-model-settings, dsh-workbench-opencode-session, dsh-workbench-session-title.

Full Package vs. Add-On Packages

The full package and the seven add-on packages use the same feature row IDs and cannot be installed simultaneously. If a conflict occurs, the relevant feature rows will not load, and the Plugins page and startup log will list the conflict; remove the conflicting package and reload the profile. The seven add-on packages can be combined freely.

Add-On Package Included Features
@miint-sunny/dsh-workbench-usage Usage Dashboard, Balance & Quota, Context, Idle Compaction
@miint-sunny/dsh-workbench-checkpoints Checkpoints, Regenerate & Edit-Resend, Work Tree Management
@miint-sunny/dsh-workbench-review Review (Change Review and Local Review), Plan Full View, Reply to Selection, Commit & PR Commands
@miint-sunny/dsh-workbench-navigation Session Organization, Session Search, Needs Your Attention Filter, Command Palette, New Tab, Turn Navigation, Session Top Bar, Browser Viewport Size, Session Title
@miint-sunny/dsh-workbench-pages Web Publishing, Design Canvas
@miint-sunny/dsh-workbench-settings MCP Visibility, Allow Rules, Workspace Trust, Settings Page Icons, Workspace Folders & Permissions, Protect DSH Data & Workspaces, Model Settings, OpenCode Session ID
@miint-sunny/dsh-workbench-essentials Task List & Wrap-Up Box, System Notifications, Wake Lock, Project Memory, Side Conversations, Tools On Demand, New Session Card

Installation, updating, and uninstallation of add-on packages follow the same process — just use the corresponding package name. Code Mode and Full Mode are provided only by the full package.

Updating & Uninstalling

After installing via an npm package name, check for and install updates on the Plugins page. Local tgz installations do not have a version-update button: uninstall the workbench first, then install the new tgz via Add Plugin using its absolute path.

To uninstall, remove the workbench from the Plugins page. Alternatively, fully quit DSH and run dsh plugin --profile desktop remove @miint-sunny/dsh-workbench. Before changing the installation source or version, back up your profile and workbench data; uninstalling the plugin does not delete existing pages, checkpoints, memory, or settings.

Settings

Adjust settings in the Configure panel on the corresponding row in the Plugins page; some features also have dedicated settings pages. The table below lists the main defaults. $DSH_HOME refers to the DSH data directory.

Feature Default or Config Location
Change Review Revert backups retained for keepDays: 30 days
Checkpoints Retained 14 days; 2048 MB per session; 2 MB cap for non-Git files; up to 5 s wait before first tool execution
Regenerate Archive original session after fork: off by default
System Notifications Four event types on by default; foreground notifications and showing first sentence of reply off by default; presets can be excluded
Wake Lock graceMs: 60000; alsoOnBattery: false
Project Memory maxBytes: 16384
Usage & Quota $DSH_HOME/dsh-workbench/usage.json and quota.json; quota cache 300 s, query timeout 10 s
Idle Compaction Off by default; per-session setting, defaults and prompt in Settings → Compaction
Local Review Uses the main session’s model by default; can be specified via row config model
Commit & PR Commands locale: zh, can be changed to en
Code Mode & Full Mode Names follow UI language, can be fixed via locale; LSP and MCP are both optional
Workspace Folders & Permissions $DSH_HOME/dsh-workbench/workspace-folders.json, records “writable” status for external and sub-folders per workspace; migration records and backups in $DSH_HOME/dsh-workbench/workspace-moves/; row config moveUndoDays sets how many days after migration the undo is available (default 30)
Model Settings No own storage: providers, models, and default model in DSH settings; API keys in DSH credentials; Check Connectivity outputs at most 16 tokens per call, 20 s timeout
Session Title tailMessages: 6, refreshEveryPrompts: 0 (no auto-recalc at turn end); see Preset Configuration “Session Title” for the rest
New Session Card Default ownSession: "ask" (options: ask, always-new, always-here), stored in $DSH_HOME/dsh-workbench/session-cards-prefs.json, read/written via GET/POST /api/dsh-workbench.session-cards.prefs; state stored in $DSH_HOME/dsh-workbench/session-cards.json

The full package’s dsh-workbench-preset-switch row can configure presets (a subset of the three modes above, displayed in config order) and compactFirstAboveTokens (default 65536). When the threshold is reached, “compact first” is checked by default. The estimate depends on the current model, context, and tool definitions; items that cannot be determined are marked as unknown in the preview.

See Preset Configuration for LSP paths, MCP JSON format, and configuration examples.

Known Limitations

  • Switching presets in an already-started session uses DSH’s recompose API, which the official docs note is intended for blank sessions only (the official selector rejects it for started sessions). Future DSH versions may tighten this API; in that case, switching will return “preset unavailable” and the session will retain its original preset.
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye