dsh-bundle-default-workspace: Provides a unified default workspace for DSH

Introduction

In DeepSeek Harness (DSH), every session must land in some workspace. When working on serious projects, creating a directory per project is natural. But in everyday usage there is a class of tasks—temporarily calculating a number, writing a debug script, looking up material and taking notes, asking one question and being done—that don’t deserve a separate name, a directory selection, and then attaching to some project. Creating a new workspace is too costly; stuffing things into the current project directory easily pollutes the project, and a couple of days later even you can’t tell which files are temporary junk.

The plugin dsh-bundle-default-workspace (maintainer OraSkyC, community category: workflow) provides a fixed landing spot for these “come and go” small tasks: it automatically creates and registers a default workspace, writes the top-level rules file AGENTS.md, and registers the agent tool default_workspace. In the settings panel you can change the path and description text; changes take effect immediately.

What This Is

dsh-bundle-default-workspace is a DSH plugin (the npm package name is the same as the repository name; current version 0.2.1; MIT license). Its positioning can be summarized as: a default workspace—use it for miscellaneous tasks when you don’t need to distinguish projects.

The default directory lives at <your documents directory>/deepseek-harness/default-workspace (for exact resolution see “How the directory is determined” below), and it appears in the DSH workspace list with the display title “Default Workspace”. The plugin is implemented in pure JavaScript, depends only on node: built-in modules, and has no additional build step; it requires Node >= 22.19.0, with the Cordis peer dependency being @deepseek-ai/cordis (>=4.0.0 <5.0.0).

The community directory site SkillHub is not officially affiliated with DeepSeek / High-Flyer; the DSH ecosystem philosophy is “everything is a plugin”, so it is recommended to review the source code and license yourself before installation. The plugin runs with the permissions of the current DSH process.

Core Features

Default Workspace and AGENTS.md

  • On first use it can auto-create the directory and register it into the DSH workspace list (subject to configuration; autoCreate defaults to true).
  • At creation time it can write an AGENTS.md seed (seedAgentsMd defaults to true), written in Chinese, explaining: this is not a formal project, don’t build src/, tests/, package.json, and don’t initialize git; don’t pile files directly at the top-level directory—temporary content should go into _scratch/, notes/, scripts/, etc.; and that _trash/ is a recycle bin, do not touch it. If AGENTS.md already exists, it is not overwritten by default (overwriteSeed defaults to false).

Agent Tool default_workspace

In a session you can ask the agent to query or ensure the workspace is ready. Tool name: default_workspace; main actions:

action behavior
status (default) directory, whether it exists, whether it is registered, title and session count, AGENTS.md status (read-only)
ensure create the directory, register it, write AGENTS.md (idempotent)
path return the directory path and its source
describe return the purpose description (consistent with the panel configuration)

The tool description explicitly states: to change the directory, the user should modify parentDirectory in the settings—do not change it arbitrarily inside the tool; clear / reset can only be performed in the panel—no tool entry is provided.

Visual Configuration

Open this plugin’s configuration card in Settings → Plugins to change the directory location, display title, purpose description, the AGENTS.md seed text, and so on. User overrides are saved in %USERPROFILE%\.dsh\state\dsh-bundle-default-workspace\settings.json (on Linux/macOS, the equivalent of $HOME), and changes take effect immediately without a restart. The panel polls state at roughly every 30 seconds by default (pollSeconds, range 5–600).

Recoverable Clear and Reset

The panel’s “Cleanup and Reset” offers:

  • Clear workspace: move away all top-level content and subdirectories, keeping AGENTS.md and _trash/.
  • Reset workspace: move away even AGENTS.md, then regenerate the seed according to current settings and confirm the workspace is still registered and valid.

Deletion is not a direct delete: entries are first renamed into _trash/<timestamp>/ inside the workspace and can be manually retrieved. On confirmation you must type the workspace directory name verbatim (default: default-workspace). The number of recycle bin batches kept is controlled by trashKeep (default 5; 0 means old batches are never cleaned up automatically).

Read-Only State and Directory Fallback

GET /api/dsh-bundle-default-workspace/state is strictly side-effect free—polling will not secretly create the directory; creation must go through /ensure or the tool’s ensure action.

Directory resolution order (final path = parent directory / directoryName):

  1. parentDirectory non-empty → use that absolute path directly
  2. otherwise documentsDirectory non-empty → <it>/deepseek-harness
  3. otherwise auto-detect the system documents directory → <documents>/deepseek-harness
  4. all fail → ~/.dsh/workspaces/deepseek-harness

The panel shows the source currently in use, making it easy to confirm “where the workspace is being created”.

Installation and Activation

After installation, you must restart DSH for it to load (the installation interface also shows “will load after next startup”).

  1. Open Settings → Plugins
  2. Click “Add Plugin”
  3. In “Package name or address”, fill in:
https://github.com/OraSkyC/dsh-bundle-default-workspace
  1. Click “Install”, then restart DSH

The input box accepts npm package names, GitHub repository addresses, or local directory paths. When using a GitHub address, your machine must be able to access github.com directly.

Method 2: Command Line

dsh plugin --profile desktop add https://github.com/OraSkyC/dsh-bundle-default-workspace

Method 3: Local Directory (Development)

dsh plugin --profile desktop add /path/to/dsh-bundle-default-workspace

Upgrade: the plugin manager currently does not support automatic updates; you need to uninstall first, then install the new version using the steps above and restart.

Typical Usage

Ask for the Path in a Session or Ensure the Directory Exists

After installation and restart, in a session related to the default workspace you can ask the agent to call default_workspace:

  • Ask “where is the default workspace, is it created?” → usually corresponds to status or path
  • Need to create the directory first and register it → ensure (idempotent, can be called repeatedly)

To change the path, title, or description on the human side: open Settings → Plugins and use this plugin’s card—no need to change tool parameters.

Configuration Quick Reference (User Override Layer)

Only the commonly used keys are listed; the complete table is in the “Configuration” section of the repository README.

Key Default Description
enabled true when disabled, no creation, no registration, and no tool is provided
directoryName default-workspace leaf directory name
parentDirectory "" leave empty for automatic resolution; fill in an absolute path to fix the parent directory
title "" leave empty to derive the display title from the directory name
autoCreate true auto-create and register on first use
seedAgentsMd true write AGENTS.md on creation
instructions "" if non-empty, replaces the entire built-in seed body

Clicking “Restore Default” removes the corresponding override key, falling back to the deployment defaults in the package’s cordis.patch.yml (changing deployment defaults requires restarting DSH).

Use Cases and Notes

Who it’s for

  • People who frequently use DSH for short tasks, drafts, and one-off scripts, but don’t want to create a new workspace for every task.
  • People who want the agent to follow AGENTS.md rules in a fixed “non-project” directory and pollute real project repositories less.

Notes when using

  • The plugin runs with the same process permissions as DSH; clear/reset will empty the entire workspace top-level content (except the recycle bin), so check the items listed in the panel and the confirmation word before operating.
  • The HTTP interface is only open to the local loopback and the allowedHosts whitelist; do not arbitrarily expand allowedHosts to untrusted hosts.
  • Statistics such as star counts on the community directory page are as displayed by the site; use the README and package.json as authoritative for verifying version and behavior.

Conclusion

dsh-bundle-default-workspace extracts “one-off small tasks” from the two bad choices of “creating a new workspace” and “polluting the project directory”, and—via a single default workspace, AGENTS.md top-level constraints, and recoverable cleanup—gives DSH sessions a clean default landing spot.

羽毛球分组比赛记分
小程序二维码

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

Xiaoye