Get up and running with Eyelet in under 5 minutes!
# Install with uvx (recommended)
uvx eyelet
# Or with pipx
pipx install eyelet
# Or from source
git clone https://github.com/bdmorin/eyelet
cd eyelet
uv pip install -e .Install comprehensive logging for ALL Claude Code hooks with one command:
uvx eyelet configure install-allThis will:
- ✅ Configure hooks for PreToolUse, PostToolUse, UserPromptSubmit, etc.
- ✅ Log all hook data to
~/.eyelet/hooks/directory - ✅ Organize logs by hook type, tool, and date
- ✅ Capture complete context and payloads
After running install-all, every Claude Code action will be logged:
~/.eyelet/hooks/
├── PreToolUse/
│ ├── Bash/ # Before shell commands
│ ├── Read/ # Before file reads
│ └── Write/ # Before file writes
├── PostToolUse/ # After tool executions
├── UserPromptSubmit/ # User interactions
├── Stop/ # Session completions
└── PreCompact/ # Context management
Each JSON log contains:
- Timestamp and session ID
- Complete input/output data
- Environment variables
- Tool parameters and results
- Error information (if any)
# Browse the log directory
ls -la ~/.eyelet/hooks/
# Find recent Bash commands
find ~/.eyelet/hooks/PreToolUse/Bash -name "*.json" -mtime -1
# Search for specific content
grep -r "git push" ~/.eyelet/hooks/
# Pretty-print a log file
cat ~/.eyelet/hooks/PreToolUse/Bash/2025-01-20/*.json | jq .# Launch the TUI
uvx eyelet
# List current hooks
uvx eyelet configure list
# View recent executions (once SQLite is implemented)
uvx eyelet logs --tail 20
# Install a specific template
uvx eyelet template install bash-validator
# Get help on any command
uvx eyelet configure --help
uvx eyelet template --helpMonitor all shell commands executed by Claude Code:
# Watch for new Bash commands in real-time
watch -n 1 'find ~/.eyelet/hooks/PreToolUse/Bash -name "*.json" -mmin -5 | tail -10'
# Find all rm commands
find ~/.eyelet/hooks -name "*.json" -exec grep -l "rm " {} \;
# Analyze command frequency
find ~/.eyelet/hooks/PreToolUse/Bash -name "*.json" | \
xargs jq -r '.input_data.tool_input.command' | \
sort | uniq -c | sort -nr- Explore the logs - Check
~/.eyelet/hooks/to see what Claude Code is doing - Configure custom hooks - Use
eyelet configure addfor specific needs - Install templates - Try
eyelet template listto see available options - Set up completion - Run
eyelet completion installfor tab completion
# Verify hooks are installed
uvx eyelet configure list
# Reinstall if needed
uvx eyelet configure install-all --force# Check directory permissions
ls -la .claude/
chmod 755 .claude/settings.jsonuvx eyelet configure clear --force# General help
uvx eyelet --help
# Command-specific help
eyelet configure --help
eyelet configure install-all --help
# View documentation
uvx eyelet helpWelcome aboard! You're now logging every Claude Code action for complete visibility. ⚓