PeterBon/dsh-hooks

PeterBon★ 2TypeScript最后同步: 2026-08-15

在 GitHub 打开

Config-driven lifecycle hooks plugin for DeepSeek Harness

README 摘要

dsh-hooks Config-driven lifecycle hooks plugin for DeepSeek Harness (dsh). Declare event - command hooks directly in your profile's cordis.patch.yml — like Codex CLI / OpenCode hooks, but for dsh. No plugin code required. 中文文档 Design Feishu example Install Restart dsh web . Configure Add a config block to your profile's cordis.patch.yml : Events (v1) Event When it fires Useful context turn/start A turn begins session id, turn turn/end A turn ends ( completed / error / aborted / blocked / max-tokens / interrupted ) reason, turn, duration approval/asked A tool call requests user approval tool name, call id, reason agent/created An agent is published session id agent/disposed An agent leaves the registry session id agent/error The agent loop reports an error error text agent/status Agent status transition status The when filter for turn/end matches the reason.kind value ( completed , error , …). Hooks for other events run unconditionally. Command execution - Each matching hook spawns run through the platform shell, fire-and-forget : failures only console.warn , never retried, never block the agent loop. - Context is passed via environment variables (no shell injection through data): V…

在 GitHub 查看完整 README →
工具/开发dsh-plugin

分类