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"
      ]
    }
  }
}
相关推荐
Anastasiozzzz21 小时前
深入研究RAG: 在线阶段-查询&问答
数据库·人工智能·ai·embedding
Thomas.Sir1 天前
第二章:LlamaIndex 的基本概念
人工智能·python·ai·llama·llamaindex
运维智库1 天前
干货!Ubuntu 快速部署 Cloudreve :打造全功能私有云盘
ai
带刺的坐椅1 天前
Spring-AI 与 Solon-AI 深度对比分析报告
java·spring·ai·llm·solon·spring-ai·solon-ai
李庆政3701 天前
Cozi工作流 剪映 ai批量生成短视频教程
ai·短视频·剪辑·剪映·cozi·扣子编程
L-影1 天前
下篇:tool的四大门派,以及它到底帮AI干了什么
人工智能·ai·tool
深念Y1 天前
多模态技术详解:TTS、ASR、OCR
ide·ai·语音识别·agi·多模态·文字识别·实时语言
Ztopcloud极拓云视角1 天前
Gemini 3.1 Pro vs GPT-5.4 Pro:API成本1/3、性能差多少?选型实测笔记
人工智能·笔记·gpt·ai·语言模型
Fzuim1 天前
Claude Code 工具调用架构深度解析:六层防御与渐进式加载
ai·架构·工具调用·claude code
自信不孤单1 天前
UniAda核心代码详解
python·ai·大模型·tta·狄利克雷理论·证据感知