dsh-claude-move 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,317 +1,285 @@
1
- # dsh-claude-move
2
-
3
- **Keep your Claude Code history when you move to DeepSeek Harness.** One install copies every Claude session, memory, skill and `CLAUDE.md` into DSH as resumable sessions — grouped in a dedicated `claudecode` workspace (one workspace per project is optional).
4
-
5
- `Copy-only` · `Seamlessly resumable` · `Per-project workspaces` · `Live sync with Claude Code`
6
-
7
- [![Test](https://github.com/PerryLink/dsh-claude-move/actions/workflows/test.yml/badge.svg)](https://github.com/PerryLink/dsh-claude-move/actions/workflows/test.yml)
8
- [![npm version](https://img.shields.io/npm/v/dsh-claude-move)](https://www.npmjs.com/package/dsh-claude-move)
9
- [![npm downloads](https://img.shields.io/npm/dm/dsh-claude-move)](https://www.npmjs.com/package/dsh-claude-move)
10
- [![Node ^22.19 || >=24](https://img.shields.io/static/v1?label=node&message=%5E22.19%20%7C%7C%20%3E%3D24&color=2f7d4f)](https://nodejs.org)
11
- [![License: Apache-2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](LICENSE)
12
- [![Topic: dsh](https://img.shields.io/badge/topic-dsh-3fb950)](https://github.com/topics/dsh)
13
- [![Topic: dsh-plugin](https://img.shields.io/badge/topic-dsh--plugin-3fb950)](https://github.com/topics/dsh-plugin)
14
- [![PRs welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/PerryLink/dsh-claude-move/issues)
15
-
16
- ![dsh-claude-move social card](assets/social-card.png)
17
-
18
- English | [中文](README.zh.md) | [Español](README.es.md) | [Português](README.pt.md) | [हिन्दी](README.hi.md)
19
-
20
- > Developer preview (0.1.0). Roadmap and design: [PLAN.md](PLAN.md) · change history: [CHANGELOG.md](CHANGELOG.md).
21
-
22
- ## ✨ Features
23
-
24
- - 🔍 **Auto-discovery** — locates the Claude data root (`$CLAUDE_CONFIG_DIR`, fallback `~/.claude`) and indexes every project/session (title, timestamps, message & tool-call counts), directory & git state, memories, skills, global `CLAUDE.md` and `settings.json` — with incremental caching that re-reads only changed files and parallel project scanning (`scanConcurrency`).
25
- - 📥 **Full-fidelity history import** — balanced, resumable DSH sessions (`turn/start → step/start → user/message → assistant/message → tool/call → tool/result → step/end → turn/end`), malformed lines reported with line numbers. Interrupted tool calls are repaired so every `tool_use` has exactly one result (no more permanent 400s on resume). Transcripts larger than `maxTranscriptBytes` are **stream-imported in chunks** (memory O(chunk)) instead of being rejected.
26
- - 🗂 **One `claudecode` workspace (default)** — every imported session lands in a dedicated "claudecode" workspace rooted at a fresh folder (`$DSH_HOME/claudecode` by default; the only thing the plugin ever creates). `workspaceMode: 'per-project'` restores one-workspace-per-project grouping.
27
- - 🔁 **Copy-only & incremental** — nothing on either side is moved, rewritten, or deleted. Re-running the import appends only the new turns to the same DSH session; `force: true` saves an extra full copy under a new id.
28
- - 🧠 **Personal context, always fresh** — memories injected as a live prompt section (current project first, `memoryScope`), Claude skills registered as real DSH skills (global **and project-level** `.claude/skills`, non-skill docs like `README.md` skipped), global + project `CLAUDE.md` injected early. Even with the `claudecode` workspace, the original project directory is remembered for memory/`CLAUDE.md` resolution.
29
- - ⚡ **Live sync with a running Claude Code** — keep using Claude Code side by side; each re-run brings only what changed.
30
- - 🖥 **Web panel & one-shot commands** — `/claude-import-all`, `/resume-claude`, `/claude-move-reset`, and a floating migration panel with progress, cancel, paging, "open session", automatic session-list refresh (no page reload on current shells) and zh/en texts.
31
- - 🪄 **Four-source migration wizard (0.2.1)** — one `/move` wizard plus `move_detect` / `move_preview` / `move_run` tools migrate Claude Code, Codex, OpenCode and Hermes: memories/instructions become managed `AGENTS.md` sections, skills become real DSH skills, slash commands become DSH commands, sessions become resumable DSH sessions — approval-gated, idempotent (`move.json`), conflicts shown as diffs instead of guessed.
32
- - 🛡 **Safety first** — source files strictly read-only, DSH logs append-only, secrets reported by position only, permission-class records counted but never imported.
33
-
34
- ## 🚀 Quick start
35
-
36
- ```sh
37
- # 1. Install
38
- dsh plugin --profile web add -w github:PerryLink/dsh-claude-move
39
- ```
40
-
41
- 2. In any DSH session, run one command:
42
-
43
- ```
44
- /claude-import-all # scan → copy every Claude session → report
45
- ```
46
-
47
- 3. Refresh the already-open Web page once (the panel has a 「刷新会话列表」 button) and click any imported session to continue. **No DSH restart is needed** — see [After importing](#-after-importing).
48
-
49
- Prefer fine-grained control?
50
-
51
- ```
52
- claude_scan # structured index of all projects/sessions
53
- import_claude { path: "~/.claude/projects" } # one project directory (recursive)
54
- import_claude { path: "all" } # everything
55
- ```
56
-
57
- ## 🪄 Four-source migration wizard
58
-
59
- ```text
60
- /move # one-shot wizard: detect → preview → execute → report (all four sources)
61
- move_detect # scan Claude Code / Codex / OpenCode / Hermes
62
- move_preview # per-item plan: new | unchanged | changed | conflict (with diff) | unsupported
63
- move_run # execute behind the approval gate; conflict resolution:
64
- # skip | overwrite | rename | merge (default skip — never guesses)
65
- ```
66
-
67
- - **Sources** — Claude Code (`~/.claude`), Codex (`~/.codex`), OpenCode (data + config roots), Hermes (skills/memory roots); each source has its own parser + mapper.
68
- - **Mapping** — memories/instructions → append-only managed sections in the DSH global `AGENTS.md` (one marked section per item); skills → real DSH skills (`SKILL.md` bundles copied verbatim, other formats converted); slash commands → registered DSH commands (their prompts are rebuilt from `move.json` after a restart); sessions → resumable DSH sessions (the same importers as phase 1).
69
- - **Idempotent** — every applied plan is recorded in `$DSH_HOME/claude-move/move.json` (`digest` / `targetDigest` / `appliedAt`); re-runs skip unchanged items and `force` re-applies them.
70
- - **Approval-gated** — a run that would write anything asks `ctx.approval` first; anything but `allowed-once` means zero writes.
71
-
72
- ## 🗂 What gets migrated
73
-
74
- ```
75
- ~/.claude (read-only)
76
- ├─ projects/*/*.jsonl ──→ resumable DSH sessions, grouped in one "claudecode" workspace (default)
77
- ├─ projects/*/memory/ ──→ live system-prompt memory section (re-read per request)
78
- ├─ skills/** ──→ real DSH skills
79
- └─ CLAUDE.md + settings ──→ early prompt section + config suggestions (never auto-applied)
80
- ```
81
-
82
- | In Claude Code | Lands in DSH as |
83
- | --- | --- |
84
- | Session transcripts (`projects/*/*.jsonl`) | Balanced, resumable DSH sessions — full-fidelity `user`/`assistant`/`tool`/`thinking` mapping with interrupted-tool-call repair — grouped into one **`claudecode` workspace** (default `$DSH_HOME/claudecode`) or one workspace per project (`workspaceMode: 'per-project'`) |
85
- | Memory files (`projects/*/memory/*.md`) | A live system-prompt context section, re-read on every request (`feedback > project > reference > user`) — the original project directory is remembered even inside the `claudecode` workspace |
86
- | Skills (`~/.claude/skills/**`) | Real DSH skills (kebab-case names, collision suffixes, max 30 by default; `README.md`/`MEMORY.md` and files without a description are skipped) |
87
- | `CLAUDE.md` (global + per-project) | An early prompt section; the project file wins |
88
- | `settings.json` | DSH configuration suggestions with an explicit unmappable-keys list |
89
- | Project state (directory, git branch & dirty count) | Shown in the scan index, the Web panel badges, and the `/resume-claude` handoff |
90
-
91
- ## 📦 Install
92
-
93
- ```sh
94
- # From GitHub
95
- dsh plugin --profile web add -w github:PerryLink/dsh-claude-move
96
-
97
- # Local checkout (development)
98
- dsh plugin --profile web add -w link:/path/to/dsh-claude-move
99
-
100
- # From a packed tarball
101
- dsh plugin --profile web add -w ./dsh-claude-move-0.1.0.tgz
102
- ```
103
-
104
- The package is pure ESM with no build step, so Git installs need no `prepare` script or `allowBuilds` entry. See the official [package & install guide](https://deepseek-harness.github.io/deepseek-harness/develop/basic/publish).
105
-
106
- ## 🛠 Usage
107
-
108
- Call the tools in any session with the plugin mounted:
109
-
110
- ```
111
- claude_scan # full scan (incremental cache)
112
- claude_scan { path: "~/.claude/projects/<slug>" } # partial scan
113
- claude_scan { refresh: true } # skip cache, rescan everything
114
- claude_scan { projectsLimit: 10, sessionsLimit: 5, fields: "brief" } # trim output
115
-
116
- import_claude { path: "~/.claude/projects/<slug>/<sessionId>.jsonl" } # one session
117
- import_claude { path: "~/.claude/projects" } # directory (recursive)
118
- import_claude { path: "all" } # everything
119
- # Re-run any time: unchanged files are skipped, grown transcripts append only the new turns.
120
- # Files over maxTranscriptBytes are stream-imported in chunks (no memory ceiling).
121
- import_claude { path: "...", force: true } # fresh full copy as import-<src>-<n> (previous copy kept)
122
- ```
123
-
124
- Commands (user-triggered, no model turn):
125
-
126
- ```
127
- /claude-import-all # one-shot: scan → import everything → report → inject into the current session
128
- /resume-claude latest # continue the most recent Claude session
129
- /resume-claude <sessionId> # by source session id or import-<src> id
130
- /resume-claude <keyword> # match titles; multiple matches are listed, never guessed
131
- /claude-move-reset # reset the plugin cache (bookmarks + import map); imported sessions are kept
132
- ```
133
-
134
- Web panel: a floating **🐳 Claude 迁移** button (bottom-right) opens the migration panel — project/session tree with status badges (not imported / imported / imported-with-new-turns / source missing / directory missing / git dirty), keyword filter, paged rendering, per-session "Import & continue" + "Open session" + "Refresh session list", batch import with a live progress bar and cancel, and a cache-reset button. Texts follow the browser language (zh/en). Served through the plugin's own `/api/claude-move/*` JSON routes registered on the public `ctx.webServer` seam.
135
-
136
- - **Scan** returns a structured JSON index: projects (slug/cwd/directory existence/git branch & dirty count), sessions (title/timestamps/message & tool-call counts/malformed lines), memories, skills, global CLAUDE.md and settings.json; each session carries `import.status` (`none`/`imported`/`source-missing`) plus `import.updatesPending` when the source has new unsynced turns. `settingsSuggestions` holds the DSH translation of settings.json plus the unmappable keys (see [Compliance](COMPLIANCE.md)).
137
- - **Import** maps user/assistant/tool/thinking messages with full fidelity; interrupted tool calls are repaired (exactly one result per `tool_use`), and the result is a balanced, resumable session attached to the `claudecode` workspace (default) or its per-project workspace. Batch results are per-file (`imported`/`appended`/`already-imported`/`skipped`/`failed`), malformed lines carry line numbers, suspected secrets are reported by position only (file:line:kind), and permission-class records are counted but never imported. Importing never deletes or rewrites anything: existing DSH sessions are untouched, previously imported copies are kept, and Claude's source files are never written to.
138
- - **Personal context takes effect automatically** (no import action needed):
139
- - Memories: `projects/*/memory/*.md` are injected as a dynamic context section, re-read per request (new memories apply immediately), ordered `feedback > project > reference > user`, capped at 8 KiB by default. With `memoryScope: current-project` (default) only the current session's project memories are injected (all projects fall back when the cwd has no matching project); `all` injects everything with the current project first. Inside the `claudecode` workspace the plugin resolves the original project from the recorded `sourceCwd`.
140
- - Skills: `~/.claude/skills/**/SKILL.md` (plus flat `*.md`) and the current project's `.claude/skills/**` become DSH skills (names normalized to kebab-case, collisions suffixed, max 30; `README.md`/`MEMORY.md` and description-less files are skipped so they can never break skill loading); DSH owns catalog injection and the `skill` tool.
141
- - Instructions: global `~/.claude/CLAUDE.md` plus the current session's `.claude/CLAUDE.md` are injected as an early prompt section (project wins; resolved via `sourceCwd` inside the `claudecode` workspace).
142
-
143
- ## ✅ After importing
144
-
145
- **You do not need to restart DSH.** Imports land durably through the public `sessionPersistence` service the moment they complete:
146
-
147
- - The server-side lists (`session.list` / `workspace.list` RPCs, the CLI, any new page load) show the imported sessions under the **`claudecode` workspace** (one per project with `workspaceMode: 'per-project'`) immediately.
148
- - The panel refreshes the already-open page's session list itself (via the shell's `sessions`/`workspaces` client services on current shells) and offers an **Open session** button per imported session. On older shells without those services it falls back to the 「刷新会话列表」 button / a page reload — imports write cold sessions directly through the persistence service, so they do not emit the live `host/session-added` frame; workspace groups, however, do update live (`host/workspace-changed`).
149
- - Imported sessions can be opened, read, and resumed right away — `/resume-claude`, or click the session in the list. The handoff states the original project directory. Re-running the import at any time syncs only the new turns into the same sessions.
150
-
151
- ## ⚙️ Configuration
152
-
153
- All optional, overridable in `cordis.yml`:
154
-
155
- ```yaml
156
- - id: claude-move
157
- name: dsh-claude-move
158
- config:
159
- claudeHome: null # default: $CLAUDE_CONFIG_DIR or ~/.claude
160
- workspaceMode: claudecode # 'claudecode' (default: one dedicated workspace for all imports) | 'per-project' (one workspace per source cwd)
161
- claudecodeDir: null # claudecode workspace folder; default $DSH_HOME/claudecode (the only folder the plugin ever creates)
162
- scanGit: true # git probe level: true (full) | 'branch' (zero git calls) | false
163
- gitTimeoutMs: 5000 # git subprocess timeout
164
- scanConcurrency: 8 # parallel project scan cap
165
- maxTranscriptBytes: 67108864
166
- excludeProjects: [] # slug substrings to skip, e.g. ['demo-']
167
- enableMemory: true
168
- memoryMaxBytes: 8192
169
- memoryScope: current-project # 'current-project' (only the current cwd's project) | 'all' (current first)
170
- enableSkills: true
171
- maxSkills: 30
172
- extraSkillDirs: []
173
- enableInstructions: true
174
- resumeMaxChars: 2048 # handoff summary char cap
175
- resumeMode: inject # 'inject' (handoff summary) | 'agents' (ctx.agents.resume)
176
- enableWebPanel: true # register the /api/claude-move/* panel routes
177
- importConcurrency: 4 # parallel read+convert per batch (persisting stays sequential)
178
- # Four-source wizard (0.2.1+):
179
- requireApproval: true # wizard writes ask ctx.approval (allowed-once only)
180
- codexHome: null # default: $CODEX_HOME or ~/.codex
181
- opencodeDataHome: null # default: the platform XDG data dir/opencode
182
- opencodeConfigHome: null # default: the platform XDG config dir/opencode
183
- hermesHome: null # default: $HERMES_HOME or ~/.hermes
184
- skillsDir: null # wizard skill target; default $DSH_HOME/skills
185
- agentsMdPath: null # wizard memory/instruction target; default $DSH_HOME/AGENTS.md
186
- moveWorkspaceMode: per-source # 'per-source' | 'single' workspace grouping for wizard imports
187
- ```
188
-
189
- ## 🗑 Uninstall
190
-
191
- Remove the `claude-move` row from the profile's bundles and restart `dsh`. Imported sessions stay in DSH's data directory; the plugin only writes its cache (`$DSH_HOME/claude-move/`) and the `claudecode` workspace folder, and never touches Claude source data.
192
-
193
- ## 🧭 Compatibility
194
-
195
- - Targets `dsh 0.1.0-rc.6` (web profile); peer dependencies pinned to `0.1.0-rc.6`. Node `^22.19 || >=24`.
196
- - Last verified **2026-08-13** on Windows (Node 22) against `@deepseek-ai/dsh@0.1.0-rc.6`: fresh tarball install, real scan (40 projects / 2387 sessions), real batch import 13/13 with idempotent re-import 13/13, workspace attach and persistence artifacts confirmed. macOS/Linux now covered by the CI matrix.
197
- - Verified **2026-08-14** against the current `deepseek-harness` checkout (web profile, JSONL+zstd session backend, real workspace registry) in an isolated home: full web boot with the plugin mounted, scan + import-all through the panel routes, `claudecode` workspace creation with sessions attached, incremental append to an existing imported session (contiguous seq, loads cleanly), restart-safe re-import, and untouched pre-existing DSH sessions throughout. No session is ever archived, deleted, or rewritten.
198
-
199
- ### Compatibility matrix (public seams only)
200
-
201
- | Surface | Used | Fallback when absent |
202
- | --- | --- | --- |
203
- | Host services (`tools` / `sessionPersistence` / `workspaceRegistry` / `commands` / `systemPrompt` / `skills` / `webServer`) | required where listed | optional services register reactively via `internal/service`; missing `fs` fails loud |
204
- | `sessionPersistence.listSnapshots` / `readFrom` / `streamText`-capable `fs` / `ctx.jobs` / `ctx.agents.resume` | feature-detected | `list()` / whole-file read with loud rejection / own job map / handoff inject |
205
- | Client shell services (`sessions.refresh/open`, `workspaces.refresh`) | feature-detected at panel apply | full-page reload |
206
- | Newer platform capabilities are never hard requirements — the plugin stays bootable on rc.6. | | |
207
-
208
- ## 🔐 Permissions & data
209
-
210
- - **Reads** `~/.claude` (transcripts, memories, skills, CLAUDE.md, settings.json) — strictly read-only — and the project directories it imports into (workspace attach in `per-project` mode).
211
- - **Writes** DSH session logs via the public `sessionPersistence` service — create + append only, never deletes, rewrites, or archives existing sessions — workspace-registry records, its own cache under `$DSH_HOME/claude-move/` (scan bookmarks + import map), and the `claudecode` workspace folder (`$DSH_HOME/claudecode` by default; a plain `mkdir`, never any deletion).
212
- - **Never** modifies Claude source files, touches other applications' data, or accesses the network.
213
- - **No credentials** are read or transmitted; suspected secrets in transcripts are reported by position only.
214
-
215
- ## 🛡 Security boundaries
216
-
217
- - Source files are strictly read-only; DSH session logs are append-only (`create` + `append` only).
218
- - External transcripts are untrusted input: nothing in them is executed; system/developer/thinking content never enters the resume handoff.
219
- - No changes to the DSH engine, official UI packages, or apiproxy — only public services (`sessionPersistence` / `workspaceRegistry` / `tools` / `commands` / `systemPrompt` / `skills` / `webServer`).
220
- - Suspected secrets are reported by location only (never their content); `permission`/`permission-mode`/`queue-operation` records are counted, not imported.
221
-
222
- ## 🩺 Troubleshooting
223
-
224
- - Row not effective: `dsh --profile <p> --dump-config` should print `# == dsh-claude-move`; re-run `dsh plugin --profile <p> add -w ...`.
225
- - Web boots but hangs silently: new profiles initialized by `dsh plugin add` contain only `dsh-base` — add `@deepseek-ai/dsh-web-app` to `dsh.profile.bundles`. Installing into the existing `web` profile needs nothing.
226
- - Panel routes 404: they are served only when `enableWebPanel: true` and a web server is composed; check the boot log for FAILED fibers.
227
- - Import fails with "transcript 过大": raise `maxTranscriptBytes` or import that file individually.
228
- - Import succeeded but the sidebar shows no new session: the page was already open — click the panel's 「刷新会话列表」 (or reload the page) once. No DSH restart is ever needed.
229
- - Logs: boot failures print to the `dsh` console; the plugin logs `[claude-move]`-prefixed errors for workspace/import-map issues.
230
-
231
- ## 📚 Docs
232
-
233
- - [PLAN.md](PLAN.md) — research conclusions and the implementation plan.
234
- - [ARCHITECTURE.md](ARCHITECTURE.md) — architecture diagram and the full data-mapping table.
235
- - [COMPLIANCE.md](COMPLIANCE.md) — clause-by-clause audit against the official plugin constraints (deepseek-harness repo & docs, [deepseek.com/harness](https://www.deepseek.com/harness/), the [developer docs](https://deepseek-harness.github.io/deepseek-harness/develop/basic/), [Cordis](https://github.com/cordiverse/cordis), and the [Cordis paper](https://github.com/cordiverse/paper)).
236
- - [OPTIMIZATION.md](OPTIMIZATION.md) — measured baselines and ranked optimization candidates.
237
- - [RELEASE.md](RELEASE.md) — release checklist with acceptance evidence.
238
- - [CHANGELOG.md](CHANGELOG.md) — what changed per version.
239
-
240
- ## 🙏 Attribution (open-source components)
241
-
242
- This project is licensed under the Apache License 2.0; the following MIT-licensed components retain their own licenses (full text in [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md)):
243
-
244
- - Conversion core vendored from [Nwflower/dsh-chat-import](https://github.com/Nwflower/dsh-chat-import) (MIT).
245
- - Discovery conventions & safety model from [Demogorgon314/dsh-resume-plugin](https://github.com/Demogorgon314/dsh-resume-plugin) (MIT; its `session_reader.py` has an Apache-2.0 upstream — see [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md)).
246
- - Memory/skills injection & frontmatter parsing patterns from [YYTbit/dsh-plugin-claude-bridge](https://github.com/YYTbit/dsh-plugin-claude-bridge) (MIT).
247
-
248
- ## 🧑‍💻 Development
249
-
250
- ```sh
251
- npm install # peer deps: @deepseek-ai/cordis, @deepseek-ai/dsh-tools@0.1.0-rc.6, @deepseek-ai/schemastery
252
- npm test # node --test: convert (vendored + extended), discovery, import/report, context, settings
253
- ```
254
-
255
- CI runs the full suite on Node 22 across Linux/macOS/Windows via GitHub Actions ([test.yml](.github/workflows/test.yml)).
256
-
257
- ## 🧠 Model Experience
258
-
259
- - The model-facing surface is the two tools' descriptions/schemas and their outputs: `claude_scan` returns the structured index, `import_claude` returns per-file summaries with positions of warnings. Tool results are themselves logged `tool/result` events, so everything is reconstructable.
260
- - No hidden model-facing text; memory/CLAUDE.md sections are registered on `ctx.systemPrompt` (prompt assembly, rebuildable from the session log).
261
-
262
- ## ⚠️ Known Limitations
263
-
264
- - Titles come from `custom-title`/`ai-title`/first prompt; Claude `summary` records are not used as titles.
265
- - `thinking` blocks are kept in the imported log as `reasoning` content, but never enter the resume handoff.
266
- - Interrupted tool calls are repaired with a synthetic error result (never dropped), so sessions with mid-turn interruptions stay resumable — the repair is reported in the import result (`repaired.synthesized`).
267
- - Permission-class records are counted, not imported; DSH permission-preset suggestions are generated in reports.
268
- - Claude `summary` records (context compaction) are reported but not mapped to DSH compaction nodes — synthesizing a valid compaction transaction would fabricate its seq range and checkpoint message, risking the platform invariants (see OPTIMIZATION.md). Full history is imported as original turns.
269
- - On hosts without a streaming `fs.streamText` surface, transcripts larger than `maxTranscriptBytes` fail loudly instead of partial import; the chunked streaming path is used automatically wherever the surface exists.
270
- - In `workspaceMode: 'per-project'`, sessions whose source directory was deleted still import, but workspace attach fails (left ungrouped; `workspace.attached: false` plus a `reason` in the report). The default `claudecode` workspace does not depend on the source directory, so such sessions attach normally there.
271
- - Interrupted batch imports can be safely re-run (idempotent, append-only): finished files are skipped, grown files append only the new turns.
272
- - If a transcript was truncated or reset in place (fewer turns than the recorded import), re-import skips it and reports `sourceShrunk`; use `force: true` for a fresh full copy.
273
- - The Web panel is a zero-build floating panel driven by the plugin's own JSON routes; it does not use the shell's internal UI slot system (kept independent of undocumented rc.6 internals).
274
- - For streamed appends, the per-run `messages`/`toolCalls` counts cover only the newly appended events (the stored prefix is not re-read); `turns` stays the full count.
275
-
276
- ## 🤝 Contributing & feedback
277
-
278
- Issues and pull requests are welcome — please use the provided templates ([bug report](.github/ISSUE_TEMPLATE/bug-report.yml), [feature request](.github/ISSUE_TEMPLATE/feature-request.yml)). Questions and discussion live in the repo's [GitHub Discussions](https://github.com/PerryLink/dsh-claude-move/discussions). Report security issues privately via GitHub Security Advisories (repo Settings → Security; see [SECURITY.md](SECURITY.md)).
279
-
280
- ## 💛 Contributors
281
-
282
- Thanks to everyone who helped make this plugin better:
283
-
284
- - [OLDnana1](https://github.com/OLDnana1) — root-cause analysis of the interrupted tool-call corruption that made imported sessions permanently return HTTP 400 on resume ([#1](https://github.com/PerryLink/dsh-claude-move/issues/1)); fixed in v0.2.0.
285
- - [GooodWei](https://github.com/GooodWei) — identified `README.md` (and any description-less `.md`) being misregistered as a skill, which broke DSH's whole skill load ([#1](https://github.com/PerryLink/dsh-claude-move/issues/1)); fixed in v0.2.0.
286
- - Upstream MIT projects whose code and conventions this plugin builds on are credited in [Attribution](#-attribution-open-source-components) and [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md).
287
-
288
- ## 🔗 Related links
289
-
290
- - DeepSeek Harness: [repo](https://github.com/deepseek-ai/deepseek-harness) · [site](https://www.deepseek.com/harness/) · [developer docs](https://deepseek-harness.github.io/deepseek-harness/develop/basic/)
291
- - Plugin ecosystem: [`dsh` topic](https://github.com/topics/dsh) · [`dsh-plugin` topic](https://github.com/topics/dsh-plugin) · [Discord](https://discord.gg/Ycq5dCaS4)
292
-
293
- ## 📄 License
294
-
295
- Apache License 2.0 — see [LICENSE](LICENSE) and [NOTICE](NOTICE). Third-party notices (including the MIT text for the MIT-licensed components) in [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md).
296
-
297
- ## PerryLink DSH Plugin Family
298
-
299
- This project is one of the [15 DeepSeek Harness plugins](https://github.com/PerryLink) maintained by [PerryLink](https://github.com/PerryLink). If this one helps you, the others likely will too:
300
-
301
- | Plugin | One-liner |
302
- |---|---|
303
- | [dsh-mcp-panel](https://github.com/PerryLink/dsh-mcp-panel) | Read-only MCP runtime panel: /mcp command + Settings tab with status, tools and errors |
304
- | [dsh-doublecheck](https://github.com/PerryLink/dsh-doublecheck) | Engineering-discipline guard: requirements grill, test gates, adversary review |
305
- | [dsh-background-agents](https://github.com/PerryLink/dsh-background-agents) | Durable background child agents with a Web UI sidebar, messaging and interrupt |
306
- | [dsh-lsp-actions](https://github.com/PerryLink/dsh-lsp-actions) | LSP diagnostics, formatting, completion, code actions and rename over language servers |
307
- | [dsh-output-styles](https://github.com/PerryLink/dsh-output-styles) | Claude Code outputStyles-equivalent runtime style switching |
308
- | [dsh-checkpoint-rewind](https://github.com/PerryLink/dsh-checkpoint-rewind) | Claude Code /rewind-equivalent: snapshots, session forks, one-shot restore |
309
- | [dsh-permission-rules](https://github.com/PerryLink/dsh-permission-rules) | Claude Code-style declarative allow/deny/ask permission rules with audit |
310
- | [dsh-auto-review](https://github.com/PerryLink/dsh-auto-review) | Second-model auto-review on the approval chain, fail-closed by default |
311
- | [dsh-memento](https://github.com/PerryLink/dsh-memento) | Approval-gated cross-session memory: ctx.memory seam + SQLite + memory tool |
312
- | [dsh-skill-pack-security](https://github.com/PerryLink/dsh-skill-pack-security) | Security-audit skill pack: secret scan, dependency and supply-chain review |
313
- | [dsh-session-pin](https://github.com/PerryLink/dsh-session-pin) | Pin sessions in the Web sidebar with durable ordering |
314
- | [dsh-composer-history](https://github.com/PerryLink/dsh-composer-history) | Terminal-style input history for the web composer: arrows, Ctrl+R search |
315
- | [dsh-github](https://github.com/PerryLink/dsh-github) | GitHub PR/issues integration for DSH, every write gated by approval |
316
- | [dsh-plugin-guide](https://github.com/PerryLink/dsh-plugin-guide) | Plugin-development knowledge base as an on-demand agent skill |
317
- | **[dsh-claude-move](https://github.com/PerryLink/dsh-claude-move)** | Migrate Claude Code sessions, memory, skills and CLAUDE.md into DSH |
1
+ <div align="center">
2
+
3
+ # 🚚 dsh-claude-move
4
+
5
+ **Migrate Claude Code, Codex, OpenCode and Hermes into DeepSeek Harness — copy sessions, memories, skills, instructions and slash commands as resumable DSH sessions, copy-only and approval-gated.**
6
+
7
+ *Keep your Claude Code history when you move: one install, resumable sessions, live sync with a running Claude Code, and a four-source migration wizard.*
8
+
9
+ [![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](LICENSE)
10
+ [![DSH plugin](https://img.shields.io/badge/dsh-plugin-✅-green)](https://github.com/topics/dsh-plugin)
11
+ [![Node](https://img.shields.io/badge/node-%5E22.19%20%7C%7C%20%3E%3D24-brightgreen.svg)](#)
12
+ [![CI](https://img.shields.io/github/actions/workflow/status/PerryLink/dsh-claude-move/test.yml?branch=master&label=CI)](https://github.com/PerryLink/dsh-claude-move/actions)
13
+ [![Version](https://img.shields.io/github/v/tag/PerryLink/dsh-claude-move?label=version)](https://github.com/PerryLink/dsh-claude-move/releases)
14
+ [![npm version](https://img.shields.io/npm/v/dsh-claude-move)](https://www.npmjs.com/package/dsh-claude-move)
15
+ [![npm downloads](https://img.shields.io/npm/dm/dsh-claude-move)](https://www.npmjs.com/package/dsh-claude-move)
16
+
17
+ [English](README.md) · [简体中文](README.zh.md) · [Español](README.es.md) · [Português](README.pt.md) · [हिन्दी](README.hi.md)
18
+
19
+ </div>
20
+
21
+ ---
22
+
23
+ ## Compatibility
24
+
25
+ - Targets `dsh 0.1.0-rc.6` (web profile); peer dependencies pinned to `0.1.0-rc.6`. Node `^22.19 || >=24`.
26
+ - Last verified against a fresh tarball install: real scan, real batch import (idempotent re-import), workspace attach and persistence artifacts confirmed; macOS/Linux covered by the CI matrix.
27
+
28
+ ### Compatibility matrix (public seams only)
29
+
30
+ | Surface | Used | Fallback when absent |
31
+ |---|---|---|
32
+ | Host services (`tools` / `sessionPersistence` / `workspaceRegistry` / `commands` / `systemPrompt` / `skills` / `webServer`) | required where listed | optional services register reactively; missing `fs` fails loud |
33
+ | `sessionPersistence.listSnapshots` / `readFrom` / `streamText`-capable `fs` / `ctx.jobs` / `ctx.agents.resume` | feature-detected | `list()` / whole-file read with loud rejection / own job map / handoff inject |
34
+ | Client shell services (`sessions.refresh/open`, `workspaces.refresh`) | feature-detected at panel apply | full-page reload |
35
+ | Newer platform capabilities are never hard requirements — the plugin stays bootable on rc.6. | | |
36
+
37
+ ## What you get
38
+
39
+ 1. **Auto-discovery** — `claude_scan` locates the Claude data root (`$CLAUDE_CONFIG_DIR`, fallback `~/.claude`) and indexes every project/session, memory, skill, global `CLAUDE.md` and `settings.json`, with incremental caching and parallel scanning (`scanConcurrency`).
40
+ 2. **Full-fidelity import** — `import_claude` turns transcripts into balanced, resumable DSH sessions (`turn/start → step/start → user/message → assistant/message → tool/call → tool/result → step/end → turn/end`), repairs interrupted tool calls, and stream-imports transcripts larger than `maxTranscriptBytes` in chunks.
41
+ 3. **One `claudecode` workspace** — every imported session lands in a dedicated workspace (default `$DSH_HOME/claudecode`); `workspaceMode: 'per-project'` restores one-workspace-per-project grouping.
42
+ 4. **Copy-only & incremental** — nothing on either side is moved, rewritten, or deleted; re-running appends only the new turns (`force: true` saves an extra full copy under a new id).
43
+ 5. **Personal context, always fresh** — memories injected as a live prompt section, Claude skills registered as real DSH skills (global + project-level), global + project `CLAUDE.md` injected early.
44
+ 6. **Four-source migration wizard** — `/move` plus `move_detect` / `move_preview` / `move_run` migrate Claude Code, Codex, OpenCode and Hermes, approval-gated and idempotent (`move.json`).
45
+ 7. **Web panel & commands** — `/claude-import-all`, `/resume-claude`, `/claude-move-reset`, and a floating migration panel.
46
+
47
+ ## Four-source migration wizard
48
+
49
+ ```text
50
+ /move # one-shot wizard: detect → preview → execute → report (all four sources)
51
+ move_detect # scan Claude Code / Codex / OpenCode / Hermes
52
+ move_preview # per-item plan: new | unchanged | changed | conflict (with diff) | unsupported
53
+ move_run # execute behind the approval gate; conflict resolution:
54
+ # skip | overwrite | rename | merge (default skip — never guesses)
55
+ ```
56
+
57
+ - **Sources** — Claude Code (`~/.claude`), Codex (`~/.codex`), OpenCode (data + config roots), Hermes (skills/memory roots); each source has its own parser + mapper.
58
+ - **Mapping** — memories/instructions → append-only managed sections in the DSH global `AGENTS.md` (one marked section per item); skills → real DSH skills (`SKILL.md` bundles copied verbatim, other formats converted); slash commands → registered DSH commands (rebuilt from `move.json` after a restart); sessions → resumable DSH sessions (the same importers as phase 1).
59
+ - **Idempotent** — every applied plan is recorded in `$DSH_HOME/claude-move/move.json` (`digest` / `targetDigest` / `appliedAt`); re-runs skip unchanged items and `force` re-applies them.
60
+ - **Approval-gated** — a run that would write anything asks `ctx.approval` first; anything but `allowed-once` means zero writes.
61
+
62
+ ## Quick start
63
+
64
+ ```sh
65
+ # 1. install the bundle into your profile
66
+ dsh plugin --profile web add "github:PerryLink/dsh-claude-move#master"
67
+
68
+ # or from npm (published releases)
69
+ dsh plugin --profile web add dsh-claude-move
70
+
71
+ # 2. restart and verify the row
72
+ dsh --profile web --dump-config | grep -A4 'id: claude-move'
73
+ ```
74
+
75
+ Then, in any DSH session, run one command:
76
+
77
+ ```sh
78
+ /claude-import-all # scan → copy every Claude session → report
79
+ ```
80
+
81
+ No DSH restart is needed after importing — refresh the open Web page once and click any imported session to continue.
82
+
83
+ ## Install & uninstall
84
+
85
+ - **git channel** (latest `master`): `dsh plugin --profile web add "github:PerryLink/dsh-claude-move#master"` — pure ESM, no `prepare` or `allowBuilds` step.
86
+ - **npm channel** (published releases): `dsh plugin --profile web add dsh-claude-move`.
87
+ - **tarball channel**: `npm pack` in this repo, then `dsh plugin --profile web add ./dsh-claude-move-<version>.tgz`.
88
+ - **uninstall**: remove the `claude-move` row from the profile's bundles and restart `dsh`. Imported sessions stay in DSH's data directory; the plugin only writes its cache (`$DSH_HOME/claude-move/`) and the `claudecode` workspace folder, and never touches Claude source data.
89
+
90
+ ## What gets migrated
91
+
92
+ ```
93
+ ~/.claude (read-only)
94
+ ├─ projects/*/*.jsonl ──→ resumable DSH sessions, grouped in one "claudecode" workspace (default)
95
+ ├─ projects/*/memory/ ──→ live system-prompt memory section (re-read per request)
96
+ ├─ skills/** ──→ real DSH skills
97
+ └─ CLAUDE.md + settings ──→ early prompt section + config suggestions (never auto-applied)
98
+ ```
99
+
100
+ | In Claude Code | Lands in DSH as |
101
+ |---|---|
102
+ | Session transcripts (`projects/*/*.jsonl`) | Balanced, resumable DSH sessions — full-fidelity `user`/`assistant`/`tool`/`thinking` mapping with interrupted-tool-call repair — grouped into one **`claudecode`** workspace or one per project |
103
+ | Memory files (`projects/*/memory/*.md`) | A live system-prompt context section, re-read on every request (`feedback > project > reference > user`) |
104
+ | Skills (`~/.claude/skills/**`) | Real DSH skills (kebab-case names, collision suffixes, max 30 by default; `README.md`/`MEMORY.md` and files without a description are skipped) |
105
+ | `CLAUDE.md` (global + per-project) | An early prompt section; the project file wins |
106
+ | `settings.json` | DSH configuration suggestions with an explicit unmappable-keys list |
107
+ | Project state (directory, git branch & dirty count) | Shown in the scan index, the Web panel badges, and the `/resume-claude` handoff |
108
+
109
+ ## Usage
110
+
111
+ Call the tools in any session with the plugin mounted:
112
+
113
+ ```
114
+ claude_scan # full scan (incremental cache)
115
+ claude_scan { path: "~/.claude/projects/<slug>" } # partial scan
116
+ claude_scan { refresh: true } # skip cache, rescan everything
117
+ claude_scan { projectsLimit: 10, sessionsLimit: 5, fields: "brief" } # trim output
118
+
119
+ import_claude { path: "~/.claude/projects/<slug>/<sessionId>.jsonl" } # one session
120
+ import_claude { path: "~/.claude/projects" } # directory (recursive)
121
+ import_claude { path: "all" } # everything
122
+ # Re-run any time: unchanged files are skipped, grown transcripts append only the new turns.
123
+ # Files over maxTranscriptBytes are stream-imported in chunks (no memory ceiling).
124
+ import_claude { path: "...", force: true } # fresh full copy (previous copy kept)
125
+ ```
126
+
127
+ Commands (user-triggered, no model turn):
128
+
129
+ ```
130
+ /claude-import-all # one-shot: scan → import everything → report → inject into the current session
131
+ /resume-claude latest # continue the most recent Claude session
132
+ /resume-claude <sessionId> # by source session id or import-<src> id
133
+ /resume-claude <keyword> # match titles; multiple matches are listed, never guessed
134
+ /claude-move-reset # reset the plugin cache (bookmarks + import map); imported sessions are kept
135
+ ```
136
+
137
+ Web panel: a floating migration panel with the project/session tree, status badges (not imported / imported / imported-with-new-turns / source missing / directory missing / git dirty), keyword filter, paged rendering, per-session "Import & continue" + "Open session" + "Refresh session list", batch import with a live progress bar and cancel, and a cache-reset button. Texts follow the browser language (zh/en). Served through the plugin's own `/api/claude-move/*` JSON routes on the public `ctx.webServer` seam.
138
+
139
+ ## After importing
140
+
141
+ **You do not need to restart DSH.** Imports land durably through the public `sessionPersistence` service the moment they complete:
142
+
143
+ - The server-side lists (`session.list` / `workspace.list` RPCs, the CLI, any new page load) show the imported sessions under the **`claudecode` workspace** immediately.
144
+ - The panel refreshes the already-open page's session list itself and offers an **Open session** button per imported session.
145
+ - Imported sessions can be opened, read, and resumed right away — `/resume-claude`, or click the session in the list. Re-running the import at any time syncs only the new turns into the same sessions.
146
+
147
+ ## Configuration
148
+
149
+ All optional, overridable in cordis.yml.
150
+
151
+ | Key | Default | Meaning |
152
+ |---|---|---|
153
+ | `claudeHome` | `$CLAUDE_CONFIG_DIR` or `~/.claude` | Claude data root |
154
+ | `workspaceMode` | `claudecode` | `claudecode` (one dedicated workspace) · `per-project` (one workspace per source cwd) |
155
+ | `claudecodeDir` | `$DSH_HOME/claudecode` | The `claudecode` workspace folder (the only folder the plugin ever creates) |
156
+ | `scanGit` | `true` | Git probe level: `true` (full) · `'branch'` (zero git calls) · `false` |
157
+ | `gitTimeoutMs` | `5000` | Git subprocess timeout |
158
+ | `scanConcurrency` | `8` | Parallel project scan cap |
159
+ | `maxTranscriptBytes` | `67108864` | Stream-import threshold (chunked above) |
160
+ | `excludeProjects` | `[]` | Slug substrings to skip |
161
+ | `enableMemory` | `true` | Inject memories as a live prompt section |
162
+ | `memoryMaxBytes` | `8192` | Memory section cap |
163
+ | `memoryScope` | `current-project` | `current-project` · `all` (current first) |
164
+ | `enableSkills` | `true` | Register Claude skills as DSH skills |
165
+ | `maxSkills` | `30` | Skill count cap |
166
+ | `extraSkillDirs` | `[]` | Extra skill directories |
167
+ | `enableInstructions` | `true` | Inject global + project `CLAUDE.md` |
168
+ | `resumeMaxChars` | `2048` | Handoff summary char cap |
169
+ | `resumeMode` | `inject` | `inject` (handoff summary) · `agents` (ctx.agents.resume) |
170
+ | `enableWebPanel` | `true` | Register the `/api/claude-move/*` panel routes |
171
+ | `importConcurrency` | `4` | Parallel read+convert per batch |
172
+ | `requireApproval` | `true` | Wizard writes ask `ctx.approval` (allowed-once only) |
173
+ | `codexHome` | `$CODEX_HOME` or `~/.codex` | Codex data root |
174
+ | `opencodeDataHome` | platform XDG data dir/opencode | OpenCode data root |
175
+ | `opencodeConfigHome` | platform XDG config dir/opencode | OpenCode config root |
176
+ | `hermesHome` | `$HERMES_HOME` or `~/.hermes` | Hermes data root |
177
+ | `skillsDir` | `$DSH_HOME/skills` | Wizard skill target |
178
+ | `agentsMdPath` | `$DSH_HOME/AGENTS.md` | Wizard memory/instruction target |
179
+ | `moveWorkspaceMode` | `per-source` | `per-source` · `single` workspace grouping for wizard imports |
180
+
181
+ ## Tools & surfaces
182
+
183
+ | Surface | Kind | Notes |
184
+ |---|---|---|
185
+ | `claude_scan` | tool | Structured index of projects/sessions/memories/skills/settings |
186
+ | `import_claude` | tool | Import one session, a directory, or `all` (incremental, `force` for a fresh copy) |
187
+ | `move_detect` / `move_preview` / `move_run` | tools | Four-source wizard: scan, per-item plan with diffs, execute behind approval |
188
+ | `/claude-import-all` | command | Scan → import everything → report |
189
+ | `/resume-claude` | command | Continue a Claude session (latest, id, or keyword) |
190
+ | `/claude-move-reset` | command | Reset the plugin cache (imported sessions kept) |
191
+ | `/move` | command | One-shot four-source wizard |
192
+ | Web migration panel | client | Floating panel with progress, cancel, paging, open session |
193
+
194
+ ## Permissions & data
195
+
196
+ - **Permissions**: the workshop manifest declares `filesystem:read` and `filesystem:write`.
197
+ - **Reads** `~/.claude` (transcripts, memories, skills, `CLAUDE.md`, `settings.json`) — strictly read-only — and the project directories it imports into.
198
+ - **Writes** DSH session logs via the public `sessionPersistence` service (create + append only, never delete/rewrite/archive), workspace-registry records, its cache under `$DSH_HOME/claude-move/`, and the `claudecode` workspace folder.
199
+ - **Never** modifies Claude source files, touches other applications' data, or accesses the network. **No credentials** are read or transmitted.
200
+
201
+ ## Security boundaries
202
+
203
+ - **Source files are read-only; DSH logs are append-only** (`create` + `append` only).
204
+ - **External transcripts are untrusted input** — nothing in them is executed; system/developer/thinking content never enters the resume handoff.
205
+ - **Public services only** — `sessionPersistence` / `workspaceRegistry` / `tools` / `commands` / `systemPrompt` / `skills` / `webServer`; no engine or UI changes.
206
+ - **Secrets reported by position only** (file:line:kind); `permission`/`permission-mode`/`queue-operation` records are counted, not imported.
207
+ - **Wizard writes are approval-gated** — anything but `allowed-once` means zero writes.
208
+
209
+ ## Known limitations
210
+
211
+ - Titles come from `custom-title`/`ai-title`/first prompt; Claude `summary` records are reported but not mapped to DSH compaction nodes (synthesizing a valid compaction transaction would fabricate its seq range and checkpoint message).
212
+ - `thinking` blocks are kept as `reasoning` content but never enter the resume handoff.
213
+ - Interrupted tool calls are repaired with a synthetic error result (never dropped), reported as `repaired.synthesized`.
214
+ - Permission-class records are counted, not imported; DSH permission-preset suggestions are generated in reports.
215
+ - On hosts without a streaming `fs.streamText` surface, transcripts larger than `maxTranscriptBytes` fail loudly instead of partial import.
216
+ - In `workspaceMode: 'per-project'`, sessions whose source directory was deleted still import, but workspace attach fails (left ungrouped; `workspace.attached: false` plus a `reason`). The default `claudecode` workspace does not depend on the source directory.
217
+ - If a transcript was truncated or reset in place (fewer turns than the recorded import), re-import skips it and reports `sourceShrunk`; use `force: true` for a fresh full copy.
218
+ - The Web panel is a zero-build floating panel driven by the plugin's own JSON routes; it does not use the shell's internal UI slot system.
219
+
220
+ ## Model Experience
221
+
222
+ - The model-facing surface is the two tools' descriptions/schemas and their outputs: `claude_scan` returns the structured index, `import_claude` returns per-file summaries with positions of warnings. Tool results are themselves logged `tool/result` events, so everything is reconstructable.
223
+ - No hidden model-facing text; memory/`CLAUDE.md` sections are registered on `ctx.systemPrompt` (prompt assembly, rebuildable from the session log).
224
+
225
+ ## Troubleshooting
226
+
227
+ - Row not effective: `dsh --profile <p> --dump-config` should print `# == dsh-claude-move`; re-run `dsh plugin --profile <p> add ...`.
228
+ - Web boots but hangs silently: new profiles initialized by `dsh plugin add` contain only `dsh-base` — add `@deepseek-ai/dsh-web-app` to `dsh.profile.bundles`. Installing into the existing `web` profile needs nothing.
229
+ - Panel routes 404: they are served only when `enableWebPanel: true` and a web server is composed; check the boot log for FAILED fibers.
230
+ - Import fails with "transcript 过大": raise `maxTranscriptBytes` or import that file individually.
231
+ - Import succeeded but the sidebar shows no new session: the page was already open — click the panel's refresh button (or reload the page) once. No DSH restart is ever needed.
232
+ - Logs: boot failures print to the `dsh` console; the plugin logs `[claude-move]`-prefixed errors for workspace/import-map issues.
233
+
234
+ ## Attribution (open-source components)
235
+
236
+ This project is licensed under the Apache License 2.0; the following MIT-licensed components retain their own licenses (full text in [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md)):
237
+
238
+ - Conversion core vendored from [Nwflower/dsh-chat-import](https://github.com/Nwflower/dsh-chat-import) (MIT).
239
+ - Discovery conventions & safety model from [Demogorgon314/dsh-resume-plugin](https://github.com/Demogorgon314/dsh-resume-plugin) (MIT).
240
+ - Memory/skills injection & frontmatter parsing patterns from [YYTbit/dsh-plugin-claude-bridge](https://github.com/YYTbit/dsh-plugin-claude-bridge) (MIT).
241
+
242
+ ## Development
243
+
244
+ ```sh
245
+ npm install # peer deps: @deepseek-ai/dsh-tools@0.1.0-rc.6, @deepseek-ai/cordis, schemastery
246
+ npm test # node --test test/*.test.mjs
247
+ ```
248
+
249
+ CI runs the full suite on Node 22 across Linux/macOS/Windows via GitHub Actions ([test.yml](.github/workflows/test.yml)).
250
+
251
+ ## Topics
252
+
253
+ `deepseek-harness`, `dsh-plugin`, `claude-code`, `migration`, `session-import`, `resume`
254
+
255
+ ## Contributors
256
+
257
+ - [@PerryLink](https://github.com/PerryLink) — creator and maintainer: the import pipeline, the four-source migration wizard, the Web panel, docs, CI/CD and releases.
258
+ - [@OLDnana1](https://github.com/OLDnana1) — root-cause analysis of the interrupted tool-call corruption that made imported sessions permanently return HTTP 400 on resume.
259
+ - [@GooodWei](https://github.com/GooodWei) — identified `README.md` (and any description-less `.md`) being misregistered as a skill, which broke DSH's skill load.
260
+
261
+ ## PerryLink DSH Plugin Family
262
+
263
+ This project is one of the DeepSeek Harness plugins maintained by [PerryLink](https://github.com/PerryLink). If this one helps you, the others likely will too:
264
+
265
+ | Plugin | One-liner |
266
+ |---|---|
267
+ | [dsh-mcp-panel](https://github.com/PerryLink/dsh-mcp-panel) | Read-only MCP runtime panel: /mcp command + Settings tab with status, tools and errors |
268
+ | [dsh-doublecheck](https://github.com/PerryLink/dsh-doublecheck) | Engineering-discipline guard: requirements grill, test gates, adversary review |
269
+ | [dsh-background-agents](https://github.com/PerryLink/dsh-background-agents) | Durable background child agents with a Web UI sidebar, messaging and interrupt |
270
+ | [dsh-lsp-actions](https://github.com/PerryLink/dsh-lsp-actions) | LSP diagnostics, formatting, completion, code actions and rename over language servers |
271
+ | [dsh-output-styles](https://github.com/PerryLink/dsh-output-styles) | Claude Code outputStyles-equivalent runtime style switching |
272
+ | [dsh-checkpoint-rewind](https://github.com/PerryLink/dsh-checkpoint-rewind) | Claude Code /rewind-equivalent: snapshots, session forks, one-shot restore |
273
+ | [dsh-permission-rules](https://github.com/PerryLink/dsh-permission-rules) | Claude Code-style declarative allow/deny/ask permission rules with audit |
274
+ | [dsh-auto-review](https://github.com/PerryLink/dsh-auto-review) | Second-model auto-review on the approval chain, fail-closed by default |
275
+ | [dsh-memento](https://github.com/PerryLink/dsh-memento) | Approval-gated cross-session memory: ctx.memory seam + SQLite + memory tool |
276
+ | [dsh-skill-pack-security](https://github.com/PerryLink/dsh-skill-pack-security) | Security-audit skill pack: secret scan, dependency and supply-chain review |
277
+ | [dsh-session-pin](https://github.com/PerryLink/dsh-session-pin) | Pin sessions in the Web sidebar with durable ordering |
278
+ | [dsh-composer-history](https://github.com/PerryLink/dsh-composer-history) | Terminal-style input history for the web composer: arrows, Ctrl+R search |
279
+ | [dsh-github](https://github.com/PerryLink/dsh-github) | GitHub PR/issues integration for DSH, every write gated by approval |
280
+ | [dsh-plugin-guide](https://github.com/PerryLink/dsh-plugin-guide) | Plugin-development knowledge base as an on-demand agent skill |
281
+ | **[dsh-claude-move](https://github.com/PerryLink/dsh-claude-move)** | Migrate Claude Code sessions, memory, skills and CLAUDE.md into DSH |
282
+
283
+ ## License
284
+
285
+ [Apache License 2.0](LICENSE) © 2026 dsh-claude-move contributors