Preface¶
When asking a temporary question in DeepSeek Harness (DSH), the common workflow involves exiting DSH, manually creating a directory on the disk, returning to point the workspace to that path, and deleting the folder yourself afterward. Missing a deletion step often leads to mixing up working directories from multiple sessions, making subsequent troubleshooting less intuitive.
Below is an introduction to the community plugin dsh-tmp-wks (npm package name @cliven/dsh-tmp-wks). It consolidates “create directory, start session, optional cleanup” into a single action in the sidebar, suitable for scenarios where you just want to quickly try a question without permanently occupying a fixed project directory.
What is this¶
DeepSeek Harness Temporary Workspaces (dsh-tmp-wks) is a workflow type plugin for DSH, published by the maintainer Trisia. The source repository is Trisia/dsh-tmp-wks. The plugin provides a “New temp session” entry in the sidebar: clicking it creates a one-time workspace on the disk and starts a session directly under that directory, without needing to leave DSH to manually create folders.
Core Features¶
The capabilities explicitly stated in the materials are as follows:
- One-click Creation: Generate a temporary workspace with a single click and start a session within it.
- Controllable Deletion: When deleting a session, it asks whether to also delete the temporary directory on the disk; files are kept by default. This confirmation prompt can be disabled in the configuration.
- Shared by Web and Desktop: Uses the same installation method and is available in both DSH Web and DSH desktop clients (the client side injects sidebar-related modules via configurations like
dsh.client.platform: web).
Temporary directories default to the operating system’s temporary directory ($TMPDIR for Linux/macOS, %TEMP% / %TMP% for Windows). The Linux example path given in the README looks like:
/tmp/tmp-k7mq2z
The plugin only deletes directories created by itself to avoid accidentally deleting other user paths.
Installation and Activation¶
The installation command follows the GitHub README:
dsh plugin --profile web add @cliven/dsh-tmp-wks
After installation, a New temp session button appears at the bottom of the sidebar.
* Left-click: Creates a temporary workspace and starts a session.
* Right-click: Opens a management panel used to handle temporary directories on the disk.
The DSH engine requirement declared in package.json is >=0.2.0-rc.2 <0.3.0-0; the license is MIT. Community directory page: skillhub.cn/plugins/Trisia/dsh-tmp-wks (Independent community site, not officially affiliated with DeepSeek / High-Flyer).
Configuration¶
These can be adjusted on the sidebar Plugins page (as described in the README):
- Storage Location: If left empty, the system temporary directory is used; if a relative path is filled, it is resolved relative to the DSH home; if an absolute path is filled, it is used as-is.
- Name Prefix: The naming prefix for temporary directories (works in conjunction with default
tmp-style naming; specific fields depend on the Plugins page UI). - Delete Confirmation: Whether to pop up a “delete disk directory?” prompt when deleting.
Typical Usage¶
- Run the
dsh plugin --profile web add @cliven/dsh-tmp-wkscommand above to complete the installation. - Click New temp session at the bottom of the DSH sidebar to ask questions or try scripts in a new temporary directory.
- Delete the session as needed after finishing; if the default behavior is retained, files on the disk will remain, and you can handle temporary directories collectively in the management panel opened via the right-click button.
- If you want to stop being asked when deleting a session, or if you want temporary directories fixed to a relative path under DSH home, modify the corresponding items on the Plugins page, retry the creation process, and confirm the path meets expectations.
Suitable Scenarios and Notes¶
Suitable for: Occasional Q&A, one-off small experiments, developers who do not want to pollute long-term project repository directories.
Notes:
- The plugin creates and manages directories on the disk with the permissions of the current DSH process; it is recommended to read the source code and MIT license of the GitHub repository before installing.
- When filling in an absolute path for storage location, please ensure the path complies with local security and backup policies; relative paths are relative to DSH home, not the current directory of an arbitrary shell.
- After disabling delete confirmation, the risk of misoperation is borne by the user; if “deleting a session must delete the directory” is required, it should be used in conjunction with the management panel and local habits.
Conclusion¶
dsh-tmp-wks consolidates “manually creating temporary directories, pointing workspaces, and cleaning up” into a one-click sidebar operation. By default, it preserves disk files upon deletion and only cleans up directories created by the plugin itself. For further information, visit the community directory page https://www.skillhub.cn/plugins/Trisia/dsh-tmp-wks and GitHub https://github.com/Trisia/dsh-tmp-wks.