DSH HUB
HomePlugin StorePlugin PacksCommunityRankingsResourcesPublish Guide
Plugin source
Back to catalog

wgl2zj /

wgl2zj/dsh-noworkplace

Verified

DeepSeek Harness 插件:固定「无工作区」工作区(~/.dsh/scratch),零散任务免选文件夹 | DSH host plugin: a fixed no-workspace scratch workspace

★ 0 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
View on GitHub
READMESource: main@a57371bb

dsh-noworkplace

中文 | English

一个 DeepSeek Harness(DSH)宿主插件:维护一个固定的「无工作区」工作区(~/.dsh/scratch),让零散的一次性任务无需选择文件夹即可开始对话。

A DeepSeek Harness (DSH) host plugin that keeps a fixed "No workspace" workspace at ~/.dsh/scratch, so one-off conversations never need a folder pick.

动机

DSH 桌面版默认要求先有一个工作区(工作文件夹)才能开始对话,首次使用还会在系统文档目录自动创建默认工作区。对于"随手问一句、改个临时文件、跑个一次性脚本"这类零散任务,选文件夹是多余的步骤。

本插件在 DSH 的用户数据层维护一个固定的「无工作区」工作区,指向 ~/.dsh/scratch(自动创建)。它以官方工作区形态存在,因此侧栏、工作区切换菜单、"新会话"回退等全部界面原生支持——应用更新不影响(插件装在用户数据层,不在程序目录)。

安装

方式一:npm 一键安装(推荐)

dsh plugin --profile desktop add dsh-noworkspace

方式二:从源码安装

git clone https://github.com/wgl2zj/dsh-noworkplace.git
dsh plugin --profile desktop add link:<克隆目录绝对路径>

安装后即时生效(热加载,无需重启),侧栏会出现名为「无工作区」的工作区。

工作原理

  • 声明依赖宿主的 workspaceRegistry 服务;
  • 激活时确保 ~/.dsh/scratch 目录存在,然后调用官方注册接口 WorkspaceRegistry.create(path, title);
  • create 对同一规范化路径幂等:重复激活复用既有记录,且不会覆盖你在界面上改过的标题。

行为说明

  • 该工作区与你手动添加的工作区完全同权:可改名、可删除、会话归档等均走官方逻辑;
  • 删除该工作区后,插件下次激活会重建(不想要此行为请禁用或移除本插件);
  • 已有 cwd 为 ~/.dsh/scratch 的历史会话会自动归入该工作区显示(官方 cwd 匹配机制);
  • 移除插件不影响已产生的会话记录与 scratch 目录里的文件。

兼容性

  • 在 DSH 桌面版 0.2.1-rc.5(Windows)实测通过;
  • 依赖宿主 WorkspaceRegistry.create(path, title) 接口签名,官方若变更该接口需要适配。

许可证

MIT

—/ 5

No ratings yet

Verified DSH bundle

Commit a57371bb4521

Community comments

No comments yet. Be the first to write one.

DSH HUB

A community index for DSH plugins. Not an official GitHub or DeepSeek AI product.

CommunityResourcesAPIAbout