Skip to main content
plugin

agent-ping — Claude Code plugin: a sound when the agent needs you

Plays a sound and shows a desktop banner when Claude finishes a reply, asks something or wants permission. Step away and come back on the cue.

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add anthropics/claude-plugins-community
/plugin install agent-ping@claude-community
Open on GitHub

What agent-ping does

The plugin registers hooks on four events: the agent stops responding, sends a notification, requests permission, or hits an error. Each one triggers a sound, an OS banner, or both, depending on the alert mode you pick.

Run /agent-ping:config for the settings menu. There you toggle the whole thing on or off, set volume from 0 to 100, switch the Stop and Notification events separately, and point either event at your own WAV, MP3 or AIFF file. On macOS the Respect DND option mutes sounds while a Focus mode is on, and it asks for accessibility permissions the first time you use it. Volume control relies on afplay on macOS and paplay on Linux; Windows has no volume setting, so playback follows the system level.

macOS is where the plugin gets developed and tested, while Linux and Windows are best-effort. Hooks do not work in the Code tab of the Claude Desktop app, so the CLI and editor extensions are the environments where it runs. Coming from the older VS Code extension? The plugin copies your settings and clears the old hooks on first run, but you still have to uninstall the extension or you will get doubled banners and pings.

What it helps with

  • hear that a long task finished without watching the terminal
  • catch a permission prompt before it times out
  • notice a failed run while working on something else
  • mute alerts during a macOS Focus mode
  • swap in your own sound files

Example prompts for the agent

  • Turn on the stop sound and set the volume to 70
  • Open agent-ping settings and disable the notification event sound
  • Use done.wav for the Stop event

How to install agent-ping

Plugin marketplace

/plugin marketplace add anthropics/claude-plugins-community
/plugin install agent-ping@claude-community

Step by step, with commands for each platform: Claude Code plugins: marketplaces, installing, and building your own

Questions about agent-ping

How do I install agent-ping in Claude Code?

Add the marketplace first: /plugin marketplace add anthropics/claude-plugins-community, then install the plugin: /plugin install agent-ping@claude-community. No repo cloning needed, sounds work right away.

What does agent-ping do?

It listens to Claude hooks for Stop, Notification, PermissionRequest and StopFailure, then alerts you with a sound or a desktop banner when the agent needs attention.

Why is no sound playing?

Check with /agent-ping:config that the plugin is enabled and the event you expect is not switched off, then check your system volume. Windows has no separate volume control in the plugin.

Source text

SKILL.md · MIT
# Agent Ping

