dsh-hooks
适用于 DeepSeek Harness 的配置驱动型生命周期钩子插件:允许直接在 cordis.patch.yml 中声明事件到命令的钩子,无需编写插件代码。
AI 分析
核心用途是实现 DSH 事件触发自定义脚本。适合需要将会话结束、审批请求等系统事件无缝对接至外部系统(如飞书通知、本地脚本)的运维或高级用户。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:PeterBon/dsh-hooks說明文件
閱讀完整 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).