claude-code-generic-hooks store /path/to/db.sqliteStores hook metadata in an SQLite database
claude-code-generic-hooks yoloAutoapproves everything except for accepting a plan. Similar to --dangerously-skip-permissions but works in plan mode.
Track Claude Code work sessions activity with desktop notifications
claude-code-generic-hooks activity start /path/to/activity.dbStarts tracking a new activity session
claude-code-generic-hooks activity stop /path/to/activity.dbStops the current activity session
{
"hooks": {
"PreToolUse": [
{
"matcher": ".*",
"hooks": [
{
"type": "command",
"command": "npx claude-code-generic-hooks store ~/.claude/hooks.db"
}
]
}
],
"PostToolUse": [
{
"matcher": ".*",
"hooks": [
{
"type": "command",
"command": "npx claude-code-generic-hooks store ~/.claude/hooks.db"
}
]
}
],
"Notification": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "npx claude-code-generic-hooks store ~/.claude/hooks.db"
}
]
}
],
"Stop": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "npx claude-code-generic-hooks store ~/.claude/hooks.db"
}
]
}
],
"UserPromptSubmit": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "npx claude-code-generic-hooks store ~/.claude/hooks.db"
}
]
}
],
"SubagentStop": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "npx claude-code-generic-hooks store ~/.claude/hooks.db"
}
]
}
],
"PreCompact": [
{
"matcher": "manual",
"hooks": [
{
"type": "command",
"command": "npx claude-code-generic-hooks store ~/.claude/hooks.db"
}
]
},
{
"matcher": "auto",
"hooks": [
{
"type": "command",
"command": "npx claude-code-generic-hooks store ~/.claude/hooks.db"
}
]
}
]
}
}{
"hooks": {
"PreToolUse": [
{
"matcher": ".*",
"hooks": [
{
"type": "command",
"command": "npx claude-code-generic-hooks yolo"
}
]
}
]
}
}{
"hooks": {
"UserPromptSubmit": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "npx claude-code-generic-hooks activity start ~/.claude/activity.db"
}
]
}
],
"PostToolUse": [
{
"matcher": "ExitPlanMode",
"hooks": [
{
"type": "command",
"command": "npx claude-code-generic-hooks activity start ~/.claude/activity.db"
}
]
}
],
"Stop": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "npx claude-code-generic-hooks activity stop ~/.claude/activity.db"
}
]
}
]
}
}