claude-code-hooks-multi-agent-observability  by disler

Real-time observability for Claude Code agents

Created 2 months ago
470 stars

Top 64.9% on SourcePulse

GitHubView on GitHub
Project Summary

This project provides a real-time observability system for Claude Code agents, enabling detailed monitoring and visualization of agent behavior through hook event tracking. It's designed for developers and researchers working with Claude Code who need to understand and debug multi-agent interactions.

How It Works

The system captures Claude Code hook events via Python scripts, which then send these events via HTTP POST to a Bun-based TypeScript server. The server stores events in an SQLite database and broadcasts them in real-time over WebSockets to a Vue 3 client. This architecture allows for granular tracking of agent actions, session management, and live visualization of event streams.

Quick Start & Requirements

  • Install: Clone the repository and run ./scripts/start-system.sh from the root directory.
  • Prerequisites: Claude Code, uv, Bun (or npm/yarn), Anthropic API Key (as ANTHROPIC_API_KEY). Optional: OpenAI API Key, ElevenLabs API Key.
  • Setup: Copy the .claude directory to your project root and configure settings.json.
  • Demo: Open http://localhost:5173 in your browser after starting the system.
  • Docs: Claude Code documentation for hook integration.

Highlighted Details

  • Real-time event streaming via WebSockets.
  • Vue 3 client with live pulse charts, filtering, and chat transcript viewing.
  • Python hook scripts for event capture, including validation and blocking of dangerous commands.
  • Bun server with SQLite backend for efficient data storage and retrieval.
  • Supports multiple concurrent agents with session tracking.

Maintenance & Community

The project is maintained by disler. Further community engagement details are not explicitly provided in the README.

Licensing & Compatibility

The project's license is not explicitly stated in the README. Compatibility for commercial use or closed-source linking is not specified.

Limitations & Caveats

The README mentions that hook scripts might require absolute paths for commands, and provides a /convert_paths_absolute utility within Claude Code to address this. Some optional API keys (OpenAI, ElevenLabs) are mentioned for extended functionality.

Health Check
Last Commit

2 months ago

Responsiveness

Inactive

Pull Requests (30d)
2
Issues (30d)
0
Star History
68 stars in the last 30 days

Explore Similar Projects

Starred by Dan Guido Dan Guido(Cofounder of Trail of Bits), Joe Walnes Joe Walnes(Head of Experimental Projects at Stripe), and
4 more.

opcode by winfunc

2.1%
17k
GUI for Claude Code
Created 3 months ago
Updated 1 week ago
Feedback? Help us improve.