AI Agent Hub
Back to plugins
⚙️

dsh-hooks-plugin

Workflow Updated 2026.08.26

Run the following command in DeepSeek Harness:

dsh plugin install KYinCode/dsh-hooks-plugin

Paste the following prompt into your AI chat to install this plugin:

Run dsh plugin install KYinCode/dsh-hooks-plugin to install dsh-hooks-plugin in DeepSeek Harness. Source: https://github.com/KYinCode/dsh-hooks-plugin

About this plugin

DeepSeek Harness excels at agent automation, but sometimes developers need finer runtime control over agent behavior, such as validating permissions before a tool is called or logging after execution. dsh-hooks-plugin is designed to bridge this gap by introducing Claude Code-style hooks to Harness, allowing you to mount Shell commands or HTTP requests at critical lifecycle moments like PreToolUse or PostToolUse.

The plugin's core strength lies in its flexible four-layer configuration system, supporting hierarchical management from global to local, and full compatibility with Claude Code's configuration structure for easy script migration. It offers practical features like hot reload and automatic log rotation, along with permission-based filters, making it simple to intercept or allow specific operations without altering the main workflow.

This is an ideal tool for DevOps engineers and advanced developers building high-security automated workflows, conducting complex behavioral audits, or requiring instant feedback. With it, you can easily implement session isolation, subagent triggering control, and tool execution deduplication, making your agent workflows more controllable, transparent, and debuggable.

Use Cases

  • Perform permission validation or block tool calls before execution
  • Log detailed audit information and execution records for agent tools
  • Control the triggering and execution environment of sub-agents

Best For

  • Developers requiring fine-grained control over agent behavior
  • DevOps engineers building automated workflows with audit logging
  • Advanced DeepSeek Harness users familiar with Claude Code configurations