off

A command that turns off the sound Claude plays when it finishes responding, at both user and project settings levels.

In plain words
What is it for?
Use it when Claude's completion sound is distracting, especially during quiet work or shared-office sessions.
Why use it?
It removes unwanted notification sounds without requiring you to find and edit the settings files yourself.

Command 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 commands/dork-labs/dorkos/off
Clone the repo
git clone --depth 1 https://github.com/dork-labs/dorkos

Made for: Claude Code.

Per session 7 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 843 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.00007 $0.00843
Opus 5 $0.00003 $0.00421
Sonnet 5 $0.00001 $0.00169
Haiku 4.5 $0.00001 $0.00084

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

Security

Grade B, and why

off 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 2d 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.

grep -q "afplay" ~/.claude/settings.json && echo "ENABLED" || echo "DISABLED"
.claude/commands/cc/notify/off.md · 131 lines

How it starts

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

Disable Notification Sound

Disable the notification sound at both user and project levels.

Step 1: Check Both Levels

Check which level(s) have notifications enabled:

# Check user level
echo "=== User Level (~/.claude/settings.json) ==="
if [ -f ~/.claude/settings.json ]; then
  grep -q "afplay" ~/.claude/settings.json && echo "ENABLED" || echo "DISABLED"
else
  echo "DISABLED (file not found)"
fi

# Check project level
echo "=== Project Level (.claude/settings.json) ==="
if [ -f .claude/settings.json ]; then
  grep -q "afplay" .claude/settings.json && echo "ENABLED" || echo "DISABLED"
else
  echo "DISABLED (file not found)"
fi

Step 2: Remove from User Level (if enabled)

node -e "
const fs = require('fs');
const path = require('path');
const settingsPath = path.join(process.env.HOME, '.claude', 'settings.json');

try {
  const settings = JSON.parse(fs.readFileSync(settingsPath, 'utf8'));

  if (settings.hooks && settings.hooks.Stop) {
    // Remove Stop hooks that contain afplay
    settings.hooks.Stop = settings.hooks.Stop.filter(hookGroup => {
      if (hookGroup.hooks) {
        hookGroup.hooks = hookGroup.hooks.filter(hook =>
          !(hook.command && hook.command.includes('afplay'))
        );
        return hookGroup.hooks.length > 0;
      }
      return true;
    });

    // Clean up empty Stop array
    if (settings.hooks.Stop.length === 0) {
      delete settings.hooks.Stop;
    }

    // Clean up empty hooks object
    if (Object.keys(settings.hooks).length === 0) {
      delete settings.hooks;
    }

    fs.writeFileSync(settingsPath, JSON.stringify(settings, null, 2));
    console.log('User level: Notification sound disabled');
  } else {
    console.log('User level: No notification sound was configured');
  }
} catch (e) {
  console.log('User level: No settings file or not configured');
}
"

Step 3: Remove from Project Level (if enabled)

node -e "
const fs = require('fs');
const settingsPath = '.claude/settings.json';

try {
  const settings = JSON.parse(fs.readFileSync(settingsPath, 'utf8'));

  if (settings.hooks && settings.hooks.Stop) {
    // Remove Stop hooks that contain afplay
    settings.hooks.Stop = settings.hooks.Stop.filter(hookGroup => {
      if (hookGroup.hooks) {
        hookGroup.hooks = hookGroup.hooks.filter(hook =>
          !(hook.command && hook.command.includes('afplay'))
        );
        return hookGroup.hooks.length > 0;
      }
      return true;
    });

    // Clean up empty Stop array
    if (settings.hooks.Stop.length === 0) {
      delete settings.hooks.Stop;
    }

    // Clean up empty hooks object
    if (Object.keys(settings.hooks).length === 0) {
      delete settings.hooks;
    }

    fs.writeFileSync(settingsPath, JSON.stringify(settings, null, 2));
    console.log('Project level: Notification sound disabled');
  } else {
    console.log('Project level: No notification sound was configured');
  }
} catch (e) {
  console.log('Project level: No settings file or not configured');
}
"

Read the full file on GitHub · 131 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. 2d ago First seen · 131 lines · 7 tokens per session scan B 9eba3fe93dec

Subscribe to this mod's changes

off is a command published in the GitHub repository dork-labs/dorkos (9 stars, last pushed 2d ago), licensed MIT. It adds 7 tokens to every session and 843 once invoked, about $0.0000 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.