Introduction¶
When handling file tools and shell commands, DeepSeek Harness (DSH) typically requires an explicit project directory. For ad-hoc conversations, one-off tasks, or scenarios that do not require complex context, forcing the selection of a project for every new session adds an extra operational burden.
The dsh-auto-workspace plugin takes over DSH’s default fallback logic. It allows users to create “project-less” sessions and automatically assigns an independent local working directory for these sessions. File tools and shell commands will run within this directory, and upon resuming a session, the context will remain in that location.
Core Features¶
- Independent Working Directory: Creates a separate local working directory for project-less chats.
- Context Isolation: Runs file tools and shell commands within that directory.
- Persistence: Maintains the working location upon session resumption, preserving files.
- Clean Sidebar: Adds nothing to the sidebar’s project list.
- Logic Rewriting: Rewrites the default fallback logic to provide a “do not select project” option.
- Automatic Grouping: Saves sessions in DSH’s native “Ungrouped” group.
- Badge Interaction: Provides a clear badge function, allowing users to leave the current project.
Installation and Activation¶
This plugin is a DSH Bundle, injected via the configuration file.
Web App:
Install by running the following command in the terminal:
dsh plugin --profile web add github:Castor6/dsh-auto-workspace
Desktop App:
The Desktop app does not support CLI installation. Please open Plugins in the left navigation bar, enter github:Castor6/dsh-auto-workspace or the repository URL https://github.com/Castor6/dsh-auto-workspace to install.
Typical Usage¶
- Create Session: Click “new session” without selecting any project and start typing immediately.
- Leave Project: When hovering over the project chip in the blank chat interface, the folder icon changes to a circular clear badge; click it to leave the project.
- Launch Method: Select the “Work without a project” option in the project list.
Configuration¶
In the configuration file (~/.dsh/profiles/<profile>/cordis.patch.yml), set parameters via the plugin’s loader line:
- id: auto-workspace
config:
root: '/Volumes/Work/DSH' # 默认:<home>/Documents/DSH
directoryPrefix: 'chat' # 默认:chat → chat-01, chat-02, ...
enabled: true # 默认:true
Configuration Description:
* root: Specify the root path for the working directory.
* directoryPrefix: Specify the naming prefix for subdirectories.
* enabled: Whether to enable this plugin.
Notes¶
- Dependency Requirements: The plugin depends on
@deepseek-ai/cordis(~4.0.4). - Directory Structure: Chat directories are located by default at
~/Documents/DSH/<YYYY-MM-DD>/chat-NN/(on Windows:%USERPROFILE%\Documents\DSH). - Cleanup Mechanism: The plugin does not delete any files or directories. A directory is only reclaimed if session creation fails and nothing has been written to it yet.
- Installation Methods: Web app supports CLI installation; Desktop app supports GUI installation only.