echook
llms.txt87 starsChanged 6 months agoMITView on GitHub
echook is an AI-agent-first audio + status-line notification system for Claude Code, Cursor IDE, and Codex CLI. An AI agent (Claude Code / Cursor / Codex) clones, installs, configures, tests, and uninstalls the whole project on the user's behalf — there are no human-interactive menus, no curl | bash flows, and nothing to hand-edit. Every capability is a non-interactive audio-hooks subcommand that takes and returns JSON. If you are an AI agent operating this project, do this first:
- Pipes a download into a shell
The file
We split this llms.txt into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 5
If you are an AI agent operating this project, do this first:
- Very specific: line 7
Run audio-hooks manifest — it returns the live, authoritative list of every subcommand, hook, config key, error code, env var, …
- Very specific: line 8
Never hand-edit config/user_preferences.json.
- Very specific: line 9
Verify any change with audio-hooks status, audio-hooks diagnose, and audio-hooks test all.
≈ “Common” is an estimate: at least 1 in 5 of the 1,484 llms.txt files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
# echook
> echook is an **AI-agent-first** audio + status-line notification system for Claude Code, Cursor IDE, and Codex CLI. An AI agent (Claude Code / Cursor / Codex) clones, installs, configures, tests, and uninstalls the whole project on the user's behalf — there are no human-interactive menus, no `curl | bash` flows, and nothing to hand-edit. Every capability is a non-interactive `audio-hooks` subcommand that takes and returns JSON.
If you are an AI agent operating this project, do this first:
- Run `audio-hooks manifest` — it returns the live, authoritative list of every subcommand, hook, config key, error code, env var, `editor_targets`, `supported_editors`, and `pointers`. Everything below is orientation; the manifest is source-of-truth.
- Never hand-edit `config/user_preferences.json`. Use `audio-hooks set <dotted.key> <value>` (validated, JSON result).
- Verify any change with `audio-hooks status`, `audio-hooks diagnose`, and `audio-hooks test all`.
## Operating the project (AI agent)
- [AI Operator Guide](AGENTS.md) (the single agent guide; `CLAUDE.md` only imports it): the critical rules — CLI-only interface, manifest-first, two-track scope guard, AI-agent-first (no interactive paths), build-sync after editing canonical sources.
- [Natural-language → CLI mapping](plugins/audio-hooks/skills/audio-hooks/SKILL.md): the decision tree mapping user requests ("mute claude", "switch theme", "monitor context") to exact `audio-hooks` commands.
## Install (the agent runs these; the human types `/reload-plugins` on Claude Code and restarts the editor once on the Cursor/Codex paths)
- Claude Code (canonical): `claude plugin marketplace add ChanMeng666/echook` then `claude plugin install audio-hooks@chanmeng-audio-hooks`, then ask the user to type `/reload-plugins` (REPL-only).
- Cursor (without Claude Code): `audio-hooks install --cursor`.
- Codex (native): `audio-hooks install --codex`.
- Cloned-repo / non-plugin path: `bash scripts/install-complete.sh` — always non-interactive.
- [Installation Guide](docs/INSTALLATION_GUIDE.md) · [Troubleshooting (stable error codes)](docs/TROUBLESHOOTING.md)
## Reference
- [Architecture](docs/ARCHITECTURE.md): runner flow, hook surfaces per editor, error-code model, script inventory.
- [Status Line](docs/STATUS_LINE.md): complete reference for track 2 — Claude Code renders 33 segments (whitelist/blacklist config; `prompt_cache` and `remote` opt-in via `extra_segments`) plus a separate per-subagent row via `subagentStatusLine` (`statusline subagent`, NDJSON keyed by task id); Codex curates a fixed item list (`statusline codex`), it cannot render custom text. Live truth: `audio-hooks statusline segments`.
- [README](README.md): human-readable overview and platform picker.
- [Event behaviour notes](docs/EVENT_BEHAVIOR_NOTES.md): what Claude Code's hook events actually do, measured against a running install — undocumented `Stop.background_tasks`, the `agent_completed` / `agent_needs_input` matchers that never fired, and how to capture payloads before trusting an event name.
- [Privacy policy](PRIVACY.md): what the plugin processes and stores locally, and the one case (a user-configured webhook) in which data leaves the machine.
- [Project status](docs/PROJECT_STATUS.md): dated snapshot — what shipped, what is waiting on someone, what is claimed but not verified, what was evaluated and deliberately not done, candidates for later. Read before proposing work.
- [Releasing](docs/RELEASING.md): the release procedure as practised — worktree, verification, version bump, pull request and CI (including the secret scanner), merge, tag, GitHub release, upgrading a live install, generating a new sound.
- [Plugin directory listing](docs/DIRECTORY_LISTING.md): echook was submitted to Anthropic's plugin directory on 2026-10-04 and is in review (Claude Code only); what was declared, what the validator reported, and the rules the listing puts on every change to `plugins/audio-hooks/` (a push to `master` is scanned).
- [Changelog](CHANGELOG.md): version history (v6.7.2 = listing icon; v6.7.1 = privacy policy and directory listing links, no behaviour change; v6.7.0 = three more matcher variants, 47 in all, each with its own sound in both themes (86 distinct sounds): `stop_failure_cloud_credential_error` and `stop_failure_verification_required` follow the `stop_failure` switch (migration writes them off for configs that enumerated variants with `hooks enable-only`; `UserPreferences.VARIANT_INTRODUCED` records the release of each variant), `notification_auth_storage_failure` ("Login needs attention") is off by default and needs `audio-hooks hooks enable notification_auth_storage_failure`, and `model_refusal_fallback` is deliberately not registered (declared in the 2.1.288 binary, no emitter found); filters now run before debounce, so an event a filter discards no longer opens the debounce window; the status line grows to 33 segments — `spend_limit` and `fast_mode` in the default set (data-gated), `prompt_cache` and `remote` opt-in through `statusline_settings.extra_segments`, and `statusline segments` reports a `default` flag; reporting commands (`status`, `diagnose`, `get`, `hooks list`, `manifest`, `logs tail`, `backup list`, every `--help`…) no longer write to the home or data directories, so a stale preferences file is migrated by the next hook event, a state-changing command or the new `audio-hooks migrate`, not by `status`; `manifest.error_codes` lists all 37 codes the CLI can emit (was 15); `test` rejects unknown arguments; `plugins/audio-hooks/README.md` discloses what the plugin runs, sends and writes, `userConfig.webhook_url` is `sensitive`, and a seven-case skill eval suite ships under `plugins/audio-hooks/evals/`; `AGENTS.md` is the single agent guide and `CLAUDE.md` imports it; 686 tests, every hook-runner subprocess isolated; v6.6.0 = `audio-hooks install` no longer defaults to the legacy script installer — a bare `install`, `install --help` or an unknown flag used to run it, report success and double-register every hook on a machine that already had the plugin — so it now requires `--plugin|--scripts|--cursor|--codex` (`INVALID_USAGE` otherwise; `--scripts` refused with `DUAL_INSTALL_DETECTED` beside the plugin); `--help` is side-effect-free on every subcommand and every state-changing subcommand rejects unknown flags; `audio-hooks uninstall` now actually removes a script install on Windows, macOS and Linux (backup first, ownership judged by file content, `UNINSTALL_INCOMPLETE` + `--remove-unmatched` for unrecognised home spellings; `scripts/uninstall.sh` is a thin wrapper); `rate-limits set` stored a scalar threshold that made the hook runner raise; the test suite no longer touches the real plugin data directory or plays sounds; `skip_if_background_tasks_running` counts pending tasks and ignores Claude Code's maintenance tasks, new opt-in `skip_if_session_crons_scheduled`, and `SubagentStop` from Claude Code's internal agents (empty `agent_type`) no longer announces; synced to Claude Code 2.1.288 with no new hook events, four matcher values not yet covered (`StopFailure` `cloud_credential_error` / `verification_required`, `Notification` `auth_storage_failure` / `model_refusal_fallback`), `terminalSequence` still inert, and mods investigated and not adopted; v6.5.1 = Windows desktop toasts were dead for any message containing a double quote (POSIX-shell escaping interpolated into a PowerShell string), now a real WinRT toast with a probed, budget-capped backend chain; `play_tts()` had the identical bug and was silent on the same inputs; the toast outcome is logged and `NOTIFICATION_FAILED` is finally emitted instead of returning success unconditionally; config migration had not run on any install since 5.1.5 because the template version stamp was never bumped, now gated structurally and owned by `bump-version.sh`; six new `diagnose` codes (`NO_COMPLETION_SIGNAL`, `NOTIFICATION_FAILED`, `PREFS_SCHEMA_STALE`, `STALE_PLUGIN_CACHE`, `WINDOWS_NO_GIT_BASH`, `TERMINAL_SEQUENCE_INERT` — v6.5.0's `terminalSequence` turned out to be inert, since Claude Code emits the escape only from a synchronous hook path and every handler is async); verified against the Claude Code 2.1.251 binary that no hook contract had changed, and recorded that `PreModelSwitch` is a blocking decision hook that must never be registered; v6.5.0 = `subagentStatusLine` (one row per subagent), `worktree_remove` + `directory_added` events, the 8 remaining `Notification` matchers, `filters.<hook>.min_duration_ms`, Codex `SessionEnd` behind a >=0.145.0 version gate, and a unique sound for all 83 event/variant slots in both themes (86 since v6.7.0); v6.4.1 = upstream-drift fixes — the `fork` `SessionStart` matcher that had gone silent since Claude Code 2.1.213, five `stop_failure` variant toggles that did nothing, `manifest` overstating Claude Code's event surface, and `uninstall.sh` leaving 19 orphaned registrations; v6.4.0 = per-variant hook toggles (30 matcher variants independently switchable), the 4 missing `Notification` matchers, `skip_if_background_tasks_running` filter, and contract tests for the Claude Code hook template; v6.3.3 = docs: status-line examples show the weekly reset date; v6.3.2 = rate-limit reset clocks show the date when not today (`resets Jul 4 5am`); v6.3.1 = fix status-line truncation on emoji-dense rows; v6.3.0 = Claude Code status line grows to 29 segments + `hidden_segments` + `statusline segments`, and `statusline codex {show,preview,apply}` curates Codex's fixed `[tui].status_line`/`terminal_title`; v6.2.0 = 13 new lifecycle events, including Cursor's per-tool-type events (the canonical count became 37 in v6.3.4, which removed `worktree_create`/`worktree_remove`); v6.1.0 = status line pins the Claude Code startup banner and auto-reflows to avoid truncation).
## Scope (what echook does NOT do)
- echook is two tracks only: audio/notification and the status line. Wellness/breathing, pomodoro/timers, gamification, opening URLs, or running side-commands are out of scope by design — do not add them.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

