rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:yamsengyi/dsh-session-sync
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A DSH bundle that adds a personal sync hub for sessions and workspace snapshots. One machine runs DSH and hosts the hub; every other PC installs the bundle once, pairs with a code, and then only needs DSH started.
Manual & flowcharts (Korean): docs/manual.ko.md documents the current behavior end-to-end with mermaid flowcharts and a flow-review section listing the disconnected steps that were found and fixed.
Plugins → Add plugin, then paste:
https://github.com/yamsengyi/dsh-session-sync
The Registry dropdown applies to package-name installs; a GitHub URL
bypasses it, so leave the dropdown at its default. Pin a release with
https://github.com/yamsengyi/dsh-session-sync#v0.9.7 if you want
reproducibility. Reload DSH once after installation so the plugin code and the
/session-sync command load.
For local development you can instead install the checkout by its absolute directory path.
Server (the machine that will host the hub), after installing the bundle:
/session-sync init-hub
The command writes %USERPROFILE%\.dsh\dsh-sync\hub.json, starts the hub
immediately, and shows the pairing code. No terminal and no restart.
Client (each PC, after installing the bundle):
/session-sync pair https://sync.example.com XXXX-XXXX laptop
This writes client.json and starts syncing immediately.
/session-sync status shows the current hub/client state, and
/session-sync code (or /session-sync code rotate) manages the pairing code.
CLI fallback for automation, from the installed package:
node "$env:DSH_PROFILE_DIR\node_modules\@yamsengyi\dsh-session-sync\bin\session-sync.mjs" status
See docs/deploy-windows.md for the domain and TLS setup, and docs/handoff.md to hand the server setup to that machine's DSH agent. The Korean version is docs/handoff.ko.md.
After reloading DSH, open Settings → Session sync:
<html lang>); English, 中文, and 한국어 can be selected explicitly. The
choice is stored per browser and never defaults to Korean..dsh-sync.json). The default
~\Documents\deepseek-harness\sync-default is a container: each immediate
child folder becomes its own DSH Workspace and is marked shared automatically;
the container itself is not shared. Use 하위 폴더 스캔 after adding a
project folder. A Projects button beside the sidebar's New session button
opens a modal with 공유 프로젝트 and 로컬 프로젝트 groups; the same
groups appear in Settings. Left sidebar session rows also carry a small
공유/로컬 badge. 동기화 해제 removes the marker without deleting
workspace files or hub checkpoints; the .dsh-sync state is kept so
re-marking can resume from the old base. Set defaultWorkspaceMode to
root to share the container itself, or off to disable the automatic scan.Mode changes preserve the other role's configuration and token by writing an
enabled flag into hub.json / client.json; Off leaves both files in
place.
The page is a browser client that calls exact Host routes under
/session-sync/api/.... Connection authenticates every request as the browser
Peer; the bundle stays build-free. The /session-sync commands remain for
automation.
A hub keeps numbered checkpoint versions, but the working folder holds one merged state, not one folder per version. The first pull has no common base:
.dsh-sync/conflicts/<stamp>/... (ignored by later checkpoints).The plugin's defaultWorkspace config (bundle default
~\Documents\deepseek-harness\sync-default) is created empty on load and appears
in the workspace list even before it is marked. A new empty folder is still the
safest first-sync target.
B Settings 그룹 샘플 · New session 옆 Projects 진입 샘플 · Workspace decoration 한계/upstream 요청 메모
On the receiving PC, open the Projects modal beside New session. The Projects tab is one unified list of local and server projects, each tagged Synced, Server only, or Local only. A Server only row offers Import:
<shared root>/<project name>, where the shared root
is defaultWorkspace (~\Documents\deepseek-harness\sync-default by default).Use an empty folder when possible. This is a per-project operation: one project maps to one local root; multiple roots per project are not supported. Session history is not imported—Join handles workspace files only.
DSH creates its own first-use workspace at
<Documents>\deepseek-harness\default-workspace; this plugin never creates or
moves that folder. Its own
~\Documents\deepseek-harness\sync-default is a container: on load (and on
하위 폴더 스캔) each immediate child directory is registered as a DSH
Workspace and marked shared. The container itself is not shared. Only marked
projects sync; default-workspace and other unmarked projects remain local, and
session auto-push is gated by the workspace marker.
To change where DSH creates future default workspaces, override the workspace controller in the profile patch:
- id: workspace-controller
name: "@deepseek-ai/dsh-api-workspace-controller"
config:
documentsDirectory: "D:\\DSH"
The default then becomes D:\DSH\deepseek-harness\default-workspace. An existing
default workspace keeps its old path; create a new workspace for the new
location instead of moving the recorded one.
index.js DSH host plugin (role auto | client | hub | idle)
client.js Settings → Session sync browser section
bin/session-sync.mjs init-hub / pair / status / code CLI
bin/hub.mjs standalone hub, for a server without DSH
src/hub-server.js HTTP hub: pairing, auth, sessions, checkpoints, blobs
src/sync-client.js push/pull client used by the plugin and tests
src/manifest.js workspace scan, ignore rules, three-way diff
src/protocol.js errors, hashing, body and path validation
test/ local protocol, plugin, recovery, and pairing tests
docs/ protocol, deployment, handoff, plugin detail,
workspace decoration upstream note
The plugin has no build step and no runtime dependency: a profile-installed
bundle resolves from the directory, and the hub/client core runs under plain
Node so the protocol can be tested without a DSH host. engines.dsh pins the
supported release range (>=0.2.2-rc.3 <0.3.0).
role: auto (the bundle default) reads two marker files in the data directory:
| Marker | Effect |
|---|---|
hub.json |
start the hub and run the automatic host-self uploader |
client.json |
sync this machine as a paired client when no hub is enabled |
| neither | inert |
A Host writes self-client.json with a local device token automatically; that
is internal state, not a marker the operator edits. If both hub.json and
client.json exist, Host wins and client.json is kept for a later Client-mode
switch.
Explicit role: client, role: hub, or role: idle overrides the markers.
hubUrl/token still work for a manual configuration, but pairing is the
intended path.
The data directory stays %USERPROFILE%\.dsh\dsh-sync (and the workspace marker
stays .dsh-sync.json) so existing hub history and marked workspaces continue
to work after this rename.
Automatic workspace commits only touch a folder that carries .dsh-sync.json
at its root:
{ "folderId": "my-project-1a2b3c" }
Create it with the exported initFolder(root, folderId?) helper, or write it by
hand. The marker is an ordinary file, so the first checkpoint carries it to
every other PC: they address the same hub folder without any path mapping, even
when their absolute paths differ. Without the marker a workspace is never
scanned or committed.
& $node --test --test-concurrency=1 .\test\local.test.mjs .\test\manifest.test.mjs .\test\plugin.test.mjs .\test\recovery.test.mjs .\test\pairing.test.mjs .\test\ui-api.test.mjs .\test\update-check.test.mjs
$node is the bundled Node reported by the workspace dependency loader; any
Node 22+ also works because the code uses only built-in modules and global
fetch.
/session-sync init-hub 0.0.0.0 8787, firewall rule, clients point
at the LAN URL.127.0.0.1:8787.CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。