enable-voice-alerts

enable-voice-alerts is a command for coding agents from bvdr/claude-plugins. It costs 14 tokens per session (520 once invoked), scanned B, original, MIT.

A command that makes Claude Code speak macOS voice notifications when it needs permission, has a question, is waiting for input, or finishes a session.

In plain words
What is it for?
Use it to configure spoken alerts in Claude Code's settings file on macOS.
Why use it?
It lets you notice Claude Code events without watching the terminal.

Command

Part of the bvdr plugin — 13 commands shipped together

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 commands/bvdr/claude-plugins/enable-voice-alerts
Clone the repo
git clone --depth 1 https://github.com/bvdr/claude-plugins

Or install bvdr, the plugin that ships this one along with the rest of its 13 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for enable-voice-alerts

README.md
[![agentmods](https://agentmods.dev/badge/commands/bvdr/claude-plugins/enable-voice-alerts.svg)](https://agentmods.dev/commands/bvdr/claude-plugins/enable-voice-alerts)
Your own site
<a href="https://agentmods.dev/commands/bvdr/claude-plugins/enable-voice-alerts"><img src="https://agentmods.dev/badge/commands/bvdr/claude-plugins/enable-voice-alerts.svg" alt="Measured on agentmods" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 520 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00014 $0.00520
Opus 5 $0.00007 $0.00260
Sonnet 5 $0.00003 $0.00104
Haiku 4.5 $0.00001 $0.00052

Measured 4d ago against content hash a95eb40a6173, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

enable-voice-alerts scanned grade B 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 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

- Otherwise → use `~/.claude/settings.json`
plugins/bvdr/commands/enable-voice-alerts.md · 104 lines

How it starts

The opening of the file, as written. The whole thing — 104 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Enable Voice Alerts

This command configures macOS text-to-speech notifications for Claude Code events.

What It Does

Sets up voice alerts for:

  • Permission requests - "Claude needs your permission"
  • Questions - "Claude has a question for you"
  • Idle prompts - "Claude is waiting for your input"
  • Session completion - "Claude has finished"

Setup Process

  1. Determine the Claude config directory:

    • If ~/.claude-work/ exists → use ~/.claude-work/settings.json
    • Otherwise → use ~/.claude/settings.json
  2. Read the existing settings.json file

  3. Add or update the hooks configuration:

{
  "hooks": {
    "PermissionRequest": [
      {
        "matcher": "*",
        "hooks": [
          {
            "type": "command",
            "command": "say 'Claude needs your permission'"
          }
        ]
      }
    ],
    "PreToolUse": [
      {
        "matcher": "AskUserQuestion",
        "hooks": [
          {
            "type": "command",
            "command": "say 'Claude has a question for you'"
          }
        ]
      }
    ],
    "Notification": [
      {
        "matcher": "idle_prompt",
        "hooks": [
          {
            "type": "command",
            "command": "say 'Claude is waiting for your input'"
          }
        ]
      }
    ],
    "Stop": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "say 'Claude has finished'"
          }
        ]
      }
    ]
  }
}
  1. Preserve all existing settings - only add/update the hooks key

  2. Write the updated settings.json

Completion Message

After setup, tell the user:

Voice alerts enabled!

You'll now hear spoken notifications when Claude:
- Needs permission for an action
- Has a question for you
- Is waiting for your input
- Finishes a task

Settings saved to: <settings_path>

To disable, remove the "hooks" section from your settings.json

Notes

  • Platform: macOS only (uses say command)
  • No restart needed: Hooks take effect immediately
  • Customization: Users can edit settings.json to change the spoken phrases

Read the full file on GitHub · 104 lines

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. 4d ago First seen · 104 lines · 14 tokens per session scan B a95eb40a6173

Subscribe to this mod's changes

enable-voice-alerts is a command published in the GitHub repository bvdr/claude-plugins (3 stars, last pushed 2mo ago), licensed MIT. It adds 14 tokens to every session and 520 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.