dsh-workspace-mover
メンテナンス: 活発iophinie/dsh-workspace-mover
サイドバーから操作して、会話を別のワークスペースへ移動できる DeepSeek Harness プラグイン。/move-workspace コマンドと move_chat ツールを提供します。
$ dsh plugin add dsh-workspace-mover0
スター
0
フォーク
JavaScript
言語
2026-11-20
作成日
2026-11-20
最終プッシュ
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.
エージェント・自動化・ワークフロー の他のプラグイン
dsh-agent-teams
by nanmicoder
DeepSeek Harness 用の AgentTeams プラグイン
dsh-blender-plugin
by sixtysevenlf
DeepSeek Harness から Blender を TCP 経由でリアルタイム操作するプラグインです。ビューポート取得、任意角度レンダー、探索、レンダリング計測、安全な軽量化、ヘッドレス実行などに対応します。
dsh-free-search
by dddmuc
DeepSeek Harness 向け無料 Web 検索(DuckDuckGo、API キー不要)
dsh-bili-scroll
by c1overzz
Bilibiliの動画を定期的に探して字幕を確認し、日次レポートを作成します。必要に応じて、あなた宛てのコメントも投稿できます。
