Notification

A notification hook that runs a shell command when the agent sends a notification. The included command shows a desktop alert on macOS, Windows, or Linux.

In plain words
What is it for?
Use it to connect agent notifications to a desktop message through the configured shell command.
Why use it?
It lets you notice when the agent needs attention without watching the terminal continuously. The exact alert depends on the operating system.

Hook for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add hooks/khazp/vibe-coding-prompt-template/notification
Clone the repo
git clone --depth 1 https://github.com/KhazP/vibe-coding-prompt-template

Made for: Claude Code.

Per session not measured What this adds to a session before it is invoked.
When invoked not measured Not applicable: nothing here is loaded into a session.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Security

Grade A, and why

Notification scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the commands this hook runs, not an audit. A hook is shell that executes on your machine at the event it names, which is why every command in it is printed with what was found.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

"command": "node -e \"/* Static message text, so no shell-quoting surprises. */ const {exec}=require('child_process'); if(process.platform==='win32'){ exec('powershell -Command \\\"Add-Type -AssemblyName System.Windows.F
.claude/settings.json · 14 lines

What it actually says

{
  "Notification": [
    {
      "matcher": "",
      "hooks": [
        {
          "type": "command",
          "command": "node -e \"/* Static message text, so no shell-quoting surprises. */ const {exec}=require('child_process'); if(process.platform==='win32'){ exec('powershell -Command \\\"Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.MessageBox]::Show(\\'Claude Code needs your attention\\',\\'Claude Code\\')\\\"'); } else if(process.platform==='darwin'){ exec('osascript -e \\'display notification \\\"Claude Code needs your attention\\\" with title \\\"Claude Code\\\"\\''); } else { exec('notify-send \\\"Claude Code\\\" \\\"Claude Code needs your attention\\\"'); }\"",
          "timeout": 5000
        }
      ]
    }
  ]
}
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 14 lines scan A 0b420ebd9b60

Subscribe to this mod's changes

Notification is a hook published in the GitHub repository KhazP/vibe-coding-prompt-template (3,027 stars, last pushed 12d ago), licensed MIT. Its token cost is not measured: a hook is shell that never enters the context. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.