Track file changes in a simple log
Edit|MultiEditAdd to your .claude/settings.json:
{
"hooks": {
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": ".claude/hooks/change-tracker.sh"
}
],
"matcher": "Edit|MultiEdit"
}
]
}
}This hook includes a script file. Download the ZIP bundle for complete installation with script and instructions.
Track file changes in a simple log
None required
None
file_path=$(jq -r '.tool_input.file_path // empty')
log_file=".claude/changes.log"
mkdir -p "$(dirname "$log_file")"
echo "[$(date '+%Y-%m-%d %H:%M:%S')] Modified: $file_path" >> "$log_file"
PostToolUse hooks run after a tool completes execution. They can modify the result or trigger additional actions.