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.

Workspace Create Dialog — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
W

dsh-workspace-create-dialog

Workspace Create Dialog

DSH Create Workspace dialog: enter a name at the top and choose a folder below. If you only enter a name, a folder with the same name is created under “New Location”; choosing a folder opens a custom native IFileDialog that remembers the last directory. · A Codex-style Create Workspace dialog for De

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

npx -y @deepseek-ai/dsh plugin --profile web add github:LanFeng97/dsh-workspace-create-dialog#7c4d0ef91a0ad9d49efa71ec5a637a53e6d87b2f
READMECompatibilityVersions

Description

DSH Create Workspace dialog: enter a name at the top and choose a folder below. If you only enter a name, a folder with the same name is created under “New Location”; choosing a folder opens a custom native IFileDialog that remembers the last directory. · A Codex-style Create Workspace dialog for DeepSeek Harness: name it and go, or pick a folder with a chooser that remembers where you were.

Compatibility and provenance

Workspace Create Dialog is published as dsh-workspace-create-dialog and currently resolves to version 0.1.3. 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/13/2026

Versions

0.1.3stable
10/13/2026
0.1.2stable
10/12/2026
0.1.1stable
10/12/2026

Related plugins

Loading related plugins…

Latest
0.1.3
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
web
License
MIT
Source
github
GitHub
★ 1
Weekly downloads
0
Last push
10/13/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-workspace-create-dialog

English | 中文

A Create Workspace dialog for DeepSeek Harness: type a name and go, or pick a folder with a chooser that finally remembers where you were.

The Create Workspace dialog: a name field, a workspace folder row with a Choose folder button, and a New workspace location row with a Change button

What it does

Clicking Add workspace… in DSH today opens the OS folder dialog immediately. This plugin replaces that with a small dialog that asks two independent questions: what is the workspace called, and where does it live. Answer the first only and it creates the folder for you; answer the second and the folder you picked is the workspace.

You doYou get
Type a name, press CreateA new folder with that name is created under New workspace location, registered as a workspace, and a session opens in it
Click Choose folder…The native Windows folder dialog, starting where you left off, not at some default
Choose a folder, leave the name emptyThe name fills itself in from the folder's own name
Choose a folder, having typed a nameYour name wins — the workspace is registered, then renamed to it
Click Change… on New workspace locationPick where name-only workspaces go from now on; the choice is saved and survives restarts
Cancel / Esc / click the backdropNothing happens — no folder, no registration

The effect, before and after

BeforeAfter
Creating my-projectCreate the folder in Explorer first, then hunt for it in the pickerType my-project. Done
The folder picker's starting pointThe OS default, every single timeThe directory you last chose
Where new workspaces landWherever you navigate toA location you set once, visible in the dialog, changeable any time
Naming a workspace after its folderRetype the folder nameAuto-filled

Install

From the DSH UI (simplest)

Sidebar → Plugins → Add plugin, paste this address, click Install, then Enable now:

https://github.com/LanFeng97/dsh-workspace-create-dialog

That box takes a package name, a Git address, a tarball or a local absolute path. A repository URL works because this package ships a dsh.bundle patch — DSH checks exactly that before it installs. Restart DeepSeek Harness if the plugin does not come up.

Two things worth knowing: it downloads straight from GitHub, so GitHub has to be reachable (the China-mirror option only covers registry packages, not repository downloads); and DSH does not auto-update third-party plugins yet — upgrading means uninstall + install again.

Already installed with tools/install.mjs below? Run node tools/install.mjs --uninstall first, so the profile does not end up with two loader rows for the same id.

One-line prompt for your agent

If you would rather not click through it:

Install the DSH plugin at https://github.com/LanFeng97/dsh-workspace-create-dialog into my DSH and tell me when to restart.

From the plugin market (once listed)

Search for dsh-workspace-create-dialog in dshmarket and install it in one click. The listing is pending a PR to awesome-dsh-plugin (their CI requires the repository to be at least one day old); until it lands, use the routes above and below.

Manual install from this repository

git clone https://github.com/LanFeng97/dsh-workspace-create-dialog
cd dsh-workspace-create-dialog
node tools/install.mjs

That copies the package into your DSH profile's node_modules and appends one loader line to the profile's cordis.patch.yml. It resolves your DSH home the same way the harness does — explicit config, then $DSH_HOME, then ~/.dsh.

Then restart DeepSeek Harness (the host half is a Node module, so a config reload alone will not import it). After that, changing lib/client.js only needs a page refresh; changing lib/index.js still needs a restart.

node tools/install.mjs --dry-run prints what it would do without writing anything; --uninstall removes the package and its loader row again.

Publishing to npm is not required: the market installs from GitHub exactly the same way, and listing is unaffected either way.

How it works

It uses the official extension point, not a patch

@deepseek-ai/dsh-client-ui-workspace declares a single slot where the "pick a directory" step is handed to whichever plugin fills it:

sidebar.workspaces.directoryFlow              ← the sidebar's "Add workspace…"
conversation.hero.workspace.directoryFlow     ← the empty-state entry

The owner hands the occupant the whole interaction contract:

interface DirectoryFlowOwnerProps {
  open: boolean                     // a pick is requested
  busy: boolean                     // the owner is adopting the picked path
  onPicked: (path: string) => void  // report the directory; the owner registers it and opens a session
  onCancel: () => void
  onError: (message: string) => void
}

