claude 任务完成通知

在 C:\Users\xx\.claude\settings.json 中

api key 这些已经配在环境变量中

Groovy 复制代码
{
  "hooks": {
    "Stop": [
      {
        "matcher": "",
        "hooks": [
          {
            "type": "command",
            "command": "powershell -NoProfile -ExecutionPolicy Bypass -Command 'Add-Type -AssemblyName System.Windows.Forms; $notify = New-Object System.Windows.Forms.NotifyIcon; $notify.Icon = [System.Drawing.SystemIcons]::Information; $notify.Visible = $true; $notify.ShowBalloonTip(5000, \"Claude Code\", \"Claude Code 任务完成\", [System.Windows.Forms.ToolTipIcon]::Info); Start-Sleep -Milliseconds 5500; $notify.Dispose()'"
          }
        ]
      }
    ],
    "Notification": [
      {
        "matcher": "",
        "hooks": [
          {
            "type": "command",
            "command": "powershell -NoProfile -ExecutionPolicy Bypass -Command 'Add-Type -AssemblyName System.Windows.Forms; $notify = New-Object System.Windows.Forms.NotifyIcon; $notify.Icon = [System.Drawing.SystemIcons]::Warning; $notify.Visible = $true; $notify.ShowBalloonTip(5000, \"Claude Code\", \"Claude Code 需要您的关注\", [System.Windows.Forms.ToolTipIcon]::Warning); Start-Sleep -Milliseconds 5500; $notify.Dispose()'"
          }
        ]
      }
    ]
  },
  "permissions": {
    "autoApprove": {
      "read": true,
      "create": true,
      "commands": [
        "ohpm",
        "npm",
        "npm test",
        "ls*",
        "ohpm install"
      ]
    }
  }
}
相关推荐
ShineWinsu3 小时前
对于Coze—AI:SDK的解析
人工智能·python·ai·sdk·项目·coze·字节跳动
代码方舟3 小时前
零信任架构实战:基于天远名下企业A构建自动化B2B供应链准入网关
人工智能·ai·工具分享
右耳朵猫AI3 小时前
Python周刊2026W38 | 标准流编码修复、PEP 845/846 草案、解析器提速 10%、集合字典二次复杂度
python·ai·数据科学
东姬AI4 小时前
语音抢着实时,视频也抢着实时:两条赛道同时冲刺,交汇点却还差一步
ai·数字人·多模态·视频生成·语音大模型
等待_迷失的Linux7 小时前
嘉信国际的8位账号
ai
MayBaymax8 小时前
Spring AI Alibaba Graph 实战:客服工单智能处理
java·ai·ai编程
sky_8106138 小时前
AI Agent 2026编程类客户端调研报告
人工智能·ai
海宇大数据8 小时前
零信任架构实战:基于海宇学历证书核验构建自动化教育资质网关
人工智能·ai·工具分享
代码方舟8 小时前
零信任架构实战:基于天远二手车VIN估值构建自动化车险承保网关
人工智能·ai·工具分享
liulilittle9 小时前
mock 规范总纲
ai·自动化·llm·mock·测试·tools