¿Qué hace agent-notify?
Adds a desktop notification when the host coding agent finishes a turn. Idempotent — safe to re-run.
What gets installed
Scripts copied to ~/.agent-notify/:
notify.sh— unified notifier (detects argv[1] vs stdin automatically)notify-turn-start.sh— used by hook-based agents to record turn start timenotify-wrap.sh— generic CLI wrapper for agents without hooksopencode-plugin.ts— OpenCode TS plugin
Configs patched (only those whose home dir exists):
~/.codex/config.toml→notify = [".../notify.sh"]~/.codex/hooks.json→PermissionRequest+UserPromptSubmit~/.claude/settings.json→Stop+UserPromptSubmit+Notificationhooks~/.cursor/hooks.json→stop+beforeSubmitPrompthooks~/.qoder/settings.json→Stop+UserPromptSubmit+Notificationhooks~/.kimi/config.toml→[[hooks]]entries~/.config/opencode/plugins/→ dropsagent-notify.ts
See reference/agent-hooks.md for upstream docs and capability conclusions.
How to run
bash <skill-dir>/assets/install.sh
Flags: --target codex|claude|cursor|qoder|kimi|opencode, --uninstall
Optional: AGENT_NOTIFY_HOME=/path/to/home to force which profile receives configs (useful under WSL).
Agent execution steps
When invoked:
-
Resolve the absolute path to this skill's
assets/install.sh(do not rely on cwd). -
Run it with bash, forwarding user flags (
--uninstall,--target, …):- macOS / Linux:
bash <abs>/assets/install.sh - Windows (preferred): Git Bash
"C:\Program Files\Git\bin\bash.exe" "<abs>\assets\install.sh" - Windows + WSL (fallback): single-quote the
-cargument, pointHOMEat the Windows profile, run by path:wsl -e bash -lc 'export HOME=/mnt/c/Users/<you>; bash /mnt/c/Users/<you>/.agents/skills/agent-notify/assets/install.sh'
- macOS / Linux:
-
Hard rules (Windows agents):
- Do not pipe the script into bash (
sed … | bash,cat … | bash) —$0breaks and assets are lost. - Do not put
$(…)inside PowerShell double-quotedwsl … -c "…"strings — PowerShell expands them and can create junk files in the project cwd. - Prefer Git Bash over inventing a WSL+PowerShell quoting workaround.
- Do not pipe the script into bash (
-
Show installer stdout.
-
Remind the user to restart their agent session.