← Back to catalog
HookMonitoring↓ 45

Change Logger

Records every file change the agent makes into a CSV file.

Installation
npx claude-code-templates@latest --hook automation/change-logger --yes

This hook fires on the PostToolUse event, covering Edit, MultiEdit, Write and Bash operations. It records each mutation as soon as it happens.

Every CSV row carries the timestamp, the tool used, the file path, the action and details. The output lands in .claude/critical_log_changes.csv, handy for audits or for prepping demos.

When to use

  • When you want an audit trail of what the agent changed.
  • When you need to review or present everything that was modified in a session.

How to use

After installing, it feeds the CSV automatically on every operation. Open .claude/critical_log_changes.csv to see the history.