返回目录
Agent 与会话 插件

dsh-plugin-noworkspace-session

yusunz/dsh-plugin-noworkspace-session

Adds sessions without a workspace to DeepSeek Harness

Stars
1
Forks
1
Issues
0
更新
6 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:yusunz/dsh-plugin-noworkspace-session

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

dsh-plugin-noworkspace-session

为 DeepSeek Harness 增加未分组(无工作区)会话:点一下就开一个不占用任何项目工作区的会话,输入区仍是 DSH 原生那一个——模型选择、权限、附件、斜杠命令全部照旧。

Listed on dsh-plugin.org

为什么需要它

DSH 的输入区要求会话属于某个工作区;未分组会话在原生判定里是"空白会话",输入区会被禁用。本插件在创建会话后,临时把它挂到与它自己工作目录同名的工作区上,让原生输入区可用;你发出第一条消息后,这个临时工作区被删除,会话落回未分组并照常保留、可恢复。

入口

位置 说明
新会话行右侧 一枚「不在工作区中工作」按钮,与原生工作区选择框、Agent 预设同一行;原生控件保持原生,未被替换
全局快捷键 Ctrl+Alt+U(Windows/Linux;macOS 桌面 Cmd+Option+U)创建并打开一个无工作区会话
输入框命令 在任意已有会话输入 /noworkspace,创建并打开一个无工作区会话
右侧栏「开始」页 一张「非工作区会话」卡片,与「工作区文件 / 新建终端 / 浏览器」并列
右侧栏「更多」菜单 同一入口的次级菜单项;点开是一页说明,可在其中直接创建

几处动作一致:新建会话 → 临时挂载 → 原生输入区可用 → 首条消息后回到未分组。已经处在无项目任务空白会话时,新会话行上的按钮会自动隐藏(右栏卡片仍可作为再次新建的入口)。

快捷键与命令

  • Ctrl+Alt+U(Windows/Linux;macOS 桌面为 Cmd+Option+U):从任意页面创建并打开一个无工作区会话。快捷键是 DSH 窗口内命令,不是操作系统全局热键;可在「设置 → 通用 → 快捷键」里改键。
  • /noworkspace:在任意已有会话的输入框里输入,创建并打开一个无工作区会话。它只在该会话的输入区菜单里出现,冷启动无会话时不可用。
  • 命令菜单和「设置 → 通用 → 快捷键」里的名称都是「新建无工作区会话」;说明文案为「在无项目任务文件夹中新建会话,不占用任何工作区」,不带括号。
  • 两者都按现有链路打开在主视图;右侧栏不能承载另一个会话(见“已知限制”)。Web macOS / Web Linux 默认不绑定快捷键,可在设置里手动绑定。
  • 若未来 DSH 原生命令占用了同一默认键,插件会跳过快捷键注册并记录一条警告;chip、右栏卡片与 /noworkspace 不受影响。命令正常注册时可在设置里改键。

工作目录

每次新建会话都会在工作目录下创建 <YYYY-MM-DD>\<HH-MM-SS> 子目录并作为该会话的 cwd,因此每个未分组任务互不干扰。会话 id 由 DSH 自己铸造,插件不自定义 id。

默认位置:~/Documents/dsh(可在设置里改)。

  • 不留残留:点了按钮却没发消息就切走,临时分组立刻消失;磁盘上那个空目录会在下次启动 DSH 时被回收。目录里只要有文件(代理写过东西)就永远不会被删。
  • 会话本身从不被删除。

设置

设置 → 通用设置 → 无项目任务文件夹:显示当前路径,支持「更改」(宿主原生目录选择框)与「重置」(回落默认 ~/Documents/dsh)。修改写入当前 profile 的配置并立即生效,之后新建的会话立即使用新位置。

路径必须是绝对路径(目录选择器给出的即是)。手写在 profile 配置里的相对路径会被拒绝:点入口时直接说明原因,而不会把任务目录建到 DSH 进程的工作目录下。

创建失败的反馈

