DSH Plugins Marketplace

DSH Plugins

Plugins

/

Sessions & Messages

/

dsh-workspace-session-folders

d

dsh-workspace-session-folders

Identified

Auto-creates a dated per-session folder in the workspace and switches the conversation's working directory into it, with process/ and output/ subfolders for intermediates and deliverables.

dsh-workspace-session-folders

awesome · DSH plugin

每个新会话一个独立工作区文件夹 —— DeepSeek Harness (DSH) host 插件。

One private workspace folder per new conversation — a DeepSeek Harness (DSH) host plugin.

功能 / What it does

新建对话时,插件会在该会话的工作区根目录下直接创建一个专属文件夹,并把会话的 工作目录切换到该文件夹(模型会在系统提示中看到新目录,并在会话内收到一条 工作目录变更通知):

When a conversation is created, the plugin creates a private folder directly inside that session's workspace root and switches the session's working directory to it (the system prompt reports the new directory, and the conversation receives a working-directory change notice):

<工作区 / workspace>/<YYYY-MM-DD>-<会话ID session id>/
├── process/   过程文件与中间产物 (process files, intermediates)
└── output/    最终产物 (final deliverables)
  • 会话 ID 决定文件夹名,确定性生成:clear / compact 之后仍是同一个文件夹。
  • 目录切换通过 working-directory/change 事件持久化:恢复(resume)会话时由 DSH 自行恢复目录,插件无需参与。
  • 子代理(subagent)继承父会话的实时工作目录,自动落在同一会话文件夹内。
  • 共用的工具、素材等非会话专属文件仍可放在工作区根目录。
  • 已存在的旧会话与 resume 的会话不会被重新分配文件夹。

The folder name derives from the session id, so it is deterministic: after clear/compact the same session keeps the same folder. The directory switch is committed as a durable working-directory/change event, so resuming restores it without the plugin. Subagents inherit the parent's live working directory and therefore land inside the same session folder. Shared, reusable assets can still live in the workspace root. Existing and resumed conversations are left untouched.

安装 / Install

# 从 GitHub / from GitHub
dsh plugin --profile <profile> add https://github.com/realzsy/dsh-workspace-session-folders

# 从 npm(发布后)/ from npm (after publish)
dsh plugin --profile <profile> add dsh-workspace-session-folders

<profile> 是你的 DSH profile 名(桌面版为 desktop);安装后重启 DSH 或等待 HMR 生效即可。<profile> is your DSH profile name (desktop for the desktop client); restart DSH or let HMR apply the install.

配置 / Configuration

配置写在用户自己的 profile 补丁层(cordis.patch.yml),升级不会丢失:

Override in your profile's cordis.patch.yml layer (survives upgrades):

- id: workspace-session-folders
  config:
    enabled: true            # 总开关 (master switch)
    rootName: ''              # '' (默认) = 文件夹直接放工作区根目录;
                              #  填名字如 'sessions' 则在该子目录下嵌套
    subfolders: [process, output]  # 子目录 (subfolder names; [] = none)
    readme: true              # 在会话文件夹写 README.md 存根 (write README stub)
    promptSection: true       # 注入文件归放指引到系统提示 (model guidance)

限制 / Limitations

  • 仅对「新建的顶层会话」生效;旧会话、resume 的会话不重分配目录。
  • 会话文件夹不会被自动清理;不需要时手动删除即可(下次 clear/compact 会在 需要时按原路径重建空目录结构)。
  • 关闭插件后,新会话回到默认工作区根目录;已切换的会话目录保持不变。

Only fresh top-level conversations are assigned. Session folders are never cleaned up automatically. Disabling the plugin leaves already-assigned directories in place; new conversations return to the workspace root.

License

MIT © 2026 Sawyer Cheung

Comments

Loading…

Similar plugins

dsh-per-session-folder

by hhuapen

Creates an isolated folder for each new default-workspace session and renames it to match the session title.

Sessions & MessagesManifest valid

★ 3

MIT

JavaScript

Nov 1, 2026

dsh plugin --profile web add dsh-per-session-folder

Adds a Session without workspace entry to the DSH Workspace picker, creates isolated date-organized directories, and keeps started sessions resumable under Ungrouped.

Sessions & MessagesManifest valid

★ 2

↓ 150/wk

MIT

TypeScript

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

by s0meb0dy3

Creates a throwaway workspace with its own folder and session, manages running ones from a sidebar panel, and moves finished folders to the system Trash.

Development & InfrastructureSessions & MessagesManifest valid

★ 3

↓ 234/wk

MIT

JavaScript

Oct 31, 2026

dsh plugin --profile web add @s0meb0dy3/dsh-scratch-workspace

by Tonywqs

每个 DSH 会话一个时间戳产物目录:会话留在原工作区,插件注入「产物目录」规则;可选硬隔离模式。 Per-conversation output directories for DeepSeek Harness sessions.

Manifest valid

★ 0

MIT

JavaScript

Oct 8, 2026

dsh plugin --profile web add dsh-session-folders

by QAQ-Eleen

DSH 会话归位 · 每个会话一个时间文件夹 | One dated folder per DSH session

Manifest valid

★ 0

MIT

JavaScript

Nov 7, 2026

dsh plugin --profile web add dsh-folders-per-session

by a1137261060

两级会话组织器(替换式侧栏):工作区分组 + 工作区内会话文件夹,已适配 DSH 0.2.1。Two-level session organizer for DeepSeek Harness: workspace groups and per-workspace session folders.

Terminal & ClientsSessions & MessagesManifest valid

★ 2

↓ 6/wk

MIT

JavaScript

Oct 23, 2026

dsh plugin --profile web add dsh-session-organizer