
Claude Code Hooks (Voice)
https://github.com/shanraisshan/claude-code-hooks- Category
- AI Agents
- Rank
- No. 1361Tools index
Previous survey · No. 1366 ·
- Pricing
- Open Source
- Type
- TOOL
- Builder
- shanraisshan
- GitHub
- 539 stars
- Date
About
Voice-enabled hooks for Claude Code that play audio cues on each agent action.
What it does
Turns Claude Code lifecycle events into an audible status language. A Python handler maps each event to a bundled sound, chooses an operating-system audio player, and lets local configuration disable individual signals or logging.
Why it's ranked here
The breadth is compelling: the handler covers every documented hook listed by the project, including agent-specific behavior and a special cue for Git commits. Cross-platform playback and defensive failure handling make it practical, though setup prerequisites and audio-player dependencies add friction.
What's good
Hook coverage extends beyond basic session and tool events to permissions, compaction, worktrees, tasks, configuration changes, and failures. Local settings override defaults without modifying shared configuration. Missing players or sounds fail quietly, while sound names receive a directory-traversal check.
Tradeoffs
Linux needs a supported external audio player. Windows playback is limited to WAV files, while the interactive lifecycle demo specifically requires macOS audio playback. Logging is enabled by default and records hook type, timestamp, and the last assistant message unless disabled.
How to use it well
It suits developers who run long or parallel Claude Code sessions and want ambient awareness without watching the terminal continuously. Disable noisy events locally and retain cues for permissions, failures, task completion, or session boundaries. It does not provide speech input, transcription, or a general notification service.
Technical notes+
.claude/hooks/scripts/hooks.py maps 30 Claude Code events to sound folders, selects afplay, several Linux players, or Windows winsound, supports six agent-context mappings, and detects git commit for a special cue. .codex/hooks/scripts/hooks.py and .codex/hooks.json provide a separate five-hook Codex CLI integration. demo/server.py serves HTML plus state and reset endpoints, while demo/.claude/hooks/scripts/demo-hooks.py uses file locking and atomic replacement to track firings. .mcp.json configures the external @blizzy/mcp-elicit server.
Observed
- License
- MIT License
- Primary implementation language
- Python
- Install surface
- Repository scripts and configuration with separate macOS, Linux, and Windows installation guides
- Primary interface
- Command-based Claude Code hook handlers receiving event data through standard input
- Platform support
- macOS, Linux, and Windows playback paths are implemented
- Configuration
- Local JSON configuration can override defaults and disable individual hooks or logging
- Additional interface
- A local HTTP demo exposes state retrieval and reset endpoints
- MCP configuration
- The repository configures the external @blizzy/mcp-elicit server through npx
Read from README.md, demo/server.py, tests-agents-hook/agent-hook-test.py, .codex/hooks/scripts/hooks.py, .claude/hooks/scripts/hooks.py, demo/.claude/hooks/scripts/demo-hooks.py, LICENSE, .mcp.json, CLAUDE.md, demo/.mcp.json, demo/README.md, .codex/hooks.json, .codex/config.toml, demo/start-demo.sh, .github/FUNDING.yml.
What it can do
Play audio cues for agent actions
Claude Code agent actions/events → Audio notifications/sounds
Enable voice control for Claude Code
Voice commands → Executed code operations
Provide auditory feedback for code events
Code execution events → Audio cues/alerts
Hook into Claude Code agent workflow
Claude Code agent processes → Triggered voice responses
Monitor agent action states
Agent status changes → Voice notifications of state changes
Tags
Tech Stack
Media
Comments (0)
No comments yet
Editorially curated, with community endorsements as a secondary signal. Corrections welcome.