dsh-permission-panel: DSH Workspace Permission Panel

Introduction

In DeepSeek Harness (DSH), every session is bound to a permission preset: view-only, modify within the workspace, or full permissions. During daily development, these settings are scattered across individual sessions—to change one, you must first enter that session; to confirm “which sessions still have full permissions,” you typically have to open each one and check. With many sessions, this kind of operational inspection takes up a significant amount of time.

The community plugin dsh-permission-panel (maintainer kirito787-neet, category admin-security) collects session permissions under the same workspace into a single table, supporting search, grouping by workspace, filtering by permission level, and single or batch modification. The panel does not persist permission state itself; all reads and writes go through native host commands, so what you see in the list matches the policy actually enforced in each session. The project states that code, tests, documentation, and other artifacts are AI-generated, while the author provides the ideas and acceptance direction; please review the source code and license (MIT) yourself before use.

What Is This

dsh-permission-panel is a workspace permission panel plugin for DSH: browse the permission presets of all (non-archived, non-sub-agent) sessions on one page, modify them individually or in batch as needed, and view the description of the policy actually enforced on the host side for the “current session.” The same source code supports both Web and Desktop carriers.

Core Features

Session List and Grouping

Each session is one row, displaying a colored avatar with the first letter, title, and working directory; running sessions have a green dot. The list is grouped by workspace and collapsed by default; group headers show the workspace name, path, session count, and selected count. Sessions not belonging to any workspace fall into “Ungrouped” at the end. The toolbar provides “Expand All / Collapse All.” Archived sessions do not appear in the list; the bottom of the panel states how many were skipped.

When permissions have not yet been read back from the host, the row shows “Pending / Reading / Failed”; the query does not open or activate the session and can refresh in the background; if reading fails, you can click refresh to retry.

Search and Filtering

  • Search: matches by title, directory, and workspace name, displaying “Matches N / Total” in real time. When there is a search term, all groups are automatically expanded to avoid matches being hidden in collapsed groups.
  • Filter by permission level: toolbar tabs (e.g., “Full Permissions”) show only sessions with the corresponding preset; the count on the tab changes with the search conditions.
  • Locate current session: when opening the panel from the session header entry, this button clears search and filters, expands the containing group, scrolls the current row to the center of the viewport, and briefly highlights it.

Search and filters can be combined; hidden rows do not participate in accidental batch selection (see below).

Modify Permissions

Three presets: View-only, Modify in workspace, and Full permissions.

  • Single: select from the dropdown on the right side of the row; takes effect immediately.
  • Batch: check multiple rows, then select a preset in the bottom batch bar and click “Apply to selected”; partial failures list the sessions that did not succeed.
  • Rows hidden by search or filters are automatically removed from the selection, so batch operations only affect currently visible rows; collapsed groups do not affect already checked items.
  • Switching to full permissions requires confirming a risk warning; batch switching only confirms once.

Default Permissions for New Sessions

The panel allows setting the default preset used for future new sessions without affecting existing sessions.

Current Session Policy Card

When entering from the “Permissions” button in the session header, a card at the top shows the current session title, the actually enforced preset read back from the host, and the original description; after permissions are changed elsewhere, reopen the panel or click “Re-read” to update. This card only appears in this entry point; Settings → Plugins → Workspace Permissions is a full-page view and does not have a main view “current session” concept, so it does not show this card.

Desktop Keyboard Shortcut

Command Default Key Carrier
Restart DSH (Permission Panel) Ctrl+Shift+R (macOS Cmd+Shift+R) Desktop only

The command is registered in the official shortcut service and can be reassigned in Settings → Shortcuts. The shortcut can be disabled in Settings → Plugins → Permission Panel (key assignment and conflict detection are still retained). The Web carrier has no “restart application” scenario, so there is no such key.

Installation and Enablement

--profile is required with no default profile; --profile desktop must use the dsh shipped with DSH Desktop, while the regular @deepseek-ai/dsh will refuse.

# Install from npm (recommended)
dsh plugin --profile <profile> add dsh-permission-panel

# To pin a specific version
dsh plugin --profile <profile> add dsh-permission-panel@3.3.0

Uninstall:

dsh plugin --profile <profile> remove dsh-permission-panel

After installation, restart DSH (restart the app on Desktop, restart dsh web on Web). You will see “Permission Panel” and “Workspace Permissions” related pages under Settings → Plugins. For installation from source or tarball, see the repository docs/COMPATIBILITY.md.

The current npm package version is 3.3.0 (per the README: 3.3.0 adds filtering by permission level and locating the current session; earlier changes are in the repository commit history).

Typical Usage

  1. After installing and restarting, open Settings → Plugins → Workspace Permissions, or click “Permissions” in the header of a working session (the latter also shows the current session policy card at the top).
  2. Use search or permission tabs to narrow the scope; expand the corresponding group when organizing a workspace.
  3. Change a single permission using the dropdown at the end of the row; check multiple rows and use “Apply to selected” at the bottom.
  4. If you want new sessions to have more conservative or more open defaults, adjust “Default permissions for new sessions” in the panel.

Use Cases and Notes

Suitable for developers who often run multiple workspaces and multiple sessions in parallel in DSH and need centralized auditing or batch tightening/loosening of permissions. Full permissions carry higher risk; the plugin forces confirmation before switching, including for batch operations.

Please note before use:

  • The plugin runs under the permissions of the current dsh process; before installation, it is recommended to read the GitHub repository source code and MIT license, and be aware of the project disclaimer (not an official DeepSeek product, provided as-is, etc.).
  • The panel does not save a copy of permissions; the host is authoritative.
  • The community plugin directory SkillHub entry and GitHub are public information sources; the directory site has no official affiliation with DeepSeek / High-Flyer.

The DSH ecosystem emphasizes “everything is a plugin”; the permission panel fills the gap of “cross-session visibility and batch modification” rather than replacing fine-grained policy design within sessions.

Conclusion

If you are frustrated by scattered permission settings and high verification costs, dsh-permission-panel provides a unified table view with same-source reads and writes aligned with host permissions. For more information, visit SkillHub plugin page and GitHub: kirito787-neet/dsh-permission-panel.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye