dsh-projectless-session

DSH PLUGIN开发与运行时

仓库 jarvisluk/dsh-projectless-session · npm dsh-projectless-session

开发与运行时 L5 · 运行验证通过 安全审查:低风险 可信度:金 可安装插件
安装这个插件

为 DeepSeek Harness 添加无工作区会话,每个会话自动获得按日期组织的隔离工作目录,保留原生新建会话界面。

验证等级 L5 L5 · 运行验证通过
GitHub 星标 2 复刻 1 · 未关闭 issue 1
最近更新 2026-09-30 创建于 2026-08-18
README 9.7 KB 正文体量,越大说明说明书写得越细

安装

可安装插件
在 DSH 里执行,装完用 dsh plugin list 确认已挂上;标了 L4 / L5 的命令已在沙盒里真实跑通
dsh plugin --profile web add [email protected]
兼容 DSH 版本0.2.0-rc.2 等 8 个版本版本不匹配时安装会报错
Node.js 要求>=22.19来自仓库 package.json 的 engines 字段
前置依赖@deepseek-ai/cordis@^4.0.4、@deepseek-ai/dsh-api-session-controller@^0.2.0-rc.2 等 12 个需要同时安装的同级依赖
npm 包名dsh-projectless-session可用 npm view 查看包信息

能做什么

4 项功能
字段来自项目仓库与公开索引,中文说明由本站标注

dsh-projectless-session:DeepSeek Harness 的无工作区会话插件

  • 无工作区会话
  • 日期隔离目录
  • 保留原生界面
  • 自动清理未用

适用场景

文件读写

上游标签

dsh-plugin

验证等级与安全审查

L5 · 运行验证通过
自动化流程结论,不是人工审核
验证等级L5 · 运行验证通过在 dsh 沙盒中完成安装与运行冒烟——装得上、跑得起来
安全审查低风险静态分析结论,未标注不代表已通过审查
仓库健康度活跃按仓库活跃度与最近更新时间给出
可信度金综合仓库活跃度与验证结果

上面的结论来自上游最近一次自动化验证(2026-10-08): 同一套检查会在插件发新版后重跑,页面显示的是最新一次的逐项结果。

逐项检查结果

L1 · 已找到 ✓ 通过
  • L1.0_DEFAULTED_FROM_L3 由 L3 推定 默认通过——L3 安装规范已通过(全库 L3 扫描策略)
L2 · 结构化 ✓ 通过
  • L2.0_DEFAULTED_FROM_L3 由 L3 推定 默认通过——L3 安装规范已通过(全库 L3 扫描策略)
L3 · 安装规范 ✓ 通过
  • L3.1_INSTALL_COMMAND_PARSED 安装命令已解析 方式:安装规范解析
  • L3.2_DSH_VERSION_DECLARED DSH 版本已声明 方式:DSH 版本声明
L4 · 安装已测 ✓ 通过
  • L4.1_INSTALL_EXECUTED_CONFINED 受限沙盒内执行安装 方式:沙盒安装执行
  • L4.2_INSTALL_SUCCESS 沙盒安装成功 方式:沙盒安装执行
  • L4.3_ARTIFACT_CONFIRMED 安装产物已确认 方式:沙盒安装执行
L5 · 运行已测 ✓ 通过
  • L5.1_INSTALL_PASSED_SANDBOXED 沙盒安装通过 方式:沙盒安装执行
  • L5.2_WEB_BOOT_READY Web 启动就绪 方式:Web 启动
  • L5.3_HTTP_SERVED HTTP 服务响应 方式:HTTP 请求
  • L5.4_PLUGIN_INVENTORY_ACTIVE 插件清单中已激活 方式:插件清单查询

风险详情

  • 审查结论 通过
  • 结论说明 vet 静态分析未发现可疑行为,判定为干净(clean)。
  • 风险计数 严重 0 / 高 0 / 中 0
  • 风险详情 未发现严重或警告级问题。

仓库档案

