Back to Discover

echook

plugin

ChanMeng666

๐Ÿ”Š echook โ€” AI-operated audio notifications for Claude Code, Cursor IDE & Codex CLI โ€” 26 hooks, voice + chime themes, TTS, webhooks, rate-limit alerts, status line. Tell your AI agent to install โ€” natural language forever after.

View on GitHub
77 starsMITSynced Aug 2, 2026

Install to Claude Code

/plugin marketplace add ChanMeng666/echook

README

Project Banner

echook

AI-operated audio notification system for Claude Code, Cursor IDE, and Codex CLI.
You type one slash command at install time. Then natural language forever.
Hear when your agent finishes, needs permission, or hits a rate limit โ€” and pin a context-usage status line so you never lose your place.

v6.2.0 โ€” 39 hook events across all three editors ยท 2 audio themes ยท webhooks ยท TTS ยท rate-limit alerts ยท status line. Renamed claude-code-audio-hooks โ†’ echook (Echo + Hook) in 5.2.1; existing installs keep working. Full history in the CHANGELOG.

License: MIT Latest Release Release Date CI Platform Editors Install

Share This Project


Promotional Video

https://github.com/user-attachments/assets/804dff1e-56d8-49b2-b0c0-6706f3eeccd4

Built with Remotion, Claude Code, ElevenLabs & Suno. Source: echook-promo-video

๐Ÿค– This is an AI-Agent-first project โ€” you don't read this, your agent does

Humans: don't install or configure echook by hand. Point your AI agent โ€” Claude Code, Cursor, or Codex โ€” at this repo and say:

"Install echook from github.com/ChanMeng666/echook and set it up for me."

Your agent reads the docs, runs every command, verifies the result, and reports back. The agent-facing source of truth is AGENTS.md + llms.txt + the live audio-hooks manifest. The only thing a human ever types by hand is one /reload-plugins slash command (Claude Code has no CLI equivalent for it).

All a human needs to know is what echook does โ€” skim Key Features below โ€” so you can ask your agent for it in plain English: "mute audio for an hour", "switch to chimes", "watch my .env file", "put a context-usage bar in my status line". Not sure what's possible? Just ask your agent "what can I configure in echook?"

Table of Contents

What's New

Latest: v6.2.0 โ€” complete hook coverage + per-tool-type sounds on Cursor. 13 new lifecycle events (26 โ†’ 39 total): Claude Code's Setup / UserPromptExpansion / PostToolBatch / MessageDisplay, plus Cursor's granular per-tool-type events so shell commands, MCP calls, and file reads each get a distinct sound. All new events are opt-in.

Earlier highlights: v6.1.0 pinned the Claude Code startup banner into the status line with auto-reflow ยท v6.0.0 refocused echook to two tracks (audio/notification + status line) and made every operation a non-interactive CLI command.

๐Ÿ“œ Full version history โ†’ CHANGELOG.md ยท GitHub Releases


Key Features

echook does exactly two things, and does them well: (1) tells you what just happened in your AI session when you're not watching the window โ€” a sound at your desk, a spoken summary when you're away, a desktop toast or webhook when you're in another app โ€” and (2) a status line that keeps the facts you need pinned to the bottom of the terminal.

๐Ÿ”” Audio & out-of-band notifications

Hear (or get pinged) the moment your agent finishes, asks for permission, fails a tool, or hits a rate limit โ€” so you can walk away and trust you'll be called back.

ChannelWhat it's for
AudioA sound at your desk the instant something needs you. Two themes โ€” voice or chimes.
Desktop toastA glanceable popup when you're in another window.
TTSSpeaks a sanitized summary of Claude's actual final message when you're away from the screen.
WebhookSlack / Discord / Teams / ntfy / any HTTP endpoint โ€” get alerts on your phone.

๐Ÿ“Š Status Line โ€” startup-banner pin + context monitor

Pins your Claude Code startup banner at the bottom (so it never scrolls away) and adds real-time context-window and quota bars โ€” color-coded warnings before Claude enters the "agent dumb zone". Auto-reflows to fit any terminal width, so nothing is truncated.

Status Line โ€” context window monitor

ColorContext usedMeaningAction
๐ŸŸข Green< 50%Safe โ€” agent performs wellKeep working
๐ŸŸก Yellow50โ€“80%Caution โ€” entering the "dumb zone"/compact or /clear soon
๐Ÿ”ด Red> 80%Danger โ€” frequent errors/compact immediately
29 customisable status-line segments

