dsh-plugin-hooks
Claude-Code-style lifecycle hooks: configured shell commands run before/after model tool calls with a JSON payload on stdin; a non-zero pre-tool exit blocks the call.
Claude Code 风格生命周期 hooks:工具调用前后自动执行 shell 命令(stdin 收 JSON payload),pre-tool 非零退出即阻断调用。
How to install
dsh plugin add dsh-plugin-hooks About
dsh-plugin-hooks DeepSeek Harness 插件:把 **Claude Code 风格的 lifecycle hooks** 带到 DSH —— 配置驱动的 shell 命令,在模型工具调用前后自动执行。 背景 DSH 0.1.0-rc.6 没有 hooks 能力,但架构已经预留了接缝:tools/pre-execute / tools/post-execute 两个有序 waterfall,以及 shell 服务"通过 stdin 给命令喂 JSON payload"的词汇表(见 @deepseek-ai/dsh-shell)。这个插件以**纯外部插件**形式补上这块空白,设计对齐官方预留接口: pre-tool hook:匹配的工具执行**前**运行;命令非零退出 → **阻止**该工具调用(等价 Claude Code PreToolUse 返回 error); post-tool hook:工具结果落地后运行;退出码只记录,不改变工具结果。 配置 JSON 配置,来源二选一或叠加: 1. **文件**(默认 $DSH_HOME/hooks.json): json { "hooks": [ { "id": "lint-after-edit", "event": "post-tool", "tools": ["edit", "write"], "comm…
Recommendation signals
Meta
- License
- MIT
- Language
- JavaScript
- GitHub stars
- 2
- mo. downloads
- 291
- Last push
- 2026-08-14
- Created
- 2026-08-14
Basic safety check
- Findings
- None
- Sources
- curated:awesome-dsh-plugin.com, curated:awesome-dsh-plugin/awesome-dsh-plugin
- Topics
- deepseek, dsh, dsh-plugin
Related plugins
compound-engineering-plugin
EveryInc/compound-engineering-plugin
Official Compound Engineering plugin for Claude Code, Codex, Cursor, and more
gstack
garrytan/gstack
Use Garry Tan's exact Claude Code setup: 23 opinionated tools that serve as CEO, Designer, Eng Manager, Release Manager, Doc Engineer, and QA
dsh-browser
omdsh-dev/dsh-browser
Chrome sidebar extension that lets DeepSeek Harness operate your browser directly, no vision capabilities required. 一款 Chrome 侧边栏扩展程序,可让 DeepSeek Harness 直接操控您的浏览器,无需视觉能力。
n8n-mcp
czlonkowski/n8n-mcp
A MCP for Claude Desktop / Claude Code / Windsurf / Cursor to build n8n workflows for you