Introduction

In the permission management workflow of DSH (DeepSeek Harness), an Agent requires user approval to proceed. If the user does not respond within the specified time, the Agent may enter a waiting state, causing the entire task to hang or creating security risks. dsh-timeout-auto-reject addresses this issue by ensuring that when a permission request receives no response within 180 seconds, the system automatically rejects the request and notifies the Agent to keep running.

Plugin Overview

This plugin is maintained by jiesou and belongs to the admin-security category. Its core function is to automatically reject unanswered permission requests, preventing the Agent from stalling while waiting for approval.

Core Features

  • Timeout Auto-Rejection: If a permission request receives no response within 180 seconds, the plugin automatically triggers a rejection.
  • Status Notification: The rejection action injects a model-visible SYSTEM prompt for the Agent.
  • Continuous Execution: After receiving the rejection prompt, the Agent does not stop but automatically continues executing subsequent tasks.

Installation and Activation

The installation process requires no configuration. Run the following command directly:

dsh plugin --profile web add @jiesou/dsh-timeout-auto-reject

It can also be installed from the GitHub repository:

dsh plugin --profile web add github:jiesou/dsh-timeout-auto-reject

Code and Dependencies

The plugin implementation is very simple and lightweight. If you need to modify the logic, you can directly edit src/index.ts.

Dependencies are as follows:
* @deepseek-ai/cordis (>=4.0.1 <5)
* @deepseek-ai/dsh-llm
* @deepseek-ai/dsh-user-approval

Notes

  • Fail-Close Policy: The plugin uses a rejection policy rather than a hang policy, ensuring the system does not wait indefinitely when there is no response.
  • Source Code Review: Because the codebase is small and open source, we recommend reviewing the source code before deployment to ensure the behavior matches expectations.
  • License: Usage requires compliance with the MIT License.

Reference Links

  • Ecosystem Directory: https://www.skillhub.cn/plugins/jiesou/dsh-timeout-auto-reject
  • GitHub Repository: https://github.com/jiesou/dsh-timeout-auto-reject