dsh-hooks-plugin
Claude Code-style lifecycle hooks for DeepSeek Harness, configured through .dsh/hooks.json.
Install
$ - **交付形态**:profile bundle(cordis.patch.yml 自动插行),用 dsh plugin --profile <p> add 安装。Plugin Overview & Capabilities
AI-assisted organization based on the public repository snapshot. The content must be grounded in source evidence and does not replace compatibility or security verification.
Key Capabilities
- Installs as a DSH profile bundle using dsh plugin --profile <profile> add.
- Loads hook configuration from global, preset, project, and project-local hooks.json files.
- Runs command and HTTP hooks for supported agent and tool lifecycle events.
- Supports PreToolUse decisions including deny, allow, and ask through hook output.
- Provides matcher patterns, conditional filters, per-hook timeouts, one-time hooks, and cross-layer deduplication.
- Reloads changed project configuration without restarting.
- Passes lifecycle context to command hooks as line-delimited JSON on stdin.
Useful For
- Block or gate selected tool operations before they run.
- Run automation or notifications after tool activity and session events.
- Reuse command-hook configuration patterns and scripts designed around Claude Code-style JSON structures.
- Send lifecycle payloads to an HTTP endpoint.
- Apply project-specific hook policies via .dsh/hooks.json.
Who It Fits
- DeepSeek Harness users who automate agent or tool lifecycle actions.
- Teams maintaining project-level shell-based tool policies.
- Developers migrating compatible command-hook configurations from Claude Code.
Documented Limitations
- Version 1 implements command and HTTP hooks; prompt and agent hook types are not implemented and unknown types are rejected.
- Only eight events are wired in v1: PreToolUse, PostToolUse, PostToolUseFailure, UserPromptSubmit, SessionStart, SessionEnd, Stop, and SubagentEnd.
- It does not implement an uninstall lifecycle, dangling-entry warnings, session-level configuration profiles, PreCompact/PostCompact, prompt/agent hooks, or a settings page.
- Claude Code compatibility is limited to configuration shape and a self-consistent protocol; Claude-specific environment variables and plugin-system substitutions are not provided.
- Command hooks execute in the triggering sandbox context.
DSH Compatibility
Version-specific runtime evidence collected by DSH Plugin. A missing result means we have not tested that combination yet.
Security Signals
Objective signals discovered from package metadata and source inspection. These are not a guarantee that a plugin is safe.
package.json declares 0 runtime, 0 development, 4 peer, and 0 optional dependencies.
package.json declares DSH bundle metadata.
GitHub reports the repository license as MIT.
A root package.json was captured and can be inspected by the registry.
Public GitHub source metadata is available for this registry snapshot.
Source & Registry Notes
Public provenance, Registry classification, and the latest source check for this entry, kept separate from runtime verification.
- Source repository
- KYinCode/dsh-hooks-plugin
- Registry source
- GitHub · dsh-plugin topic
- Registry classification
- Plugin
- Source checked
- 5dd8d64 · 2026-09-03
This project is independently indexed from public source information. DSH Plugin is not affiliated with DeepSeek or the plugin author. Always check the author repository before installation.
Repository Activity
- GitHub stars
- 4GitHub stars
- Forks
- 1
- Open issues
- 1
- Last commit
- 2026-08-19
- Last release
- No release detected
Related DSH Plugins
Ranked by overlapping capabilities, use cases, plugin type, categories, and DSH profile.
Second-model AI auto-review for DeepSeek Harness approval requests with fail-closed safety and session audit.
View plugin →Persistent multi-model Agent teams and bounded DAG workflows with GUI controls for DeepSeek Harness.
View plugin →Native SQLite-backed local project taskboard plugin and UI for DeepSeek Harness with Agent claim and review flows.
View plugin →Local, fast cross-agent memory and session indexing system with DeepSeek Harness integration.
View plugin →