开发与运行时
字段来自项目仓库与公开索引,中文说明由本站标注
作者 / 维护方jarvisluk仓库 dsh-projectless-session · 默认分支 main
分类开发与运行时developer
收录类型可安装插件声明了 dsh.bundle、可用 dsh plugin add 安装的条目
开发语言TypeScript仓库主语言
许可证MIT商用或二次分发前请确认条款原文
星标 / 复刻 / issue2 / 1 / 1收录时的数值,非实时
创建 / 更新2026-08-18 · 2026-09-30最后推送 2026-09-30
本站收录2026-08-27首次进入本站目录的时间

README 全文

9.7 KB
作者原文,中文版优先;只做安全转义,不改内容

dsh-projectless-session

English | 简体中文

English

A DeepSeek Harness Web/Desktop plugin that adds Session without workspace
to the existing Workspace picker. Every session receives its own date-organized
working directory:

~/Documents/DSH/YYYY-MM-DD/session-HH-mm-ss-random/

The plugin uses DSH's Cordis Host/Client extension APIs and does not modify
DeepSeek Harness source. Its UI follows the DSH Language setting and includes
complete English and Simplified Chinese dictionaries.

How it works

DSH 0.2.0-rc.2 disables its native blank-session composer when a Session has
no registered Workspace. To retain the complete native composer—including
agent preset, commands and attachments, access mode, model selection, and the
send button—the plugin uses this lifecycle:

  1. The Host creates a directory through an authenticated DSH Connection
    endpoint on the shared /api channel.
  2. The client registers that directory as a temporary Workspace.
  3. DSH creates and opens a Session in the temporary Workspace, so the standard
    blank-session UI remains fully available.
  4. After DSH accepts the first prompt and reports blank === false, the plugin
    deletes only the Workspace registration.
  5. DSH keeps the Session, log, cwd, and directory; the conversation moves to
    the built-in Ungrouped section and remains resumable.
  6. If the blank Session is left unused — the user switches away, DSH exits, or
    a previous leftover is found on startup — the plugin unregisters the
    Workspace, archives the unused Session, and removes the empty directory.

Deleting the registration after the first prompt does not delete the working
directory or Session history. Unused empty directories are removed only when
they still match the plugin's date/session shape and contain no user files.
Finder metadata such as .DS_Store does not keep the directory.

Compatibility

  • DeepSeek Harness 0.2.0-rc.2
  • Node.js 22.19 or later
  • Local Web/Desktop profile

Install

From npm (recommended):

dsh plugin --profile web add dsh-projectless-session

From GitHub source:

dsh plugin --profile web add github:jarvisluk/dsh-projectless-session

Offline, from the prebuilt tarball on the
latest GitHub Release
— download the asset, then install that local file:

dsh plugin --profile web add /absolute/path/to/dsh-projectless-session.tgz

> Do not hand pnpm a release-asset URL such as
> https://github.com/…/releases/latest/download/dsh-projectless-session.tgz.

> That address is mutable and pnpm 11 (the DSH Desktop profile uses
> nodeLinker: hoisted) caches it by URL. On a cache hit pnpm writes the
> resolution with no integrity field, aborts with
> ERR_PNPM_MISSING_TARBALL_INTEGRITY, and can even resolve a stale version.
> The npm package, the github: shortcut, and a downloaded local file all pin
> an immutable artifact instead.

Restart a running dsh web process after installation. To uninstall:

dsh plugin --profile web remove dsh-projectless-session

Behavior

  • Preserves every existing Workspace entry and DSH's native Add workspace…
    action.
  • While a projectless blank session is open, the picker check sits on
    Session without workspace and the temporary directory is hidden from the
    project list.
  • Creates an isolated working directory with a collision-resistant suffix.
  • Uses DSH's complete native new-session UI before the first prompt.
  • Uses the current DSH default agent preset, model, and permission preset;
    native selectors can change them before sending.
  • Removes only the temporary Workspace registration after the first prompt.
  • Unregisters unused blank projectless Workspaces if no prompt is sent.
  • Keeps the Session resumable under Ungrouped across DSH restarts.
  • Switches plugin copy live between English and Simplified Chinese with the DSH
    Language setting.
  • Uses DSH's authenticated /api Connection channel for filesystem calls and
    removes its routes cleanly when the plugin unloads.
  • Keeps Add workspace… on DSH's composed directory flow (native chooser or
    in-app browser) by mirroring it into the plugin picker's own slot.
  • Restores DSH's built-in priority 0 Workspace picker automatically when the
    plugin is removed.

