Appearance
Kiro Agent Notifications 会在 agent 需要输入、执行成功或失败时发送系统级通知。它适合长任务、后台运行 Kiro 或切到其他应用时使用,避免错过审批、错误和任务完成信号。
Kiro Agent Notifications:后台执行时如何收到系统提醒
Kiro agent 可以执行较长任务,例如生成 spec、改多处代码、运行命令或等待审批。如果你切到其他应用,很容易错过它何时需要你介入。
Agent Notifications 就是为这个场景准备的。它会通过操作系统原生通知提醒你关键执行事件,即使 Kiro 在后台也能看到。
通知类型
Kiro 主要提供三类 agent notification:
- Action Required:agent 需要你输入或审批才能继续,例如请求运行 shell command。
- Success:agent 执行成功,例如 spec task 完成或代码生成结束。
- Failure:agent 执行失败,例如 spec 创建失败或执行过程报错。
如果你使用 Autopilot,Success 和 Failure 可以帮助你知道长任务何时结束;如果你使用 Supervised,Action Required 更重要,因为它会提醒你回来审批改动。
如何配置通知
在 Kiro 中配置:
- 打开 Settings:Command Palette 中按
⌘/Ctrl+Shift+P。 - 搜索
Agent: Notifications。 - 选择你想启用的 agent notification 类型。
- 如果想关闭某类通知,取消对应 checkbox。
建议至少保留 Action Required。否则 agent 等待你审批时,你可能以为它还在执行。
通知不出现怎么办
如果 Kiro 通知没有出现,可以按顺序排查:
- 检查 Kiro 通知设置:确认你需要的通知类型已启用。
- 检查系统通知权限:
- macOS:System Settings → Notifications,找到 Kiro,确认 Allow notifications 已开启,并使用 Banners 或 Alerts。
- Windows / Linux:确认系统通知设置允许 Kiro 发送通知。
- 检查 Do Not Disturb / Focus mode:
- macOS:检查 Focus 是否开启。
- Windows:检查 Focus Assist / Do Not Disturb 是否关闭。
- 检查外接显示器或屏幕共享:macOS 镜像或共享屏幕时可能默认抑制通知。
- 重启 Kiro:修改系统设置后,重启 Kiro 让配置生效。
什么时候值得开启
这些场景建议开启通知:
- 让 Kiro 处理长时间任务。
- 经常把 Kiro 放后台。
- 使用 Supervised 模式,需要审批每轮文件修改。
- 让 agent 运行命令或等待权限确认。
- 多任务并行时不想一直盯着 chat。
常见问题
Q: Kiro 通知是 IDE 内提醒还是系统通知?
A: 是 OS-level native notifications,即操作系统原生通知。
Q: 只想收到需要审批的提醒可以吗?
A: 可以。在 Agent: Notifications 中只选择 Action Required 类型即可。
Q: macOS 屏幕共享时收不到通知怎么办?
A: 到 System Settings → Notifications,在 Show Notifications 相关选项中允许镜像或共享显示器时显示通知。