Claude Code hook
MadameClaude
Madame Claude is a monitoring system for Claude Code hooks that captures and streams tool usage events to a web interface.
Install
npm install -g madame-claudeFound in the project README. Check it for setup steps after installing.
git clone https://github.com/williamkapke/MadameClaude.gitFrom the README
Madame Claude - Claude Code Hook Monitor Madame Claude is a real-time monitoring system for Claude Code hooks that captures and streams tool usage events to a web interface. It provides visibility into Claude Code's tool usage patterns, helping developers understand and debug their AI assistant's behavior. Overview Madame Claude consists of three components that work together to capture, process, and display Claude Code hook events: 1. bridge - Captures hook events from stdin and forwards them via HTTP 2. server - Receives events and broadcasts them to connected web clients 3. monitor - Web interface for real-time event visualization with sound notifications Architecture Data Flow Features - Real-time Monitoring: See Claude Code events as they happen - Event Filtering: Filter by session, tool, or event type - Sound Notifications: Customizable sounds for Notification and Stop events - Color-coded Console: Server logs with colored event types and tool names - Persistent Settings: Volume controls saved to browser localStorage - Multiple Event Types: Supports all Claude Code hook types: - PreToolUse - PostToolUse - Notification - Stop - SubagentStop Installation Prerequisites - Node.js installed on your system - Claude Code installed and configured Setup 1. Clone the repository: 2. Install and start the server: The server will start on http://localhost:4519 3. Configure Claude Code hooks in ~/.claude/settings.json (macOS/Linux) or %USERPROFILE%\.claude\settings.json (Windows): Note: Replace /path/to/MadameClaude with the actual path to your Madame Claude installation. 4. Open the web monitor: - Navigate to http://localhost:4519 in your browser - The monitor will automatically connect to the server via WebSocket Usage Web Monitor…
How hooks work
- Hooks are shell commands Claude Code runs at fixed points: before or after a tool call, when you submit a prompt, when Claude stops, on notifications and at session start.
- They are set in the hooks section of ~/.claude/settings.json (or .claude/settings.json for a project), or come bundled in a plugin.
- A hook can block a tool call, add context, or run a formatter or test. Read the scripts before you install them: they run on your machine with your permissions.
Details
- Repository
- williamkapke/MadameClaude
- Type
- Hooks
- Language
- HTML
- License
- MIT
- Last updated
- 10 July 2025
- Listed in
- awesome-claude-code-hooks
FAQ
What is MadameClaude?
Madame Claude is a monitoring system for Claude Code hooks that captures and streams tool usage events to a web interface. It is a hook for Claude Code, from williamkapke/MadameClaude on GitHub.
How do I install MadameClaude?
Run npm install -g madame-claude, then follow the setup in the README.
Is MadameClaude popular?
williamkapke/MadameClaude has 25 GitHub stars and 4 forks, and is included in 1 curated Claude Code list. It was last updated on 10 July 2025.
More hooks
CC Thingz
39alexei-led/cc-thingz
Portable skills, agents, hooks, and Pi extensions for Claude Code, Codex CLI, Copilot, Cursor, Grok, and Pi.
claude-hook-advisor
23sirmews/claude-hook-advisor
Hook that suggests preferred alternatives when Claude reaches for certain commands.
Founder OS
24cloudrepo-io/founder-os
Run your company with an AI team. No complex tooling—just markdown files and Claude.
Claude Brain
38mikeadolan/claude-brain
Persistent memory for Claude Code. Local SQLite + MCP + hooks.
Tool Gate Hook
41kornysietsma/tool-gate-hook
A PreToolUse hook for Claude Code for more granular permission controls
Claude Code Security Hooks
39slavaspitsyn/claude-code-security-hooks
7 layers of defense against prompt injection in Claude Code. Security hooks, read guards, canary files, and self-protection.
Browse the most popular Claude Code mods, all hooks, or the skills and MCP server directories.