dsh-hooks
Config-driven lifecycle hooks plugin for DeepSeek Harness: declare event -> command hooks in cordis.patch.yml, no plugin code required.
AI Analysis
核心用途是实现 DSH 事件触发自定义脚本。适合需要将会话结束、审批请求等系统事件无缝对接至外部系统(如飞书通知、本地脚本)的运维或高级用户。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:PeterBon/dsh-hooksREADME
Read the full README ↗Manual configuration
Prefer wiring it by hand? See examples/notify-feishu.mjs — a zero-dependency script that posts turn-completion / approval notices through the Feishu app API (works without a group custom bot). Configure it like:
- id: dsh-hooks
name: dsh-hooks
config:
hooks:
- on: 'turn/end'
when: 'completed'
run: 'node D:/path/to/examples/notify-feishu.mjs'
- on: 'approval/asked'
run: 'node D:/path/to/examples/notify-feishu.mjs --approval'
with DSH_HOOKS_FEISHU_APP_ID / DSH_HOOKS_FEISHU_APP_SECRET / DSH_HOOKS_FEISHU_TO in the process environment (never in config files).