目前Claude Code cli 是没有任务完成提醒的。
针对这个问题我的解决方案是hook+http+wpf项目触发系统弹窗,目前已经稳定使用。
hook配置如下:
"hooks": {
"Stop": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "curl -s -X POST http://localhost:9527/ -H \"Content-Type: application/json\" -d @- > /dev/null 2>&1"
}
]
}
],
"StopFailure": [
{
"matcher": "*",
"hooks": [
{
"type": "command",
"command": "curl -s -X POST http://localhost:9527/ -H \"Content-Type: application/json\" -d @- > /dev/null 2>&1"
}
]
}
],
"Notification": [
{
"matcher": "idle_prompt",
"hooks": [
{
"type": "command",
"command": "curl -s -X POST http://localhost:9527/ -H \"Content-Type: application/json\" -d @- > /dev/null 2>&1"
}
]
}
]
}
给佬友们提供个思路。
如果有需要wpf项目源码的也可以回复一下,确认佬友们有需要我就传到github上。
1 个帖子 - 1 位参与者