jiangr100/dsh-workspace-scope-selection0

dsh-workspace-scope-selection

dsh-workspace-scope-selection:DSH 会话工作区写入权限控制插件。允许用户通过目录树勾选,精确授权智能体可以写入的特定目录范围。

AI 分析

核心用途是细粒度控制智能体对本地文件系统的写入权限。适合对本地代码库安全有顾虑、希望限制智能体修改范围的安全敏感型用户。

包名
dsh-workspace-scope-selection
版本
1.0.0
许可证
MIT
最近更新
2026年8月17日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:jiangr100/dsh-workspace-scope-selection

Usage

  1. Open a conversation, click the permission chip in the composer (or run /permission), and pick Selected Workspace Write.
  2. The dock bar appears above the composer. Click Edit scope.
  3. 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.
  4. 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.
  5. 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.