{"repo":"ghy196830-del/agent-watch-approve","free":true,"listed":false,"github":"https://github.com/ghy196830-del/agent-watch-approve","clone":"git clone https://github.com/ghy196830-del/agent-watch-approve.git","description":"⌚ 在 Apple Watch 上批准 Claude Code / Codex 的危险操作,任务完成自动提醒 | Approve your AI coding agent's risky actions from your Apple Watch, get buzzed when tasks finish","language":"Python","stars":119,"topics":["apple-watch","claude-code","claude-code-hooks","codex","devtools","ntfy","pushcut","ai-agent","hooks","notifications"],"license":"MIT","category":"ai-agents","readme_excerpt":"⌚ agent-watch-approve AI 在干活,你在摸鱼;危险操作抬腕一点,任务跑完手表喊你。 让 Claude Code 和 Codex 的危险操作推送到你的 Apple Watch / iPhone 上审批, 任务完成自动通知 —— 全程不用回终端。 安卓 / Wear OS / 鸿蒙(兼容模式)同样支持 :一个开关切到 ntfy 载体,连 Pushcut 都不用装(见「不止苹果」一节)。 English Claude Code 的通知 Codex 的通知 :---: :---: 🦀 Claude 待批准 / 🦀 任务已完成 🤖 Codex 待批准 / 🤖 任务已完成 📺 看它干活 危险操作 → 手表一震 → ✅ 点一下放行,agent 继续干活 ▶️ 完整介绍视频(30 秒) —— 点开即播(备用:仓库内文件) 功能速览 :---: :---: :---: 危险命令,先问过你 Codex CLI 同样支持 连改它自己都要批准 跑完了,抬腕就知道 额度烧完,立刻知道 拦不住的,也提醒你 📸 真机实拍 左:Claude 要删文件夹,手表上批 · 中:Codex 要 git push,同一块表照单全收 · 右:跑完了,抬腕就知道 --- 🚀 最短成功路径(5 步) 1. 装 Pushcut (iPhone + Apple Watch 都装),app 里建一条 Notification(名字随意),Account → API 拿 key; 2. 想一个长随机 ntfy topic 名 (无需注册,名字就是密码,例如 myagent 8f3k2j9x ); 3. 放脚本 : watch approve.py / watch done.py / watch.env (由 watch.env.example 复制)放进一个固定目录,填好 key / topic; 4. 自检 : python watch approve.py --doctor —— 逐项检查配置、Pushcut(key/设备名/通知名)、ntfy 收发,最后真发一条测试通知到你手机/手表; 5. 接线 : python watch approve.py --print-claude-config / --print-codex-config 打印已转义好绝对路径的配置片段,粘进 /.claude/settings.json / /.codex/hooks.json ,重启 agent,跑条危险命令测试。 每步细节见下文「十分钟上手」;哪里不顺,先跑 --doctor ,再看「排错」。 ( 安卓 / Wear OS 用户 :第 1 步换成装 ntfy app,免 Pushcut,走「📱 不止苹果」一节。) 它解决什么问题 跑长任务时,agent 时不时停下来问一句「可以执行吗?」——你必须守着终端。这个项目把这件事搬到手腕上: 1. ⌚ 远程审批 —— 危险操作( rm -rf 、 git push --force 、提权、出沙箱……)推送到手表,带 ✅ 允许 / ❌ 拒绝 / 🖥️ 终端查看 按钮,点一下,结果秒回 agent(「终端查看」= 退回终端慢慢看再决定); 2. 🤔 选择题上手表 —— Claude 在终端抛出的多选决策框(方案 A 还是方案 B?)也推到手表,按钮 方案A / 方案B / 🖥️ 在终端查看 ,点哪个 Claude 就按哪个继续; 3. 🔔 完成提醒 —— agent 每跑完一轮任务,手表震一下「任务已完成」,你随时回来验收;","default_branch":null,"files":null,"tree":[],"storefront":"/r/ghy196830-del","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ghy196830-del/agent-watch-approve/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}