新建会话有两步:先建会话,再由宿主把它临时挂到一个分组上,输入区才可用。如果临时分组没能挂上(例如那个时间目录已经被手工注册为工作区、或另一个页面刚抢占了同一秒的目录),插件不会打开这个会话——否则你只会看到一个不能输入的灰输入区,而入口又已经在该会话上隐藏。此时入口处会显示可直接阅读的原因,重试即可;那个空目录会在下次启动时回收。

安装

在应用内用插件管理器安装,或在命令行:

# npm
dsh plugin --profile desktop add dsh-plugin-noworkspace-session

# GitHub
dsh plugin --profile desktop add github:yusunz/dsh-plugin-noworkspace-session

# 本地 tarball
dsh plugin --profile desktop add /absolute/path/to/dsh-plugin-noworkspace-session-0.3.5.tgz

安装后重启 DSH(宿主半代码只在进程启动时加载),随后硬刷新页面(Ctrl+Shift+R)以确保取到新的客户端 bundle。

卸载

dsh plugin --profile desktop remove dsh-plugin-noworkspace-session

然后在应用内用插件管理器移除 bundle 并刷新页面。已创建的未分组会话不会被删除。

已知限制

  • 右侧栏不能承载会话:DSH 的右侧栏整套注册都绑定「当前会话」,标签页是文件 / 浏览器 / 终端这类面板类型,没有渲染对话面的座位。所以卡片、快捷键与 /noworkspace 都在主视图打开会话;右栏并排会话等上游提供独立右栏会话面后再实现。
  • 放弃的空白会话回到未分组后遵循 DSH 原生规则:空白会话在侧栏不可见(有了消息才会作为普通会话显示);它留下的空目录在下次启动时回收。
  • 若任务目录下的 <日期>\<时间> 已被手工注册为工作区,插件不会接管它:该会话保持未分组,入口处会说明原因(见上文「创建失败的反馈」),不会打开灰输入区,也不会删掉你自己的分组。
  • 首条消息直接输入即可;附件走原生链路。
  • 「更多」菜单里点开的说明页只做入口说明与创建,不会在右栏内嵌对话。

兼容性

  • 目标:DSH 0.2.1-rc.3 及以上(package.json 的 engines.dsh 已声明);桌面版与 Web 版均可。已在 0.2.2-rc.3 上核对过全部座位、服务与事件。conversation.hero.options 座位自 DSH 0.2.1-alpha.4 起提供,旧版没有该座位。
  • 依赖:@deepseek-ai/schemastery(DSH 自带,随插件声明,版本跟随宿主)。
  • 只在 conversation.hero.options、settings.general.item、sidebar.right.tab.guide.entry、sidebar.right.pane.tab 这类增量座位上注册,不替换任何 DSH 原生控件;快捷键与 /noworkspace 走 ctx.shortcuts / ctx.commandUi 服务,不覆盖原生命令。

License

MIT


English

Adds sessions without a workspace to DeepSeek Harness: one click opens a session that occupies no project workspace while keeping DSH's own composer (model, permissions, attachments, slash commands). The session is temporarily attached to a workspace named after its own directory so the native composer unlocks; after your first message that temporary workspace is removed and the session lands under Ungrouped, resumable as usual. Entry points: a button at the right end of the new-session row, a card on the right sidebar's start page, the same entry in the sidebar's More menu, the Ctrl+Alt+U shortcut (Cmd+Option+U on macOS Desktop), and /noworkspace from an open session's composer. The command menu and Settings → General → Keyboard shortcuts label it "New session without a workspace"; if a future DSH release claims the same default shortcut, the plugin skips only that shortcut and keeps the other entry points. All entry points open the session in the main view; the right sidebar cannot host a separate conversation, so side-by-side sessions wait for upstream support. Each session gets its own <date>\<time> working directory; empty ones are reclaimed on the next DSH start, and a directory holding files is never touched. Requires DSH 0.2.1-rc.3 or newer (engines.dsh); verified on 0.2.2-rc.3. The task folder must be an absolute path (a relative one is refused with a message), and when the temporary group cannot be attached the session is not opened — the entry point reports why instead of showing an inert composer. Install with dsh plugin --profile desktop add dsh-plugin-noworkspace-session, then restart DSH and hard-refresh the page. MIT.

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类Agent 与会话
规则置信度中

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: session、sessions。