@erica-s/ai-agent-notify
v2.1.7
Published
Windows Toast notifications for Claude Code and Codex
Downloads
36
Maintainers
Readme
ai-agent-notify
Windows Toast notifications for Claude Code and Codex.
Get notified when Claude or Codex finishes a task, or when Codex requests approval.
Install
volta install @erica-s/ai-agent-notify
# or
npm install -g @erica-s/ai-agent-notifyUse ai-agent-notify.cmd for Windows direct process launch entries such as
Codex notify and MCP command.
Claude Code
Add to your ~/.claude/settings.json:
{
"hooks": {
"Stop": [{ "hooks": [{ "type": "command", "command": "ai-agent-notify.cmd", "async": true }] }],
"PermissionRequest": [{ "hooks": [{ "type": "command", "command": "ai-agent-notify.cmd", "async": true }] }]
}
}Stopsends notifications when a Claude Code task finishes.PermissionRequestsends notifications when Claude Code needs approval.- Remove either hook if you only want one of those two behaviors.
Codex
notify = [...]remains the primary completion path for Codex task completions and covers completion notifications.- Add the
ai_agent_notify_sidecarblock if you also want approval reminders and the watcher-side completion fallback that triggers when the legacy notify payload never reaches this package. - If you only care about completion notifications, omit the sidecar block;
notifystill works on its own.
~/.codex/config.toml:
notify = ["ai-agent-notify.cmd"]
[mcp_servers.ai_agent_notify_sidecar]
command = "ai-agent-notify.cmd"
args = ["codex-mcp-sidecar"]
required = false
startup_timeout_sec = 30codex-session-watchis the main path for approval reminders and the watcher-side completion fallback.codex-mcp-sidecarwill usually auto-startcodex-session-watch.- Do not set
cwdon the MCP server entry above.
Requirements
- Windows 10 / 11
- Node.js >= 16
- PowerShell 5.1+
Known Limitations
- Very long Codex sessions: completion notifications on Windows can stop firing after a very long session;
clearor start a new session if this happens, and enable the sidecar/codex-session-watchpath for fallback coverage. - Toast source shows as "Windows PowerShell" instead of "Claude Code"
- Windows 10:
Openmay not work due to OS limitations - macOS / Linux: not supported
Documentation
- Design and development docs:
docs/README.md
License
MIT
