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"
      ]
    }
  }
}
相关推荐
Shi_haoliu2 小时前
openClaw源码部署-linux
前端·python·ai·openclaw
茶陵后3 小时前
吃灰安卓机变身 OpenClaw 服务器 — 完整手册
ai·aigc·agent·skill·mcp·open claw
luckyzlb4 小时前
01-milvus
ai·milvus·spring ai·langchain4j·springaialibaba
草莓泰面包5 小时前
虚拟机VMware安装OpenClaw
人工智能·ai·大模型·openclaw
unsynchronized6 小时前
OpenClaw 安装指南:Linux 与 Windows 系统详细教程
linux·运维·windows·ai
流水武qin8 小时前
SpringAI多模态的基本使用
java·spring boot·spring·ai
做萤石二次开发的哈哈8 小时前
萤石开放平台 × OpenClaw:打造AI摄像头技能生态,Ezviz Open Skills正式发布
ai·智能体·openclaw