dsh-default-workspace-plugin
Manifest valid★ 3Start a DeepSeek Harness conversation without selecting a workspace: auto-provisions a default workspace and adds a "Chat without a workspace" option to the workspace picker
dsh-default-workspace
A DeepSeek Harness plugin — start a new conversation without selecting a workspace.
Out of the box, DeepSeek Harness will not let a conversation start until a workspace directory has been selected. On a fresh profile the workspace registry is empty, so the web GUI lands on the workspace-picker hero and there is nothing to pick.
This plugin removes that dead-end in two ways, from one package:
- Node half — at boot it resolves a default workspace directory, creates it if missing, and registers it. The runtime's existing "recent workspace" fallback then connects it, so a brand-new profile opens straight into a conversation.
- Client half — it adds a "Chat without a workspace" (
不在工作区中对话) entry to the new-session workspace picker. Selecting it starts a session with no workspace: its working directory falls back to the host'sprocess.cwd()and the session shows up as Ungrouped in the sidebar.
What it does
| Behaviour | Detail |
|---|---|
| Auto-provision | Creates and registers a default workspace on first boot |
| No-workspace option | Adds a "Chat without a workspace" row to the workspace picker |
| Zero footprint | Auto-provision is a no-op when workspaces already exist (unless always: true) |
| Idempotent | Re-registering the same path reuses the existing record |
| Non-fatal | A failure is logged as a warning and never fails the boot |
| Zero dependencies | Imports only Node built-ins / browser APIs; no build step |
The default directory is <DSH_HOME>/workspaces/default (or ~/.dsh/workspaces/default when DSH_HOME is unset). It can be overridden per-deployment with a config row, or globally with the DSH_DEFAULT_WORKSPACE environment variable.
Install
Recommended — one line from the git source (no build runs on install, since the source is committed directly):
# HTTPS git source. The `github:` shorthand is rewritten to SSH by pnpm and
# fails on machines without SSH keys — use the explicit git+https form.
dsh plugin --profile web add "git+https://github.com/fenxin-fx/dsh-default-workspace.git#main"
Other options:
- From a local checkout:
git clone https://github.com/fenxin-fx/dsh-default-workspace.git cd dsh-default-workspace dsh plugin --profile web add .
First install needs a web restart for the node half to take effect; the client half arrives per-request, so later upgrades only need a browser refresh. The plugin can be enabled/disabled under Settings → Plugins (package id @dsh-external/dsh-default-workspace).
Configuration
Overrides live on the plugin's config row in the profile cordis.patch.yml (the cordis.patch.yml shipped by this package shows the full template). Precedence is config.path → DSH_DEFAULT_WORKSPACE → <DSH_HOME>/workspaces/default.
| Key | Type | Default | Meaning |
|---|---|---|---|
path | string | <DSH_HOME>/workspaces/default | Default workspace directory; ~ expands to the OS home, a relative path resolves against the process cwd |
title | string | Default | Display title for the workspace |
always | boolean | false | true always ensures the workspace, even when others already exist |
- insert:
- id: default-workspace
name: '@dsh-external/dsh-default-workspace'
config:
path: 'C:\my\scratch'
title: 'Scratch'
always: false
Or set the environment variable before launching:
DSH_DEFAULT_WORKSPACE="$HOME/projects/scratch" dsh web
Usage
Install, restart the web profile, and go — no commands, no tools. A brand-new profile opens directly into a conversation in the default workspace, and the workspace picker on a new session offers "Chat without a workspace" to start an ungrouped conversation instead.
Development
There is no build step: both halves ship as plain JavaScript.
src/index.mjs — the node half (ensure + register the default workspace)
src/client/index.js — the client half (the "Chat without a workspace" picker entry)
cordis.patch.yml — the bundle patch that mounts the node half
How it works
- The node half calls
ctx.workspaceRegistry.create(path, title)aftermkdir -p;createis idempotent and prepends only new records. - The client half injects the extra row into the picker menu at the DOM level (the picker exposes no official slot), cloning the "Add workspace" row for native styling and re-injecting via a
MutationObserveron re-render. - The no-workspace session is created with
ctx.sessions.create({})— noworkspaceId, so the host defaults the cwd toprocess.cwd()and skips workspace attachment.
License
Comments
Loading…
From the same category
by nexu-io
🎨 Best DeepSeek Harness Design Plugin. The open-source Claude Design alternative. 🖥️ Local-first desktop app. 🖼️ Your coding agent becomes the design engine: prototypes, landing pages, dashboards,
★ 97.1k
Apache-2.0
TypeScript
Sep 19, 2026
by Molunerfinn
:rocket: The Ultimate Image Uploader for Efficient Creators. Supports Obsidian, Typora, VS Code etc. and 60+ image hosting services (S3, GitHub, Cloudflare R2, Imgur, Aliyun OSS...). Paste, upload, d
★ 27.2k
MIT
TypeScript
Sep 1, 2026
by YaoApp
✨ All your agents and workspaces in one place, on every device you own. Track tasks on a board, accessible from desktop, mobile, browser, or API. Self-hosted.
★ 8k
Go
Sep 16, 2026
by zhu1090093659
DeepSeek Harness (DSH) Web Plugin Aggregation Ecosystem · Everything is a plugin, distributed via the Creative Workshop
★ 7.8k
Apache-2.0
TypeScript
Sep 19, 2026
dsh plugin --profile web add dsh-webby omdsh-dev
开放的侧边栏底座,支持三方拓展注册新侧边栏页面。内置文件渲染编辑/终端/侧边对话/Git/子代理页面 | Open sidebar foundation, supports third-party extensions to register new sidebar pages. Built-in file rendering/editing, terminal, side chat, Git,
★ 3.7k
↓ 92.3k/wk
MIT
TypeScript
Sep 17, 2026
dsh plugin --profile web add dsh-better-sidebarby ccch1mneyyy
DSH 官方公众号收录的 TUI 补位插件:Claude Code 风,鲸鱼顶栏/实时状态/流式思考/双击 Esc 回滚/上下文进度+TPS。npm 一键装。 DSH official WeChat featured TUI plugin — Claude Code style: whale bar, live status, streaming thoughts, double-Esc rol
★ 3.1k
↓ 9.5k/wk
MIT
TypeScript
Sep 19, 2026
dsh plugin --profile web add @deepseek-harness-tui/dsh-tui