Introduction¶
When handling cloned repositories with plugins in DSH, the configurations within the repository directly influence plugin behavior: there is no layer of “do I trust this directory.” Consequently, agent-related capabilities often execute according to the project’s settings by default. If you frequently open unknown repositories, or wish for other plugins to ask for your consent before running code within a project, dsh-workspace-trust provides a trust status that persists per workspace and exposes it to dependent plugins for judgment. Below is an introduction to what it is, how to install it, how to use it, and configurations related to default denied paths.
What is this¶
dsh-workspace-trust is maintained by RicardoYan and categorized as admin-security. It is responsible only for recording and checking whether each DSH workspace is “trusted” or “untrusted”; it does not execute project code itself. Which capabilities read this status is determined by other plugins that integrate with it. Persistent data is written to a JSON file in the user directory, independent of whether the specific project directory still exists.
Native DSH capabilities do not include workspace trust: whatever the cloned repository is configured with, plugins run accordingly. This plugin supplements the layer of “user permission for this path.”
Core Features¶
First Session Prompt¶
For each workspace, a selection prompt appears once during the first session: Trust / Do not trust. Once selected, it is remembered, and the same workspace will not be asked again.
Workspace Boundaries¶
A workspace is defined as: starting from the current session directory and traversing upwards, the nearest directory containing .dsh/settings.yml or .git; if neither exists, the workspace is the session directory itself. Subdirectories under the same workspace share the same trust record.
Slash Commands¶
/workspace-trust: View the trust status of the current workspace./workspace-trust trustor/workspace-trust untrust: Modify the status, effective immediately in the current session.
Records are stored in ~/.dsh/workspace-trust/workspaces.json, keyed by path. Deleting the workspace directory will not clear the record; if you place a different project in the same path later (e.g., re-cloning a different repository), the original selection will be retained. If the project at the path changes but the policy should differ, you must use /workspace-trust untrust (or trust) to reset it.
Denied Access List¶
Even if a workspace is marked as trusted, the plugin does not allow reading the following paths (default list):
~/.dsh, ~/.ssh, ~/.gnupg, ~/.aws, ~/.azure, ~/.kube, ~/.docker, ~/.git-credentials, ~/.config/gh, ~/.netrc, ~/.npmrc, ~/.pypirc, ~/.claude, ~/.codex, ~/.cc-switch
You can append to or disable the default list for the dsh-workspace-trust plugin in the profile’s cordis.patch.yml, for example:
- id: dsh-workspace-trust
name: 'dsh-workspace-trust'
config:
deniedPaths: ['~/.my-secrets', '%APPDATA%/some-tool'] # Append
useDefaultDeniedPaths: true # false = Do not use the default list above
The plugin details page also allows configuration of deniedPaths / useDefaultDeniedPaths, with effects identical to writing a profile patch.
External Interface¶
The plugin relies on DSH interfaces such as agent/pre-step, userQuestions, commands, etc., and provides client exports (e.g., ./client) to other plugins so they can query the trust status before running project code or accessing paths outside the workspace. Specific integration methods should follow the documentation of the respective plugins.
Installation and Activation¶
Desktop example (for Web, replace desktop with your profile name, usually web):
dsh plugin --profile desktop add github:RicardoYan/dsh-workspace-trust#v0.2.1
Restart DSH after installation.
Uninstallation:
dsh plugin --profile desktop remove dsh-workspace-trust
Applicable DSH version: @deepseek-ai/dsh >=0.2.1-rc.1 <0.3.0-0. License: MIT.
To disable the plugin, use the toggle on the DSH plugin management page (this writes disabled into the profile patch); this plugin does not have a separate switch item.
Typical Usage¶
- After installing and restarting DSH, start the first session in a new workspace and choose to trust or untrust in the prompt.
- Use
/workspace-trustduring the session to confirm status; use/workspace-trust trustoruntrustto change it if needed. - If you need to block additional sensitive directories even under trust, configure
deniedPathsin the plugin details orcordis.patch.yml, and setuseDefaultDeniedPathsas needed.
Interface text follows DSH Settings → General → Language (Chinese or English; Auto follows the system). Descriptions in the slash command list are determined at DSH startup; a restart is required for updates after switching languages.
Scenarios and Notes¶
Who it is for: DSH users who need to distinguish “whether to allow other plugins to execute code or expand access scope based on project configuration” by directory; when used in combination with security and admin-security plugins, this plugin provides a unified source of trust.
Headless Environments: When there is no UI (e.g., headless), no prompt will appear, and the status is treated as untrusted.
Permissions and Security: The plugin runs with the permissions of the current DSH process; it is recommended to review the source code and MIT license on the GitHub Repository before installation to ensure compliance with your policies. The entry on the community plugin directory SkillHub is not officially affiliated with DeepSeek or High-Flyer; the DSH ecosystem itself is an extension approach where “everything is a plugin.”
Through the steps above, you will obtain a path-persisted workspace trust record, slash commands for instant modification, and a configurable sensitive path denied list; other plugins use this to decide whether to run code in the project or access paths outside the workspace, whereas DSH lacks this layer of explicit choice by default.