Custom root directory

Override the plugin configuration in the Web profile's cordis.patch.yml:

- id: dsh-projectless-session
config:
root: /absolute/path/to/DSH

Development

npm ci
npm run verify
npm pack

Tests cover the bilingual dictionaries, directory safety constraints, local
date hierarchy, temporary Workspace lifecycle, picker selected-state remapping,
cleanup after the first accepted prompt, abandonment of unused blank
Workspaces, and rollback when Session creation fails.

简体中文

这是一个 DeepSeek Harness Web/Desktop 插件,在现有工作区选择器中加入
无工作区会话。每个会话都会获得一个按日期整理的独立工作目录:

~/Documents/DSH/YYYY-MM-DD/session-HH-mm-ss-random/

插件使用 DSH 的 Cordis Host/Client 扩展接口,不修改 DeepSeek Harness
源码。界面文案跟随 DSH Language 设置,完整支持英文和简体中文。

工作方式

在 DSH 0.2.0-rc.2 中,没有已注册 Workspace 的空白 Session 会禁用原生
编辑器。为了完整保留 Agent 预设、命令与附件、访问模式、模型选择和发送
按钮,插件采用以下生命周期:

  1. Host 通过共享 /api 通道上已认证的 DSH Connection 接口创建目录。
  2. 客户端把该目录注册为临时 Workspace。
  3. DSH 在临时 Workspace 中创建并打开 Session,因此空白会话继续使用完整
    的原生界面。
  4. DSH 接受首条消息并报告 blank === false 后,插件只删除 Workspace 注册。
  5. DSH 保留 Session、日志、cwd 和目录;会话进入内置的未分组区域,
    之后仍可恢复和继续。
  6. 如果空白 Session 没有被使用——用户切走、DSH 退出,或启动时发现上次残留
    ——插件会注销 Workspace、归档未使用的 Session,并删除空目录。

首条消息后删除 Workspace 注册不会删除工作目录或会话历史。只有仍符合插件
日期/会话目录形态、并且里面没有用户文件的空目录才会被删除。.DS_Store
这类系统元数据不会阻止删除。

兼容性

  • DeepSeek Harness 0.2.0-rc.2
  • Node.js 22.19 或更高版本
  • 本机 Web/Desktop profile

安装

从 npm 安装(推荐):

dsh plugin --profile web add dsh-projectless-session

从 GitHub 源码安装:

dsh plugin --profile web add github:jarvisluk/dsh-projectless-session

离线安装:从
最新 GitHub Release
下载预构建压缩包到本地后再安装:

dsh plugin --profile web add /下载目录/dsh-projectless-session.tgz

> 不要把 Release 资产地址直接交给 pnpm,例如
> https://github.com/…/releases/latest/download/dsh-projectless-session.tgz。
> 这个地址是可变的,而 pnpm 11(DSH Desktop profile 使用
> nodeLinker: hoisted)按 URL 缓存它:命中缓存时写出的解析结果没有
> integrity 字段,安装会以 ERR_PNPM_MISSING_TARBALL_INTEGRITY 失败,甚至
> 可能解析到过期版本。npm 包、github: 简写和下载到本地的文件都指向不可变
> 产物,请使用其中之一。

安装后重启正在运行的 dsh web。卸载:

dsh plugin --profile web remove dsh-projectless-session

