rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Tetrachlorosilane/dsh-extraworkspace
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Per-session additional workspaces for DeepSeek Harness on Windows.
Part of the dsh-plugin topic.
DSH's Windows sandbox confines subprocess writes with a low-integrity, write-restricted token whose only write capabilities are the session workspace and a private temporary directory. The harness file tools are fenced by the same policy in process. That protects against accidental writes outside the project, but it also blocks legitimate cross-directory and cross-drive work.
This plugin adds a small, explicit allow-list on top of that model:
ctx.sandboxPolicy.registerWritableRoot(), so write, edit, apply_patch,
delete and move are allowed there.bash / PowerShell processes therefore get the same write capability.The allow-list is per session. It is configured from a panel in the session header, persisted in the plugin's own storage domain, and restored when a session is resumed. It is not a global permission and it is not a security boundary against a hostile project: it is an ergonomic extension of the accidental-write sandbox.
0.2.2-rc.3 (the ACL backend and storage-domain APIs this plugin uses).workspace-write for the extra grants to take
effect. read-only still denies every write; danger-full-access needs no
grants.From the DSH GUI: Plugins → Add plugin → choose this directory. Or,
when plugin_manager is available in an agent session:
install_bundle with target = <absolute path to this directory>
After installation, open a session and click the folder button in the session header (right-side utilities).
Accepted path forms include:
| Form | Example |
|---|---|
| Windows drive | D:\projects\shared |
| Forward slashes | D:/projects/shared |
| UNC share | \\server\share\dir |
| Extended-length | \\?\D:\very\long\path |
| Extended UNC | \\?\UNC\server\share\dir |
| Cygwin | /cygdrive/d/projects/shared |
| Git Bash / MSYS | /d/projects/shared |
| WSL | /mnt/d/projects/shared |
file: URI |
file:///D:/projects/shared |
| Environment variables | %USERPROFILE%\shared, $env:USERPROFILE\shared |
| Home shorthand | ~/shared |
| PowerShell provider | Microsoft.PowerShell.Core\FileSystem::D:\shared |
| Relative to session cwd | ..\shared |
Safety rules: the directory must exist, be a directory, not be a symbolic link or junction, not be a drive root, and not be inside the Windows/Program Files/ProgramData system trees or the DSH installation. A directory that contains the session workspace is refused.
extra_workspaces storage
domain ($DSH_HOME/storages/extra_workspaces/sessions/<session-id>.json).The browser half registers one Extra workspaces tab in the right-sidebar tab strip for every profile. The session-header button always opens that tab; it is the single configuration surface. If the right-sidebar service is unavailable, the header button falls back to the inline modal.
The tab always provides the core extra-workspace management: add, remove, enable/disable, retry, and fix permissions.
When @deepseek-ai/dsh-experimental-forge-bundle is active, the tab also shows
the Forge companion section:
GIT_OPTIONAL_LOCKS=0), runs on the Host, and does not need sandbox
write permission;<repo>/.agents/worktrees/<name> without changing the Session working
directory. Remove runs a non-force git worktree remove; a dirty or
locked checkout is refused and the branch is always kept;retainOnArchive: false: unless it is switched on, archiving removes the
clean, unlocked worktrees this plugin created that no other live session
uses, and keeps their branches. A refused removal is retained and logged.The extra-worktree feature is only available for a repository root added as an extra workspace. A subdirectory or a linked worktree needs the shared Git directory as a separate grant and is rejected with an explanatory error.
The Git/worktree/archive routes are rejected when Forge is inactive; the core
tab stays usable. The companion adds no model-facing tools. The model keeps
the same bash/write surface and a stable list of approved extra roots;
Forge keeps its create_worktree tool for the root workspace. Enabling or
disabling Forge after the page loaded requires a page refresh for the Git
section to appear or leave.
@deepseek-ai/dsh-sandbox-windows-acl grant API. It is pinned to the DSH
release tested here. Re-verify it after a DSH upgrade.WRITE_OWNER.
Click Fix permissions in the row (adds an inheritable Full control ACE
for your user), or run
icacls "X:\path" /grant "%USERNAME%:(OI)(CI)F". The ACE is additive and is
not removed automatically. ReFS works; FAT/exFAT cannot take the process
grant.workspace-write with the
composer's permission control.node --check index.js
node --check client.js
node --test tests/*.test.mjs
The real archive-cleanup path has a manual integration harness:
tests/archive-harness as a temporary bundle from Plugins.node tests/archive-selftest.mjs; it asserts the worktree was removed
and the branch retained.The package has no build step: the host half is plain ESM and the browser half
is a plain window.__ModuleLoader__ factory. See AGENTS.md for the
architecture, the exact DSH APIs used, and the verification checklist.
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek。