← 教程列表
news

hooks.json

📅 2026/6/12 16:30:02⏱ 约 5 分钟阅读👁 9 阅读

```json { "hooks": { "SessionStart": [ { "matcher": "startup|resume|clear|compact", "hooks": [ { "type": "command", "command": "\"${CLAUDE_PLUGIN_ROOT}/hooks/session-start.cmd\"" } ] } ] } } ``` Note: The path must be quoted because `${CLAUDE_PLUGIN_ROOT}` may contain spaces on Windows (e.g., `C:\Program Files\...`).

← 返回教程列表 AI8899 · 内容仅供学习参考