Introduction

In DeepSeek Harness (DSH), when switching between different workspaces, developers usually need to manually reselect the Agent preset and permission preset for each new session. This causes a lot of repetitive work and reduces development efficiency. The @ahiosuz/dsh-workspace-tools plugin solves this issue by configuring workspace-level default rules: new sessions automatically apply the presets for the corresponding workspace, without requiring manual selection each time.

Plugin Overview

This is a DeepSeek Harness workspace tools plugin maintained by developer AHIOSUZ. It allows users to configure default Agent and permission presets for each workspace. When a new root session is created, the plugin automatically matches the session’s working directory to the corresponding workspace rule and applies the presets, eliminating repetitive selection.

Core Features

  • New settings page: A new “Workspace defaults” page is added to Settings for managing preset rules.
  • Rule configuration: Each rule contains a registered workspace, an Agent preset, and a permission preset.
  • Real-time workspace list: The workspace dropdown list displays registered workspace names in real time.
  • Robust matching logic: Rules are stored using the workspace ID as the key (path and title are only for display), so renaming a workspace or changing path casing does not invalidate the rules.
  • Automatic application flow: When the working directory (cwd) of a new session matches the workspace directory or a subdirectory of a rule, the plugin automatically switches the Agent preset via agentPresets.select and submits the permission preset via permissionPresets.set.
  • Session scope limitation: This feature only affects newly created root sessions; existing, restored, forked, or sub-agent sessions remain unchanged.

Installation and Usage

Install the plugin:

dsh plugin --profile web add @ahiosuz/dsh-workspace-tools

Configuration and usage steps:

  1. Restart or reload DSH Web.
  2. Open Settings, go to the “Workspace defaults” page, and click “Add rule”.
  3. Select a workspace from the dropdown, set the Agent preset and permission preset (both are optional; if not selected, the global defaults are inherited), and click Save.
  4. Create a new conversation in that workspace, and verify whether the presets are automatically applied before the first turn.

Use Cases and Notes

  • Compatibility: Supports official DSH 0.1.5-rc.1 and later, with no patches required.
  • Rule management: If a workspace referenced by a rule is removed, the rule is marked instead of failing silently.
  • Manual precedence: Manual selections made after the session is established take precedence over automatic application and override the presets.
  • Security mechanisms: The plugin only reads the session’s working directory and calls official preset services. It does not include telemetry, credential access, command execution, or network access. Rules are stored in user settings documents and can be edited or cleared at any time.

Conclusion

The plugin is implemented through official extension points and provides workspace-level preset automation. For more details, see the plugin catalog or the GitHub repository.