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.

25 stars 4 forksHooks Source

Install

Install
npm install -g madame-claude

Found in the project README. Check it for setup steps after installing.

From source
git clone https://github.com/williamkapke/MadameClaude.git

From 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…
Read the full README on GitHub

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.
Claude Code docs

Details

Type
Hooks
Language
HTML
License
MIT
Last updated
10 July 2025

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

Browse the most popular Claude Code mods, all hooks, or the skills and MCP server directories.