行为

  • 保留已有 Workspace 和 DSH 原生的添加工作区…入口。
  • 无工作区空白会话打开时,选择器的选中标记落在无工作区会话上,并隐藏
    临时目录,避免它出现在项目列表里。
  • 创建带防冲突随机后缀的独立工作目录。
  • 首条消息前完整复用 DSH 原生新会话界面。
  • 使用 DSH 当前默认的 Agent 预设、模型和权限;发送前可以通过原生控件修改。
  • 首条消息接受后只删除临时 Workspace 注册。
  • 若未发送消息,会注销仍空白的无工作区 Workspace。
  • Session 进入未分组,重启 DSH 后仍可恢复并继续。
  • 跟随 DSH Language 设置即时切换英文或简体中文。
  • 文件系统调用使用 DSH 已认证的 /api Connection 通道,并在插件卸载时干净移除路由。
  • 添加工作区… 继续使用 DSH 组合的目录选择流程(原生选择器或应用内浏览器),
    插件会把它镜像到自身选择器的插槽中。
  • 卸载插件后,DSH 内置优先级 0 的 Workspace 选择器自动恢复。

自定义根目录

在 Web profile 的 cordis.patch.yml 中覆盖插件配置:

- id: dsh-projectless-session
config:
root: /absolute/path/to/DSH

开发

npm ci
npm run verify
npm pack

测试覆盖双语词典、目录安全约束、本地日期层级、临时 Workspace 生命周期、
选择器选中态映射、首条消息后的注销、未使用空白 Workspace 的回收,以及
Session 创建失败时的回滚。

License

MIT

常见问题

8 问
答案由本站依据条目字段整理,不引用上游原文
dsh-projectless-session 怎么安装?

在 DSH 里执行 `dsh plugin --profile web add [email protected]` 即可。对应的 npm 包名是 `dsh-projectless-session`。

dsh-projectless-session 的验证等级是什么意思?

L5 · 运行验证通过。在 dsh 沙盒中完成安装与运行冒烟——装得上、跑得起来

dsh-projectless-session 安全吗?

低风险。vet 静态分析未发现可疑行为,判定为干净(clean)。

dsh-projectless-session 支持哪些 DSH 版本?

上游记录的兼容版本包括 0.2.0-rc.2、0.2.0-rc.1、0.1.7-rc.2、0.1.7-alpha.2、0.1.6-alpha.2、0.1.6-alpha.1、0.1.5-rc.2、0.1.3-alpha.2。

dsh-projectless-session 需要什么运行环境?

Node.js >=22.19;需要同时安装 @deepseek-ai/cordis@^4.0.4、@deepseek-ai/dsh-api-session-controller@^0.2.0-rc.2、@deepseek-ai/dsh-api-workspace-controller@^0.2.0-rc.2、@deepseek-ai/dsh-client-connection@^0.2.0-rc.2、@deepseek-ai/dsh-client-locale@^0.2.0-rc.2。环境不满足时安装会失败,建议先确认本机版本。

dsh-projectless-session 用的是什么许可证?

上游标注为 MIT。商用或二次分发前请到仓库确认许可证原文。

dsh-projectless-session 有哪些功能?

无工作区会话、日期隔离目录、保留原生界面、自动清理未用。

这条记录的数据可靠吗?

本站按仓库名去重后合并整理,字段以作者仓库与 npm 元数据为准;安装命令、仓库地址与 README 保持原文,带 L4 / L5 标记的安装命令已在隔离沙盒里真实跑通。

开发与运行时
按星标排序,可作替代方案

rea

rea

L4 · 沙盒安装通过 2.6 万 星

dsh-TUI

dsh-TUI

Claude Code 风格全屏终端 UI:像素鲸鱼顶栏、实时工作状态行、思考流式展开。

L4 · 沙盒安装通过 4,292 星

mirage

mirage

把文件系统与 bash 提供者换成 mirage 虚拟工作区:文件工具与 shell 命令作用于挂载的资源(RAM、S3、Redis、Sla

L3 · 安装规范通过 3,681 星

dashi-taskboard

dashi-taskboard

把当前已安装并运行中的 Codex Taskboard 嵌入 DeepSeek Harness 侧边栏,并通过 Launcher 运行时描述

L4 · 沙盒安装通过 3,311 星

插件的元信息来自作者仓库;分类、验证等级与安全结论的中文说明为中文整理,最近核验 2026-10-08。