README
Workspace mover for DeepSeek Harness
Move a saved chat from one workspace into another, with its history, without leaving the shell.
Right-click a chat in the sidebar → Move to workspace → pick the target.
What it does
DSH groups chats by the working directory recorded in each session's immutable header, and a workspace owns only the sessions whose recorded directory is its own. That record cannot be rewritten, so a move is a faithful replay:
- The source log is replayed up to its latest completed turn into a new session whose header names the target folder. History, title, model route, and agent preset carry over, and the chat continues normally afterwards.
- The new session is attached to the target workspace, where it appears immediately.
- The original session is archived — the same flag as Archive in the row menu. It leaves the sidebar grouping but stays complete in the archived list.
A failed replay restores the source and stops the half-created chat, so a move is all-or-nothing.
Three ways to run it
| Entry point | How |
|---|---|
| Session menu | Right-click the session row (or use its ... button) → Move to workspace → workspace |
| Slash command | /move-workspace <workspace id, exact title, or absolute path> |
| Agent tool | move_chat with session and workspace |
The menu offers every other workspace, never the one that already holds the chat, and skips archived chats. When only one workspace exists there is nothing to choose, so the row is not shown.
Install
Requires the DeepSeek Harness desktop app with the workspace-aware sidebar (tested with the 2026-11 build).
- Clone or copy this directory somewhere permanent.
- In DSH open Plugins → Add plugin and choose that directory (the plugin manager installs a bundle from an absolute package directory).
Manual equivalent, for a profile's package.json: add
"@local/workspace-mover": "link:<absolute path to this directory>"
to dependencies and the same name to dsh.profile.bundles.
Limitations
- The moved chat gets a new session id. A copied id, a subagent reference, or a schedule bound to the old id keeps pointing at the archived original.
- The chat must be idle and have at least one completed turn. A running turn, subagent, background job, or active reminder refuses the move and says why; a blank chat has no history to replay.
- The target folder must exist. A workspace whose directory is gone refuses the move before anything is written.
- Subagent children are not replayed. Their own sessions stay where they are; the moved log still shows the calls and their results.
- Moving twice leaves archived copies. Restore one from the archived view to bring it back to its original workspace.
- The moved chat is not opened for you and is not pinned — pin it again if you rely on the pinned section.
docs/DETAIL.md describes the behaviour in full.
Layout
| Path | Contents |
|---|---|
index.js |
Host half: registers the /move-workspace command and the move_chat tool |
lib/move.js |
The move itself: completed-turn prefix, route and preset folding, replay, rollback |
client.js |
Client half: the session menu action, its submenu, its glyph, and the toast |
cordis.patch.yml |
Bundle patch that mounts the plugin |
locale/*.json |
Plugin metadata: en, zh, ru, ja, es, fr, de, pt |
test/move.test.mjs |
Checks over the log folds and over moveSession against stub services |
Tests
node test/move.test.mjs
Prints one line per check and ends with ALL CHECKS PASSED (exit code 0) or
FAILURES: n.
License
No license is granted. The source is published for reading and personal use; copyright stays with the author, and nothing here grants rights beyond GitHub's Terms of Service. Ask before redistributing.
更多「Agent、自动化与工作流」插件
dsh-agent-teams
作者 nanmicoder
DeepSeek Harness 的 Agent Teams 多智能体协作插件,支持多个 AI Agent 组成团队,协同完成复杂任务,实现任务分配、并行执行、成员通信与团队协作。 AgentTeams plugin for DeepSeek Harness
dsh-blender-plugin
作者 sixtysevenlf
DSH × Blender 直连插件 v3.0.6:15 个模型工具让 AI 驱动 GUI Blender(视口 / 自定义视角 / 无头 worker / 作业层 / 事务回滚 / 配方库),34 family / 228 op 契约层;npm 安装 + addon zip,GUI 优先、无头备用;dsh-TUI 选中 chip / @ 提及 / /blender,随包建模 skill,支持 WSL / Windows / macOS。
dsh-free-search
作者 dddmuc
为DeepSeek Harness提供的免费网络搜索服务商:即使没有API密钥也可使用。Free web search provider for DeepSeek Harness:usable even without an API key.
dsh-bili-scroll
作者 c1overzz
DSH 插件:每天替你刷一轮 B站,读字幕挑出值得的、写一份日报,值得的 @ 你
