rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:fufufuwa/dsh-workspace-sync
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Automatically track and synchronize local project/workspace directory renames in DeepSeek Harness (dsh) using filesystem inode identity (dev:ino).
English | 简体中文
In DeepSeek Harness (dsh), renaming or moving a local project directory on disk breaks 4 independent layers because absolute paths are bound at creation time:
WorkingDirectoryService (@deepseek-ai/dsh-working-directory): session.header.cwd is immutable; once the folder is renamed, ensure() throws working-directory: directory does not exist on every subsequent turn.WorkspaceRegistry (@deepseek-ai/dsh-workspace): WorkspaceRecord.path stays on the old path, sidebar previews break, re-adding the renamed folder creates a duplicate empty workspace, and mutating a workspace whose sessionPaths still point to the old path prunes existing sessions.WorkspaceFiles (@deepseek-ai/dsh-api-workspace-files): workspaceFileScope Typert lookup resolves header.cwd, breaking file tree & document preview after rename.SandboxPolicyService (@deepseek-ai/dsh-sandbox-policy): resolve() returns session.header.cwd, locking workspace-write permissions to the obsolete path.dsh-workspace-sync WorksWithout modifying DSH core source files, this plugin hooks into all four layers cleanly via Cordis:
$DSH_HOME/storages/workspace-sync.json): Observes directory dev:ino (via fs.stat(..., { bigint: true }), falling back to birthtimeNs if ino is 0). Supports both live renames and offline renames across DSH restarts, as well as transitive/nested renames.workingDirectory.ensure & workingDirectory.set to locate renamed directories by dev:ino and migrate the session's active working directory seamlessly.fs.watch: Watches workspace parent directories (non-persistent, debounced) and reconciles on startup and before create / resolveByPath, updating WorkspaceEntity path & default title while preserving custom titles and all sessionIds.workspaceFileScope Typert lookup and wraps sandboxPolicy.resolve() so file previews and workspace-write boundaries follow the renamed directory immediately.# Check DSH profiles status
node bin/dsh-workspace-sync.js status
# Link and enable in all local DSH profiles (~/.dsh/profiles/*)
node bin/dsh-workspace-sync.js install
# Uninstall from local DSH profiles
node bin/dsh-workspace-sync.js uninstall
Restart DeepSeek Harness (Desktop or Web) after running install.
node --test test/workspace-sync.test.js
See CODEX_ISSUE.md for the root-cause analysis and ready-to-submit GitHub Issue for openai/codex regarding its directory-recreation behavior (std::fs::create_dir_all on stale deny_write_paths / deny_read_paths).
为 DeepSeek Harness (dsh) 提供本地项目文件夹重命名自动同步插件:
dev:ino 唯一标识(持久化保存在 $DSH_HOME/storages/workspace-sync.json),支持运行中改名与关闭重启后改名。workingDirectory.ensure(),自动跟随改名后的新路径,彻底消除 working-directory: directory does not exist 报错卡死。sessionIds,不会误删会话或产生重复工作区)。typert.lookups.configure("workspaceFileScope") 实时映射到新路径。sandboxPolicy.resolve() 返回的 workspaceRoot,避免 workspace-write 拒绝写入新目录。cd "E:\dsh-workspace-sync"
node --test test/workspace-sync.test.js
node bin/dsh-workspace-sync.js status
node bin/dsh-workspace-sync.js install
安装后重启 DeepSeek Harness 即可生效。如需卸载可执行 node bin/dsh-workspace-sync.js uninstall。
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。