A few of the highlights (run audio-hooks statusline segments for the full live catalog):

SegmentShows
modelModel name (e.g. [Opus 4.8 (1M context)])
effort / thinkingReasoning effort (๐Ÿง  high) / extended-thinking flag
cc_versionClaude Code's own version (โšก CC v2.1.193)
cwd / repoWorking directory / git remote owner/name
session_name / agent / output_style / vimSession label / --agent name / output style / vim mode
branch / git_dirty / worktreeGit branch / uncommitted-change count / managed worktree
pr / added_dirsPull-request number + review state / /add-dir count
api_quota / weekly_quota5-hour & 7-day rate-limit bars + reset times
context / tokens / exceeds_200kContext bar (+ tokens, /compact hint) / cache-hit ratio / >200K flag
cost / duration / api_time / burn_rateCost + lines diff / wall-clock time / API-wait share / $/hour
version ยท sounds ยท webhook ยท theme ยท snoozeechook version ยท sound count ยท webhook ยท audio theme ยท mute countdown

Most richer segments self-omit when Claude Code doesn't supply their data, so a plain session stays clean. Pick segments with visible_segments (whitelist) or drop a few with hidden_segments (blacklist). Each logical line auto-reflows into as many rows as your terminal width needs โ€” segments are never split, so nothing is cut off. Pin the width with statusline_settings.max_width.

Codex note: Codex's status line is not command-backed โ€” it only accepts a fixed list of built-in item IDs. echook can't render custom Codex segments, but it can curate the list so it stops truncating: audio-hooks statusline codex apply --preset balanced.

๐Ÿ“– Full reference: docs/STATUS_LINE.md โ€” every segment, both editors, all flags.

๐ŸŽš๏ธ More

FeatureWhat it does
37 hook events ยท 30 matcher variantsFull lifecycle coverage across Claude Code, Cursor & Codex โ€” session start, tool use, permission requests, rate-limit warnings, and Cursor's granular shell/MCP/file events. 6 on by default; toggle any in plain English.
2 audio themesdefault = ElevenLabs Jessica voice ("Task completed") ยท custom = modern UI chimes. Say "switch to chimes".
Rate-limit alertsOne-shot warning at 80% / 95% of your 5-hour or 7-day quota โ€” warned once per threshold, never spammed.
WebhooksVersioned audio-hooks.webhook.v1 payload, fire-and-forget, never blocks a hook.
Full hook events table (37 events, 30 matcher variants)
HookDefaultAudio fileNative matchers
notificationonnotification-urgent.mp3permission_prompt / idle_prompt / auth_success / elicitation_dialog / elicitation_complete / elicitation_response / agent_needs_input / agent_completed (last four v6.4, off by default)
stopontask-complete.mp3
subagent_stoponsubagent-complete.mp3agent type
permission_requestonpermission-request.mp3tool name
permission_deniedonpermission-denied.mp3
task_createdontask-created.mp3
task_completedteam-task-done.mp3
session_startsession-start.mp3startup / resume / clear / compact
session_endsession-end.mp3clear / resume / logout / prompt_input_exit
pretooluse / posttoolusetask-starting.mp3 / task-progress.mp3tool name
posttoolusefailuretool-failed.mp3tool name
userpromptsubmitprompt-received.mp3
subagent_startsubagent-start.mp3agent type
precompact / postcompactnotification-info.mp3 / post-compact.mp3manual / auto
stop_failurestop-failure.mp3rate_limit / authentication_failed / billing_error / server_error / unknown
teammate_idleteammate-idle.mp3
config_change ยท instructions_loadedconfig-change.mp3 ยท instructions-loaded.mp3
elicitation / elicitation_resultelicitation.mp3 / elicitation-result.mp3
cwd_changed ยท file_changedcwd-changed.mp3 ยท file-changed.mp3literal filenames
setup (v6.2, Claude Code)setup-ready.mp3init / maintenance
user_prompt_expansion ยท post_tool_batch ยท message_display (v6.2)(per event)
shell_before / shell_after (v6.2, Cursor)shell-starting.mp3 / shell-done.mp3
mcp_before / mcp_after (v6.2, Cursor)mcp-starting.mp3 / mcp-done.mp3
file_read ยท agent_response ยท agent_thinking ยท workspace_open ยท tab_file_edit (v6.2, Cursor)(per event)

Run audio-hooks hooks list for the live state, or see the CLI & Configuration Reference.


Get Started

This is an AI-first project โ€” you don't follow install steps yourself. You tell your AI agent what to do in plain English, and it runs every command and reports back.

flowchart TB
    REPO["github.com/ChanMeng666/echook<br/>(source + GitHub Releases)"]

    REPO --> CCP["Claude Code<br/>plugin marketplace"]
    REPO --> CURB["Cursor 3.2.16+<br/>auto-bridge (Path A)"]
    REPO --> CURN["Cursor native<br/>install --cursor (Path B)"]
    REPO --> CXP["Codex plugin<br/>marketplace"]
    REPO --> CXN["Codex native<br/>install --codex"]

    CCP --> CLI["audio-hooks CLI<br/>+ JSON + /audio-hooks SKILL<br/>(identical everywhere)"]
    CURB --> CLI
    CURN --> CLI
    CXP --> CLI
    CXN --> CLI

    CLI --> OUT["37 hook events ยท 30 variants ยท 2 themes ยท webhooks<br/>TTS ยท rate-limit alerts ยท status line"]

    style REPO fill:#4A90E2,color:#fff
    style CLI fill:#7ED321,color:#000
    style OUT fill:#F5A623,color:#000

Find your editor, paste the prompt into your agent, done:

Your editor / CLITell your AI agent
Claude Code"Install the audio-hooks plugin from github.com/ChanMeng666/echook." (Then type /reload-plugins once โ€” the only manual step.)
Cursor (with Claude Code)Nothing to install โ€” Cursor 3.2.16+ auto-bridges the Claude Code plugin. "Run audio-hooks status and confirm editor_targets.cursor.state is bridged-via-claude-code."
Cursor (without Claude Code)"Clone github.com/ChanMeng666/echook into ~/audio-hooks, run python ~/audio-hooks/bin/audio-hooks install --cursor, then verify with audio-hooks status + audio-hooks test all."
Codex"Install the audio-hooks Codex plugin from github.com/ChanMeng666/echook, then verify with audio-hooks status + audio-hooks test all."

๐Ÿ“– Full step-by-step install, upgrade, and verification for every path โ†’ docs/INSTALLATION_GUIDE.md. Your agent reads this for you.


Talk to It โ€” Natural Language Control

Once installed (Claude Code, Cursor, or Codex โ€” same CLI everywhere), every configuration is one message. You talk; your agent runs the right audio-hooks subcommand and reports back. You don't memorise anything.

sequenceDiagram
    actor You as You
    participant CC as Your AI Agent

    rect rgb(219, 234, 254)
    Note over You,CC: Audio Theme
    You->>CC: Switch audio-hooks to the chime theme.
    CC-->>You: audio-hooks theme set custom โ€” switched to chimes.
    end

    rect rgb(220, 252, 231)
    Note over You,CC: Snooze & Mute
    You->>CC: Snooze audio for 30 minutes.
    CC-->>You: audio-hooks snooze 30m โ€” muted until 3:45 PM.
    You->>CC: Unmute audio.
    CC-->>You: audio-hooks snooze off โ€” audio resumed.
    end

    rect rgb(254, 243, 199)
    Note over You,CC: Hook Selection
    You->>CC: Only fire on stop, notification, and<br/>permission_request โ€” disable everything else.
    CC-->>You: enable-only stop notification permission_request<br/>โ€” 3 hooks active, rest disabled.
    end

    rect rgb(207, 250, 254)
    Note over You,CC: Status Line & Webhooks
    You->>CC: Install the status line, context usage only.
    CC-->>You: statusline installed โ€” visible segments: [context].
    You->>CC: Send alerts to my Slack webhook and test it.
    CC-->>You: Webhook set to slack format. Test delivered.
    end

A few examples โ€” paraphrase freely:

  • "Switch to chimes" / "switch to voice"
  • "Snooze audio for an hour" / "is audio muted?"
  • "Enable rate-limit alerts at 80% and 95%"
  • "Speak Claude's actual reply when done"
  • "Watch my .env file for changes"
  • "Different sound for shell commands vs MCP calls in Cursor"
  • "Why isn't audio playing? Diagnose and fix it."

๐Ÿ’ฌ Complete prompt reference (every option, with sequence diagrams) โ†’ docs/NATURAL_LANGUAGE_CONTROL.md.


How It Works

flowchart LR
    CC[Editor event<br/>Claude Code / Cursor / Codex] -->|stdin JSON| MR{native matcher<br/>routing}
    MR -->|session_start_resume| HR[hook_runner.py]
    MR -->|stop_failure_rate_limit| HR
    MR -->|notification_idle_prompt| HR
    MR -->|...| HR

    HR -->|reads| RL[rate-limit pre-check<br/>marker debounce]
    HR -->|reads| CFG[user_preferences.json]
    HR -->|reads| MARK[snooze markers]

    HR -->|fires| AUDIO[Audio playback<br/>2 themes]
    HR -->|fires| NOTIF[Desktop notification]
    HR -->|fires| TTS[TTS announcement]
    HR -->|fires| WH[Webhook subprocess<br/>fire-and-forget]
    HR -->|writes| LOG[(NDJSON event log<br/>schema audio-hooks.v1)]

    style CC fill:#4A90E2,color:#fff
    style HR fill:#7ED321,color:#000
    style RL fill:#F5A623,color:#000
    style AUDIO fill:#F5A623,color:#000
    style WH fill:#9013FE,color:#fff
    style LOG fill:#50E3C2,color:#000

Your editor fires hook events as JSON on stdin. Native matchers route each event to hook_runner.py, which checks snooze state, rate-limit thresholds, debounce, and user filters โ€” then fires audio, desktop notifications, TTS, and webhooks as configured.

๐Ÿ—๏ธ Internals, hook lifecycle, path resolution, and the build pipeline โ†’ docs/ARCHITECTURE.md.


Platform Support

PlatformAudio playerStatus
Windows (PowerShell / Git Bash / WSL2)PowerShell MediaPlayerโœ… Fully supported
macOSafplayโœ… Fully supported
Linuxmpg123 / ffplay / paplay / aplay (auto-detected)โœ… Fully supported

Python 3.6+ is the only runtime requirement.


Help, Uninstall & Documentation

Agents start here: read AGENTS.md (mirrored as CLAUDE.md) or llms.txt, then run audio-hooks manifest โ€” the complete, live, truthful state of the project. Everything below is for curious humans.

DocumentPurpose
AGENTS.md / CLAUDE.mdAgent-facing operating guide โ€” critical rules (CLI-only, manifest-first, two-track scope)
llms.txtAI-agent entrypoint
docs/INSTALLATION_GUIDE.mdFull install / upgrade / uninstall for Claude Code, Cursor & Codex
docs/NATURAL_LANGUAGE_CONTROL.mdEvery natural-language prompt, with diagrams
docs/CLI_REFERENCE.mdCLI subcommands, config keys, env vars, error codes, logging
docs/ARCHITECTURE.mdSystem architecture and design decisions
docs/EVENT_BEHAVIOR_NOTES.mdWhat Claude Code's hook events actually do, measured โ€” including payload fields the upstream docs omit
docs/TROUBLESHOOTING.mdDiagnostic recipes for common issues
CHANGELOG.mdDetailed version history
audio-hooks manifestLive source of truth โ€” subcommands, hooks, config keys, error codes, env vars, editor targets. Always current.

Design Philosophy โ€” This project is AI-operated, not AI-assisted. A typical CLI tool: the human learns the tool. echook: the human says what they want, and the AI agent learns the tool and does the work. The human is upstream of the agent, not downstream of the CLI.


License

This project is licensed under the MIT License โ€” see LICENSE for details. Commercial use, modification, distribution, and private use all allowed.


Author

Chan Meng
Chan Meng

Creator & Lead Developer

GitHub LinkedIn Website

Buy Me A Coffee



Chan Meng

Chan Meng
Need a custom app like this one? I build them โ€” let's talk.

Email Chan Meng Chan Meng on GitHub

Rendered live from ChanMeng666/echook's GitHub README โ€” not stored, always reflects the source repo.

1 Plugin

NameDescriptionCategorySource
audio-hooksAudio notifications + AI-controlled config for Claude Code, Cursor IDE, and Codex CLI events. Auto-bridges to Cursor 3.2.16+; native install for Cursor via 'audio-hooks install --cursor' and for Codex via 'audio-hooks install --codex'.โ€”./plugins/audio-hooks

0 Comments

Login required
Log in to post a comment or update on this repo.

No comments yet โ€” be the first to share an update.