hooks-adapter: A compatibility layer enabling existing hooks configuration to continue working on DSH.

# Introduction Writing hooks is the most common way to customize agent workflows: intercepting dangerous commands before tools execute, sending notifications upon task completion, and injecting context when a session starts. If you have written such declarations in Claude Code, Codex, or opencode, you will encounter a practical problem when switching to DeepSeek Harness (dsh): these configurations adhere to the original harness format, which dsh cannot recognize directly; you either have to rewrite them from scratch or manually sync them across multiple configuration sets. The hooks-adapter introduced below addresses this issue: it reads existing hooks configuration files, maps events from various platforms to dsh extension points, and allows the original declarations to remain unchanged, enabling seamless operation within dsh.

Read More