[![Version](https://img.shields.io/badge/version-2.1.1-blue)](https://github.com/DavidWilsby/agent-ping/releases) [![Claude Marketplace](https://img.shields.io/badge/Claude-Marketplace-blueviolet)](https://github.com/DavidWilsby/agent-ping) [![License: MIT](https://img.shields.io/badge/license-MIT-green)](LICENSE)

**Platforms:** macOS · Linux · Windows

![Agent Ping banner](https://raw.githubusercontent.com/DavidWilsby/agent-ping/master/banner.png)

Sound alerts and OS notifications when Claude needs your attention — so you can step away and come back when needed. Works across Claude Code CLI and all editors (VS Code, Cursor, Windsurf, JetBrains).

- **Zero config** — install and it just works, sounds play automatically
- **Four events** — stop, notification, permission request, and error
- **Customizable** — choose sounds, set volume, toggle OS notification banners
- **Cross-platform** — macOS, Linux, and Windows support

---

## ⚡️ Quick start

```
/plugin marketplace add DavidWilsby/agent-ping
/plugin install agent-ping
```

Sounds will play automatically — no further setup needed. You don't need to clone this repo.

**Test it** — Ask Claude "What is 2 + 2?" — you should hear the stop sound when it replies.

To configure settings interactively:

```
/agent-ping:config
```

---

## 🧹 Uninstall

```
/plugin uninstall agent-ping
```

---

## ⚙️ Settings

Run `/agent-ping:config` to open the interactive settings menu.

| Setting | Description | Default |
| ------- | ----------- | ------- |
| **Enabled** | Enable or disable Agent Ping entirely | On |
| **Alert Mode** | Play a sound, show an OS notification banner, or both | Sound |
| **Respect DND** | Suppress sounds when any macOS Focus mode is active (notification banners are managed by macOS). Requires macOS accessibility permissions on first use. | Off |
| **Volume** | Global volume for all sounds (0 = mute, 100 = full volume) | 50 |
| **Notification Enabled** | Enable or disable the Notification event sound | On |
| **Idle Prompt Enabled** | Play the notification sound when Claude is waiting for input | Off |
| **Stop Enabled** | Enable or disable the Stop event sound | On |
| **Custom Sounds** | Set custom sound file paths (WAV, MP3, AIFF) for stop and notification events | Bundled defaults |

---

## 🔍 How it works

Agent Ping registers Claude Code hooks for four events:

| Event | When it fires |
| ----- | ------------- |
| **Stop** | Claude finishes responding |
| **Notification** | Claude sends a notification (filtered to actionable types only) |
| **PermissionRequest** | Claude needs your permission to proceed |
| **StopFailure** | Claude encounters an error and needs attention |

When a hook fires, Agent Ping plays a sound and/or shows an OS notification based on your alert mode setting.

---

## 📱 Platform notes

> **Note:** Agent Ping is developed and tested on macOS. Linux and Windows support is provided on a best-effort basis. Bug reports and pull requests are welcome.

| Platform | How sound plays | Volume control | Notification banners | Focus / DND |
| -------- | --------------- | -------------- | -------------------- | ----------- |
| macOS | `afplay` — built in | Supported | `terminal-notifier` (bundled) with app icon | Supported — sounds suppressed during any Focus mode; banners filtered by macOS |
| Windows | PowerShell — built in | Not supported — uses system volume | PowerShell toast | Not supported |
| Linux | `paplay` (PulseAudio) or `aplay` | `paplay` supported, `aplay` uses system volume | `notify-send` with app icon | Not supported |

---

## 🔄 Migrating from the VS Code extension

If you previously used the Agent Ping VS Code extension (v1.4.x or earlier):

1. Install the plugin (see [Quick start](#quick-start) above)
2. The plugin automatically copies your settings and removes the old hooks on first run
3. Uninstall the old extension:
   - VS Code: `code --uninstall-extension dawi.agent-ping-vscode`
   - Cursor: `cursor --uninstall-extension dawi.agent-ping-vscode`
   - Windsurf: `windsurf --uninstall-extension dawi.agent-ping-vscode`
4. Optionally remove the global npm package: `npm uninstall -g agent-ping-vscode`

---

## 🐛 Troubleshooting

**No sound plays** — Run `/agent-ping:config` and check that **Enabled** is on and the relevant event (Notification or Stop) is enabled. Check your system volume.

**Wrong sound plays** — Run `/agent-ping:config` and check the Custom Sounds submenu.

**Double banners or pings** — If you previously used the VS Code extension, it may reinstall its hooks alongside the plugin's. Uninstall the extension to fix this: `code --uninstall-extension dawi.agent-ping-vscode` (or `cursor` / `windsurf`).

**Plugin doesn't work in Claude Desktop app** — Hooks, MCP tools, and skills do not currently work in the Claude Desktop app's Code tab. This is a known platform limitation where the desktop app excludes plugin-scoped settings. See [#27398](https://github.com/anthropics/claude-code/issues/27398). The plugin works fully in the CLI and IDE extensions (VS Code, Cursor, Windsurf, JetBrains).

---

## 👾 Using the VS Code extension (legacy)

If you prefer the editor extension, it's still available on [Open VSX](https://open-vsx.org/extension/dawi/agent-ping-vscode) and works with VS Code, Cursor, and Windsurf. The extension is no longer actively developed but remains functional.

Extension users can override sounds and volume via environment variables in their shell profile (e.g. `~/.zshrc`):

```bash
export AGENT_PING_VOLUME=75
export AGENT_PING_STOP_SOUND=/path/to/sound.wav
export AGENT_PING_NOTIFICATION_SOUND=/path/to/sound.wav
```

---

## 📄 License

[MIT](LICENSE)

© DavidWilsby · MIT · DavidWilsby/agent-ping

Similar plugins

All plugins for Agent setup: memory, context, orchestration →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor