Location: .claude/settings.json in the project root.
Schema
{
"hooks": {
"PostToolUse": [
{
"matcher": "Edit",
"hooks": [{"type": "command", "command": "your-script"}]
}
]
}
}
- Outer
"hooks"wrapper required matcheris tool name (case-sensitive):Edit,Write,Bash- Use
"matcher": ""or"*"to match all tools