Preface¶
When running Agent or Claw sessions in DeepSeek Harness (DSH), “official sandbox presets, Agent policies, and permissions selected in the current session” often come from different layers. If relying only on default behavior, the Claw area may inherit a read-only illusion inconsistent with the UI, or retain part of the interception state after the companion component is uninstalled. Below is an introduction to the community plugin dsh-session-permissions (catalog category: admin-security, maintained by xingyingyuzhui): it draws a Permissions tab in the Web session, computes effective permissions by intersecting at the stricter side, pins the official sandbox/mode for Claw sessions, and only tightens — never loosens.
What Is This¶
dsh-session-permissions is a session permission suite for DSH Web. One-line positioning: effective permissions = official ∩ Agent ∩ this session (Claw sessions additionally capped by the Claw hard cap); it also displays the three-layer intersection result in the UI and manages the linkage between Claw and the official sandbox.
The plugin is released under the MIT license. Current package version: 0.2.30, requires Node >= 20. Community catalog page: https://www.skillhub.cn/plugins/xingyingyuzhui/dsh-claw-permissions; source code and documentation on GitHub: https://github.com/xingyingyuzhui/dsh-session-permissions (this may differ from the catalog slug; installation and uninstallation follow the repository name in the README).
How Permissions Stack¶
After opening any session, the session area gains a Permissions tab. Effective permissions are intersected at the stricter side, with two different session paths:
- Workspace sessions: only official permissions are used. The suite does not intercept, tighten, or draw a per-session ceiling.
- Claw sessions: official preset ∩ Claw hard cap ∩ Agent policy ∩ this session override.
Tool names align with OpenClaw semantics: read / write / edit / apply_patch / exec (DSH’s bash is an alias). File boundaries are controlled by workspaceAccess, with values none | ro | rw | all; path determination uses OpenClaw’s isPathInside. str_replace_editor, as a DSH merged tool, maps to read/write/edit based on command. bash as a whole is still intercepted at the Shell level, and paths inside commands are not split out — same as OpenClaw: once exec is allowed, it no longer pretends to be read-only.
Claw Hard Cap and Session UI¶
Neither Agents nor sessions in the Claw area can reach the official highest permission danger-full-access (unrestricted terminal, no prompting). File read/write can reach all, Shell caps at allowlist, and publishing-class tools can be enabled on demand. Workspace sessions are not subject to this hard cap, nor do they go through the suite’s allowlist.
When Claw is not saved separately, the session inherits the ceiling and no longer pretends to be in research read-only mode. On save, permissions are tightened according to the ceiling; options beyond the cap are not selectable in the UI.
Relationship with the Official Sandbox and dsh-agent-gate¶
This plugin handles the three-layer intersection, draws the session Permissions tab, and pins the official sandbox/mode for Claw sessions (only tightening, never loosening). When the workspace still contains BOOTSTRAP.md, the official sandbox first pins to writable current workspace, and the gate only lets through persona files and ask_user_question.
Actual interception, one-shot approval, and auditing live in dsh-agent-gate. The README recommends installing the gate together with this plugin. After uninstalling the gate: for Claw sessions already open and those newly opened afterwards, as long as this plugin remains, the official file sandbox stays pinned; MCP / skill / path interception stops.
Installation and Activation¶
Install from GitHub under the Web profile (command from the README; do not assemble the repository name yourself):
dsh plugin --profile web add github:xingyingyuzhui/dsh-session-permissions
After installation, restart dsh web. It is recommended to install dsh-agent-gate as well.
For local development, you can link a local directory:
dsh plugin --profile web add link:/abs/path/to/dsh-session-permissions
After modifying the source, run npm run build; do not manually edit the generated client.js.
Uninstall:
dsh plugin --profile web remove dsh-session-permissions
Where Data Is Persisted¶
Session-level overrides are written to:
~/.dsh/session-permissions/<sessionId>.json
Agent policies remain at:
~/.dsh/DSclaw/<slug>/policy.json
together with the relevant entries in the registry.
Typical Usage¶
- Install the plugin and restart
dsh web; installdsh-agent-gateas needed. - Open the target session, switch to the Permissions tab, and view the current effective permissions (the three-layer intersection result).
- Adjust session-level overrides in a Claw session; on save, options are tightened by the Claw hard cap, and items beyond the cap are not selectable.
- To change Agent-level policies, edit the corresponding
policy.jsonand registry; together with the session JSON, they participate in the intersection.
The README does not provide standalone CLI example subcommands; permission behavior is governed by the Web UI and the files above.
Applicable Scenarios and Cautions¶
For whom: developers and operators who need to visually and persistently manage Claw / workspace session permission boundaries in DSH Web, and who need alignment with OpenClaw tool names and the file access model.
Cautions:
- The DSH ecosystem is “everything is a plugin”; community catalogs such as SkillHub are independent sites with no official affiliation with DeepSeek / High-Flyer (幻方).
- The plugin runs under the current dsh process permissions; review the source code and the MIT license yourself before installing.
- The “hard actions” of layered interception depend on the gate; when only this plugin is installed without the gate, behaviors such as sandbox pinning still partially take effect, but MCP / skill / path interception stops with the gate’s uninstallation.
- The catalog page plugin lead is
dsh-claw-permissions, while the install/uninstall identifier is dsh-session-permissions; follow the README.
Conclusion¶
dsh-session-permissions consolidates official, Agent, and this session (plus the Claw hard cap) into a readable permission view, and constrains Claw from reaching an unrestricted terminal. For a complete approval chain, use it together with dsh-agent-gate.
- Catalog page: https://www.skillhub.cn/plugins/xingyingyuzhui/dsh-claw-permissions
- GitHub: https://github.com/xingyingyuzhui/dsh-session-permissions