DeepSeek Harness Plugin: dsh-actions

Introduction

In the development workflow, repetitive operations are common: running tests, generating documentation, data synchronization, linting, triggering CI builds, and deployment. These operations typically require switching between platforms—executing commands in the terminal, checking CI status in a browser, and logging into another system to complete the release.

If handed over to an Agent, the cost is often higher: checking documentation, writing code, running, and debugging. It may take multiple rounds of looping to get a single task working, and the next session starts from scratch, consuming a significant amount of tokens.

The DSH Actions plugin aims to solve this pain point. It allows you to write a single actions.json configuration. This definition serves as both the clickable entry point in the right sidebar panel and a structured tool that the Agent can call directly. Through the same definition, humans can run tasks with one click in the panel, and Agents can invoke them in conversation, with both sharing the same approval gate and execution status.

Plugin Positioning

dsh-actions is a Web plugin for DeepSeek Harness (DSH), maintained by the developer pure-craft.

Its core value lies in: One configuration, two interfaces.
- For humans: A quick access entry in the right sidebar panel.
- For Agents: A tool invocation interface.

The plugin is open source under the MIT license and currently has 4 stars.

Core Features

Based on verified facts, the plugin possesses the following capabilities:

  1. Right Sidebar Panel Entry: Provides an Actions card on the start page of DSH Web, allowing users to execute tasks with a click.
  2. Agent Tool Invocation: The Agent has four dedicated tools for discovering, executing, canceling, and configuring tasks:
    • actions_query: Query the task list.
    • actions_run: Execute a task.
    • actions_cancel: Cancel a running task.
    • actions_configure: Register a task at the session layer (requires human approval).
  3. Real-time Streaming Output: Execution results appear in real-time in the run tab workspace, with status at a glance.
  4. Three-Layer Design: Task definitions are divided into the global layer, workspace layer, and session layer, merged by priority. Tasks with the same name are overridden by the higher layer.
  5. Approval Gate Mechanism: Tasks marked as high-risk require explicit confirmation before starting, regardless of whether triggered by a human click or an Agent call.
  6. Unified Actions Definition: A single JSON configuration file serves both humans and Agents, eliminating the need to sync two sets of definitions.

Installation and Activation

Before installation, ensure your DSH version meets the requirements:

# DSH version must be >= 0.1.7-alpha.1

Install using the official plugin command:

dsh plugin --profile web add dsh-actions

After installation, restart DSH Web to see the Actions card on the “Start” page in the right sidebar.

Typical Usage

1. Configuring Tasks

Create a .dsh/actions.json file in the root directory of the workspace. This is the sole source of configuration and does not depend on other formats.

{
  "version": "1.0.0",
  "actions": [
    {
      "label": "check",
      "command": "pnpm check",
      "detail": "Type check + lint + all tests"
    }
  ]
}

2. Differences in Usage Between Humans and Agents

User Discovery Method Execution Method
Human Click in the right sidebar panel Click to run, fill in parameters (if any), view streaming output
Agent actions_query tool Call actions_run, interact based on returned results

3. Session-Layer Tasks

If a task is only meaningful in the current session, you can let the Agent register it via actions_configure. This is a high-risk operation, and the Agent will request human approval.

4. Multi-Repository Scenarios

If the session workspace contains multiple repository root directories, the Agent can configure the folders field at the session layer to dynamically load .dsh/actions.json from specified directories. For example:

{
  "version": "1.0.0",
  "folders": ["frontend", "services/api"],
  "actions": []
}

Use Cases and Notes

Applicable Scenarios

  • Curating Scattered Scripts: Consolidate npm scripts, Makefiles, or scattered script entries into .dsh/actions.json.
  • Bridging CI/Pipelines: Encapsulate platform APIs as Actions to trigger builds, query status, and perform parameterized releases.
  • Session Scratchpad: Temporarily solidify tasks in the current session; discard them after use or promote high-quality tasks to the file layer.

Permission and Security Notes

Execution permissions differ based on the invocation entry point, which is a key security feature of this plugin:

  1. Manual Run (Panel):

    • Executes with the local permissions of the user owning the DSH Host.
    • Bypasses the DSH file sandbox, but does not bypass operating system permissions.
    • Therefore, treat Actions in the repository as executable local code.
  2. Agent Invocation (actions_run):

    • Inherits the session sandbox by default (requires approval: never).
    • If using approval: agent/always, the Agent must pass the approval gate. Upon approval, it receives one-time dangerous-full-access permission to execute with the local user’s permissions, without changing session permissions.
    • If permissions are insufficient, a retry with elevated privileges can be requested via retryRunId + justification.
  3. Nature of the Approval Gate:

    • The Web panel and its same-origin plugin code belong to the same trusted client boundary.
    • Approval is a mechanism to prevent accidental triggering; it is not a security isolation against compromised clients.

Conclusion

The DSH Actions plugin solves the disconnect between humans and Agents regarding repetitive operations through its three-layer design (global/workspace/session) and unified definition file. It lowers the threshold for solidifying complex operations, reduces the token consumption of Agents during debugging, and provides fine-grained permission control based on the entry point.

  • GitHub Repository: https://github.com/pure-craft/dsh-actions
  • Plugin Directory: https://www.skillhub.cn/plugins/pure-craft/dsh-actions
羽毛球分组比赛记分
小程序二维码

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

Xiaoye