This plugin registers its own occupant into both slots at priority -100. A single slot renders the lowest-priority entry, the shipped native driver sits at 0, so this dialog wins (two entries at the same priority throw, which is the official protection against ambiguity). Removing the loader line from your profile patch restores the stock behaviour exactly.

Why the folder dialog is built here instead of reused

The desktop app opens its folder dialog from the Electron main process without a starting directory:

// D:\App\DSH\resources\app.asar → lib/main.js
dialog.showOpenDialog(window, { properties: ['openDirectory', 'createDirectory'] })

There is no defaultPath, which is exactly why the chooser always starts in the same place. A plugin cannot reach that call: the DSH host is a child process of Electron. So lib/pick-folder.js opens its own IFileDialog — a small C# COM interop compiled and run by the Windows PowerShell 5.1 that ships with Windows:

  • no dependencies: no koffi, no PowerShell 7, no native module to publish;
  • compilation happens in memory (~120 ms per call), so there is no DLL cache to corrupt or lock;
  • the one line that matters is IFileDialog::SetFolder — the remembered directory as the starting point;
  • the dialog runs in a child process, so a native fault cannot take the host down.

The C# method declaration order must match the COM vtable (Show=3, SetOptions=9, SetFolder=12, SetTitle=17, GetResult=20). Getting it wrong does not error — it just silently does the wrong thing — so a self-test asserts the order.

Where name-only workspaces are created

The New workspace location is resolved in this order (lib/base-dir.js, a pure function):

  1. What you set in the dialog — highest priority; once you change it, it is yours;
  2. config.baseDir from your profile patch — the value used at install time;
  3. The root of your default workspace — the parent of the workspace whose directory is named default-workspace (a name the harness fixes, independent of UI language). New workspaces land next to it. This is the default for a fresh install;
  4. Fallback — <Documents>/deepseek-harness, or <home>/deepseek-harness when there is no Documents folder.

The resolved value is written to the state file, so "what it was on first run" is decided once and only you change it afterwards. config.baseDir is a seed, not an order.

HTTP routes

All four are loopback-guarded (loopback socket + loopback Host + same-origin marker; x-forwarded-for is never trusted) — they create directories and open windows on the host machine, so nothing off-machine may reach them.

RouteMethodPurpose
/api/dsh-workspace-create/configGETCurrent location + last directory
/api/dsh-workspace-create/base-dirPOST{"path":"…"} → validate absolute, create, persist
/api/dsh-workspace-create/create-folderPOST{"name":"…"} → create the folder, return its absolute path
/api/dsh-workspace-create/pick-folderPOST{"title":"…"} → open the native chooser, return the path (null on cancel)

The dialog title is supplied by the browser half in the current UI language (<html lang>, maintained by the official client-locale service); the host only sanitizes and truncates it.

Configuration

Optional, in your profile's cordis.patch.yml:

- insert:
    - id: ui-workspace-create-dialog
      name: 'dsh-workspace-create-dialog'
      config:
        baseDir: 'D:\Work\Workspaces'                 # seed for New workspace location
        stateFile: '<writable path>/state.json'       # defaults to $DSH_HOME/storages/dsh-workspace-create-dialog/state.json

The state file holds two fields: baseDir (the location) and lastDir (where the chooser last was).

Development

node tools/selftest.mjs           # 40 checks, no DSH runtime needed
node tools/pick-probe.mjs         # native picker: compiles the C#, exercises the COM chain, no window
node tools/pick-probe.mjs --real  # same, but actually opens the dialog so you can look at it
node tools/install.mjs --dry-run  # what the installer would do

tools/selftest.mjs covers name validation rules, the location precedence order, the COM vtable order, the slot registration (it runs apply against a fake client context and asserts priority and both slots), the route behaviour (a real mkdir round trip, guard rejections), and the dialog's behaviour itself — it renders the component through a minimal React hook harness and drives it: name-only creation, auto-fill from a picked folder, "your name wins", cancel, and the location change.

FileRole
lib/index.jsHost half: location resolution, folder creation, native chooser, routes
lib/base-dir.jsLocation precedence + absolute-path validation (pure)
lib/name.jsWorkspace-name validation and path joining (pure)
lib/state.jsAtomic state persistence with corrupt-file fallback
lib/guard.jsLoopback trust fence for the routes
lib/pick-folder.jsThe native picker: embedded C#, PowerShell script, child process
lib/client.jsBrowser half: the dialog, registered into both flow slots

Known limitations

  • The native chooser is Windows-only. On other platforms "Choose folder…" reports the failure; the name-only path is platform-independent and keeps working.
  • It runs powershell.exe with a runtime Add-Type. That pair (-EncodedCommand + Add-Type) is exactly what endpoint protection watches for, so a small number of machines may block it. The alternative is shipping a native dependency (koffi); this plugin chose zero dependencies.
  • An open native chooser cannot be cancelled from the browser. There is no per-request abort on this wire; closing the window is the cancel.
  • "Your name wins" needs the client workspace service. When the name differs from the folder name the plugin registers first and renames after; if the rename fails the workspace still exists, just titled after its folder (with a console warning).
  • It depends on the 0.2.0-rc.2 directoryFlow contract. If a future harness renames or changes it, the plugin goes silently inert — ctx.slots.inject waits for a declaration that never comes, and nothing errors. dsh.engines.dsh states the version requirement; it cannot remove the risk.

License

MIT © 2026 LanFeng97