请教下各位佬.如何实现claude code能在需要人工介入(包括授权、计划决策等)的时候调用hook

2026-04-11 14:221阅读0评论SEO基础
  • 内容介绍
  • 文章标签
  • 相关推荐
问题描述:

请教下各位佬.想实现一个claude code能在需要人工介入(包括授权、计划决策等)的时候触发hooks调用外部url做提醒的指令.现在我尝试用hooks一直没有触发.有佬能教教吗

"hooks": { "Notification": [ { "matcher": "permission_prompt", "hooks": [ { "type": "command", "command": "", "timeout": 10, "statusMessage": "Sending approval notification" } ] }, { "matcher": "elicitation_dialog", "hooks": [ { "type": "command", "command": "", "timeout": 10, "statusMessage": "Sending decision notification" } ] } ] }, 网友解答:


--【壹】--:

请教下各位佬.想实现一个claude code能在需要人工介入(包括授权、计划决策等)的时候触发hooks调用外部url做提醒的指令.现在我尝试用hooks一直没有触发.有佬能教教吗

"hooks": { "Notification": [ { "matcher": "permission_prompt", "hooks": [ { "type": "command", "command": "", "timeout": 10, "statusMessage": "Sending approval notification" } ] }, { "matcher": "elicitation_dialog", "hooks": [ { "type": "command", "command": "", "timeout": 10, "statusMessage": "Sending decision notification" } ] } ] },

标签:快问快答
问题描述:

请教下各位佬.想实现一个claude code能在需要人工介入(包括授权、计划决策等)的时候触发hooks调用外部url做提醒的指令.现在我尝试用hooks一直没有触发.有佬能教教吗

"hooks": { "Notification": [ { "matcher": "permission_prompt", "hooks": [ { "type": "command", "command": "", "timeout": 10, "statusMessage": "Sending approval notification" } ] }, { "matcher": "elicitation_dialog", "hooks": [ { "type": "command", "command": "", "timeout": 10, "statusMessage": "Sending decision notification" } ] } ] }, 网友解答:


--【壹】--:

请教下各位佬.想实现一个claude code能在需要人工介入(包括授权、计划决策等)的时候触发hooks调用外部url做提醒的指令.现在我尝试用hooks一直没有触发.有佬能教教吗

"hooks": { "Notification": [ { "matcher": "permission_prompt", "hooks": [ { "type": "command", "command": "", "timeout": 10, "statusMessage": "Sending approval notification" } ] }, { "matcher": "elicitation_dialog", "hooks": [ { "type": "command", "command": "", "timeout": 10, "statusMessage": "Sending decision notification" } ] } ] },

标签:快问快答