[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"product:ye-xun-te-gong":3},{"id":4,"name":5,"slug":6,"slogan":7,"description":8,"organization":9,"images":10,"avatar_url":11,"image_url":12,"website_url":13,"access_links":14,"status":19,"build_by":20,"categories":29,"stats":36,"upload_relationship":43,"create_at":44,"update_at":45,"owner_id":46,"upload_user_id":46,"reviewer_id":47,"video_info":48,"prerelease_cover_url":49,"scheduled_publish_at":48,"user_scheduled":50,"emoji_reacts":51,"tag":48,"pass_review":48,"user_star":50},2938,"夜巡特工","ye-xun-te-gong","一只咖啡杯，守护你的睡眠","{\"type\": \"doc\", \"content\": [{\"type\": \"paragraph\", \"content\": [{\"text\": \"一句话定位\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"text\": \"Agent Night Watch 是一个写在 MacBook 菜单栏的 Raycast 开关，样子是一只咖啡杯。单击打开它，可以合上电脑盖子，长任务的 Agent 照常继续跑；单击关掉它，恢复正常的合盖睡眠。\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"type\": \"hardBreak\"}, {\"text\": \"它解决什么问题\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"text\": \"把长任务（比如 Codex 跑自动化）交给 Agent 后合盖，MacBook 会进入睡眠，任务中断。一直开着屏幕又晃眼，心里总是情不自禁惦记。Agent Night Watch 用一个菜单栏咖啡杯开关，让「合盖保持运行」和「正常睡眠」可以随意切换。\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"type\": \"hardBreak\"}, {\"text\": \" 功能亮点\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"type\": \"hardBreak\"}, {\"text\": \"| 亮点 | 说明 |\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"text\": \"| 咖啡杯状态一目了然 | 冒水汽 = 合盖继续跑；没水汽 = 正常睡眠 |\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"text\": \"| 一次点击切换 | 正常状态下单击咖啡杯直接切换，不用进菜单 |\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"text\": \"| 严格权限边界 | 不存密码、不配免密 sudo、不装常驻特权助手 |\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"text\": \"| 每一次开启都授权 | 开启弹管理员授权，关闭自己创建的会话不需再输密码 |\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"text\": \"| 读真实系统状态 | 用 macOS `SleepDisabled` 作为事实源，不是普通空闲睡眠断言 |\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"text\": \"| 可恢复关闭 | 随时点一下关掉，电脑恢复合盖睡眠 |\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"text\": \"| 与 caffeinate 不同 | 普通工具防空闲睡眠，这个显式控制全局合盖睡眠覆盖 |\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"type\": \"hardBreak\"}, {\"text\": \" 使用场景\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"text\": \"- **夜晚**：睡前合盖，让 Codex\u002FAgent 跑长任务，不被屏幕光打扰，第二天醒来收货。\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"text\": \"- **出门**：把长任务挂上再合盖离开，保护屏幕隐私，回来查看任务顺畅。\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"text\": \"- **调试运行**：需要持续运行的本地服务或长任务，合盖保持在线。\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"text\": \"- **省心看守**：不用一直盯着屏幕看进度，合盖让电脑自己干活。\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"type\": \"hardBreak\"}, {\"text\": \" 开源与安装\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"text\": \"- MIT 协议开源\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"text\": \"- GitHub：https:\u002F\u002Fgithub.com\u002FYuchen07569\u002Fraycast-agent-night-watch\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"text\": \"- Raycast Store 版本已提交，尚未上架；上架前可从源码安装：\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"text\": \"  ```\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"text\": \"  git clone https:\u002F\u002Fgithub.com\u002FYuchen07569\u002Fraycast-agent-night-watch.git\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"text\": \"  cd raycast-agent-night-watch\u002Fraycast-extension\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"text\": \"  npm ci\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"text\": \"  npm run dev\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"text\": \"  ```\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"text\": \"- 仓库附带一个 Codex Skill，负责安装、检查、升级、排障（不替你开\u002F关睡眠，开关仍在咖啡杯和快捷键上）\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"type\": \"hardBreak\"}, {\"text\": \"### 安全与数据\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"text\": \"- 无网络请求、无遥测、无账号系统\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"text\": \"- 不保存密码、不写用户会话目录的敏感文件\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"text\": \"- 状态文件写在 macOS 应用支持目录（仅本机）\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"text\": \"- 合盖持续运行会耗电发热，建议放坚硬通风位置，任务跑完记得关掉\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"type\": \"hardBreak\"}, {\"text\": \" 三、FAQ\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"type\": \"hardBreak\"}, {\"text\": \"Q1：它会一直让电池耗电吗？\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"text\": \"只在开启时保持合盖运行。任务跑完点一下关掉，就恢复正常合盖睡眠，不影响续航。\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"type\": \"hardBreak\"}, {\"text\": \"Q2：需要会写代码吗？\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"text\": \"不用。装上 Raycast 扩展就能用，菜单栏点咖啡杯开关即可。\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"type\": \"hardBreak\"}, {\"text\": \"Q3：它对所有 Agent 都有效吗？\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"text\": \"它控制的是 macOS 合盖睡眠本身，不只是某个 Agent。只要进程在合盖状态下不被系统睡眠打断，就能持续运行。个别需要常驻屏幕的机制场景除外。\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"type\": \"hardBreak\"}, {\"text\": \"Q4：为什么不直接用 caffeinate？\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"text\": \"`caffeinate` 通常防空闲睡眠，管不到 MacBook 合盖的睡眠逻辑。Agent Night Watch 显式控制 `SleepDisabled`，针对合盖场景更准确。\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"type\": \"hardBreak\"}, {\"text\": \"Q5：它安全吗？会碰我的密码吗？\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"text\": \"不做任何密码\u002F凭据存储。开启时会触发 macOS 自带管理员授权（每次开启都确认一次），不配置免密 sudo，不装特权助手。开源自可审计。\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"type\": \"hardBreak\"}, {\"text\": \"Q6：会损坏电脑吗？\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"text\": \"不会。它只是切换一个系统睡眠开关。建议合盖运行时放通风处避免过热。\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"type\": \"hardBreak\"}, {\"text\": \"Q7：能和其他工具一起用吗？\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}, {\"text\": \"可以。它只控制合盖睡眠覆盖，不与 IDEs、终端、其他 Raycast 扩展冲突。\", \"type\": \"text\"}, {\"type\": \"hardBreak\"}]}, {\"type\": \"paragraph\", \"content\": [{\"text\": \"ps：Night Watch 不会保持屏幕点亮。合盖持续运算仍会产生热量；高负载任务建议开盖并让屏幕自行熄灭，严禁在包内、床上或通风受阻的环境中运行。合盖前请移除键盘膜和较厚的摄像头盖。\", \"type\": \"text\", \"marks\": [{\"type\": \"bold\"}]}]}, {\"type\": \"paragraph\"}, {\"type\": \"paragraph\"}]}","胡昱辰","https:\u002F\u002Fwatcha.tos-cn-beijing.volces.com\u002Fprod\u002Fuser\u002Fuploads\u002F10094883_1786722938_0daf0a8e-7ae3-4152-9710-6259fa7a84f2.png;https:\u002F\u002Fwatcha.tos-cn-beijing.volces.com\u002Fprod\u002Fuser\u002Fuploads\u002F10094883_1786723003_628c7640-07e4-49a6-8ba7-d4fb4f8a9c6b.png;https:\u002F\u002Fwatcha.tos-cn-beijing.volces.com\u002Fprod\u002Fuser\u002Fuploads\u002F10094883_1786723030_ac2062a7-ba69-41dd-a42a-c985923da2f3.png","https:\u002F\u002Fwatcha.tos-cn-beijing.volces.com\u002Fprod\u002Fuser\u002Fuploads\u002F10094883_1786724134_3a7209d5-a756-4ac3-a574-0f1f18962022.png","https:\u002F\u002Fwatcha.tos-cn-beijing.volces.com\u002Fprod\u002Fuser\u002Fuploads\u002F10094883_1786724129_ba35abdb-f63f-4822-9a8c-b3d97762f3f1.png","https:\u002F\u002Fyuchen07569.github.io\u002Fraycast-agent-night-watch\u002F",{"items":15},[16],{"platform":17,"url":13,"is_primary":18},"WEB",true,"PUBLISHED",[21],{"id":22,"product_id":4,"build_by_id":23,"story":24,"build_by":25},961,1378,"它帮我在发现这个小问题后，成功进行功能架构以及项目的落地，完成了一次完整的skill制作和github发布",{"id":23,"slug":26,"name":27,"avatar_url":28},"codex-app","CodeX app","https:\u002F\u002Fwatcha.tos-cn-beijing.volces.com\u002Fprod\u002Fuser\u002Fuploads\u002F10005546_1770106375_10f37609-7f4b-42a9-80f6-bb17075cdc94.png",[30,33],{"id":31,"name":32},14,"效率工具",{"id":34,"name":35},1,"通用助手",{"upvotes":37,"stars":38,"review_count":37,"reply_count":37,"score":39,"hot_score":40,"post_count":41,"update_at":42},6,10,6.096569663469355,5.7492581883421965e-8,2,"2026-11-24T19:52:16.04Z","OWNER","2026-08-14T16:57:49.285Z","2026-08-20T09:20:18.997Z",10094883,10004627,null,"",false,{"reacts":52},[53],{"emoji_code":54,"count":34,"reacted":50},"🤩"]