jiangr100/dsh-workspace-scope-selection ↗★ 0
dsh-workspace-scope-selection
dsh-workspace-scope-selection:DSH 会话工作区写入权限控制插件。允许用户通过目录树勾选,精确授权智能体可以写入的特定目录范围。
AI 分析
核心用途是细粒度控制智能体对本地文件系统的写入权限。适合对本地代码库安全有顾虑、希望限制智能体修改范围的安全敏感型用户。
安装
$
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.