jiangr100/dsh-workspace-scope-selection0

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.

AI 分析

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

パッケージ
dsh-workspace-scope-selection
バージョン
1.0.0
ライセンス
MIT
最終更新
2026/08/17

インストール

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

ドキュメント

README 全文を読む ↗

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.