jiangr100/dsh-workspace-scope-selection ↗★ 0
dsh-workspace-scope-selection
A fourth permission option for DeepSeek Harness sessions: selected-workspace-write, where the user opens the workspace directory tree and toggles which directories the agent may write to.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:jiangr100/dsh-workspace-scope-selection说明文档
阅读完整 README ↗Usage
- Open a conversation, click the permission chip in the composer (or run
/permission), and pick Selected Workspace Write. - The dock bar appears above the composer. Click Edit scope.
- Walk the directory tree — the tree starts at the session's workspace, and the breadcrumbs let you navigate up to any parent, so directories outside the workspace can be granted too.
- Check the directories the agent may write to. Unchecking a directory removes it from the selection; a directory that is only covered by a checked ancestor shows a "via parent" mark — uncheck the ancestor to remove the whole subtree.
- Done. The agent's next write to a selected directory succeeds without
approval; anything outside the workspace and the selection still needs an
approval-gated escalation, exactly like
workspace-write.
The selection persists per session. Switching the session away from Selected Workspace Write keeps the selection stored, so returning to the option restores it.