14 lines
404 B
Bash
Raw Normal View History

2025-08-05 11:59:18 -05:00
#!/bin/bash
# PostToolUse hook: Log all tool usage for tracking and debugging
# This hook runs after any tool execution to maintain an audit log
timestamp=$(date '+%Y-%m-%d %H:%M:%S')
# Create logs directory if it doesn't exist
mkdir -p .claude/logs
# Log the tool usage
2025-08-06 09:44:59 -05:00
echo "[$timestamp] Claude made an edit " >> .claude/logs/tool-usage.log
2025-08-05 11:59:18 -05:00
# Always return success to avoid blocking tools
echo "{}"