Claude User Input Logger banner
Bucurenciu-Cristian Bucurenciu-Cristian

Claude User Input Logger

Development community

Description

A Claude Code hook that captures and logs all user inputs with timestamps and session tracking

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

Claude User Input Logger 📋

A powerful and lightweight hook for [Claude Code](https://claude.ai/code) that captures and logs all your user inputs with timestamps, session tracking, and organized storage. Perfect for tracking your conversations, analyzing usage patterns, and maintaining a searchable history of your interactions with Claude.

[![Version](https://img.shields.io/badge/version-1.0.0-blue.svg)](https://github.com/Bucurenciu-Cristian/claude-user-input-logger) [![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE) [![Python](https://img.shields.io/badge/python-3.6+-blue.svg)](https://python.org) [![Claude](https://img.shields.io/badge/Claude-Compatible-purple.svg)](https://claude.ai/code)

✨ Features

  • 🎯 Smart Message Extraction: Captures your actual messages from Claude Code conversation transcripts
  • ⏰ Timestamp Tracking: Every message logged with precise timestamps
  • 🔄 Session Management: Tracks different Claude Code sessions across restarts
  • 📊 Usage Statistics: Detailed analytics about your interactions and tool usage
  • 📅 Daily Logs: Separate daily log files for easy organization
  • 🔧 Configurable: Easy to customize logging behavior and retention policies
  • ⚡ Lightweight: Minimal performance impact on Claude Code
  • 🛡️ Safe: Fails gracefully without breaking Claude Code functionality

🚀 Quick Start

Installation

  1. **Clone this repository:**

    git clone https://github.com/Bucurenciu-Cristian/claude-user-input-logger.git
    cd claude-user-input-logger
  2. **Run the installation script:**

    chmod +x install.sh
    ./install.sh
  3. **Restart Claude Code** to activate the hook.

Manual Installation

  1. **Copy the hook file:**

    cp log-user-inputs.py ~/.claude/hooks/
    chmod +x ~/.claude/hooks/log-user-inputs.py
  2. **Update your Claude settings:** Add this configuration to `~/.claude/settings.json`:

    {
      "ho