mute

mute is a command for Claude Code from etr/bells-and-whistles. It costs 10 tokens per session (1,052 once invoked), scanned A, original, MIT.

A command that turns notification sounds off either everywhere or only in the current terminal session or tmux tab.

In plain words
What is it for?
Use it to mute the current work session or all sessions, including terminals managed by tmux.
Why use it?
It stops notification noises when you need quiet without changing the setup for every session.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the bells-and-whistles plugin — 3 commands, 2 hooks shipped together

Good fit Use it to mute the current work session or all sessions, including terminals managed by tmux.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add etr/bells-and-whistles
Claude Code
/plugin install bells-and-whistles

Made for: Claude Code.

Or install bells-and-whistles, the plugin that ships this one along with the rest of its 3 commands, 2 hooks.

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 mute

README.md
[![agentmods](https://agentmods.dev/badge/commands/etr/bells-and-whistles/mute/github.svg)](https://agentmods.dev/commands/etr/bells-and-whistles/mute)
Your own site
<a href="https://agentmods.dev/commands/etr/bells-and-whistles/mute"><img src="https://agentmods.dev/badge/commands/etr/bells-and-whistles/mute/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mute

Your own site · 80×15
<a href="https://agentmods.dev/commands/etr/bells-and-whistles/mute"><img src="https://agentmods.dev/badge/commands/etr/bells-and-whistles/mute.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,052 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00010 $0.01052
Opus 5 $0.00005 $0.00526
Sonnet 5 $0.00002 $0.00210
Haiku 4.5 $0.00001 $0.00105

Measured 9d ago against content hash 639ff52dfffb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

mute scanned grade A with 0 findings 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 9d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/mute.md · 95 lines

How it starts

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

You are the bells-and-whistles mute command. Mute notification sounds globally or for the current session/tmux tab.

Steps

1. Detect environment

Run these bash commands to gather state:

# Mute state lives one level above the versioned plugin root so it survives upgrades
MUTE_DIR="${CLAUDE_PLUGIN_ROOT}/.."

# Get TTY for this session
MY_TTY=""
if [ -n "$TMUX_PANE" ]; then
    MY_TTY=$(tmux display-message -t "$TMUX_PANE" -p '#{pane_tty}' 2>/dev/null)
else
    _pid=$$
    while [ "$_pid" -gt 1 ]; do
        _raw=$(ps -o tty= -p "$_pid" 2>/dev/null | tr -d ' ')
        if [ -n "$_raw" ] && [ "$_raw" != "?" ]; then
            MY_TTY="/dev/$_raw"
            break
        fi
        _new_pid=$(ps -o ppid= -p "$_pid" 2>/dev/null | tr -d ' ')
        [ "$_new_pid" = "$_pid" ] && break
        _pid="$_new_pid"
    done
fi
TTY_ID=""
[ -n "$MY_TTY" ] && TTY_ID=$(echo "$MY_TTY" | sed 's|^/dev/||; s|/|_|g')

# Check if in tmux and get window index (for display only)
WIN=""
IN_TMUX=no
if [ -n "$TMUX_PANE" ]; then
    IN_TMUX=yes
    WIN=$(tmux display-message -t "$TMUX_PANE" -p '#{window_index}' 2>/dev/null)
fi
echo "MY_TTY=$MY_TTY TTY_ID=$TTY_ID WIN=$WIN IN_TMUX=$IN_TMUX"

# Check current mute state
echo "GLOBAL_MUTED=$([ -f "$MUTE_DIR/.mute_all" ] && echo yes || echo no)"
if [ -n "$TTY_ID" ]; then
    echo "SESSION_MUTED=$([ -f "$MUTE_DIR/.mute_tty_${TTY_ID}" ] && echo yes || echo no)"
fi

2. Report current state

If anything is already muted, tell the user what's currently muted before proceeding.

3. Handle arguments or prompt

Check the user's argument (the text after /mute):

  • Argument is all → mute globally
  • Argument is tab N (where N is a number, e.g. tab 3) → requires tmux. Resolve the TTY of tab N:
    TARGET_TTY=$(tmux display-message -t ":$N" -p '#{pane_tty}' 2>/dev/null)
    TARGET_TTY_ID=$(echo "$TARGET_TTY" | sed 's|^/dev/||; s|/|_|g')
    
    If not in tmux, inform the user that mute tab N requires tmux and offer to mute globally instead using AskUserQuestion with options: ["Mute globally", "Cancel"]
  • Argument is tab (no number) → mute current session via its TTY
    • If TTY detection failed, inform the user and offer to mute globally instead
  • No argument + in tmux → use AskUserQuestion:
    • Question: "What would you like to mute?"
    • Options: ["All tabs (global mute)", "This tab only (tab N)"] (replace N with the actual window index)
    • Map: "All tabs (global mute)" → mute globally, "This tab only ..." → mute current session
  • No argument + NOT in tmux → use AskUserQuestion:
    • Question: "What would you like to mute?"
    • Options: ["All sessions (global mute)", "This session only"]
    • Map: "All sessions (global mute)" → mute globally, "This session only" → mute current session

Read the full file on GitHub · 95 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. 9d ago First seen · 95 lines · 10 tokens per session scan A 639ff52dfffb

Subscribe to this mod's changes

mute is a command published in the GitHub repository etr/bells-and-whistles (7 stars, last pushed 5mo ago), licensed MIT. It adds 10 tokens to every session and 1,052 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.