mirror of
https://github.com/coleam00/context-engineering-intro.git
synced 2025-12-17 09:45:23 +00:00
14 lines
404 B
Bash
14 lines
404 B
Bash
#!/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
|
|
echo "[$timestamp] Claude made an edit " >> .claude/logs/tool-usage.log
|
|
|
|
# Always return success to avoid blocking tools
|
|
echo "{}" |