Skip to content

Instantly share code, notes, and snippets.

@leek
Last active November 10, 2025 10:46
Show Gist options
  • Select an option

  • Save leek/53662ec5fd7b269d64a59f8e7e116a24 to your computer and use it in GitHub Desktop.

Select an option

Save leek/53662ec5fd7b269d64a59f8e7e116a24 to your computer and use it in GitHub Desktop.
~/.claude/settings.json
{
"alwaysThinkingEnabled": true,
"statusLine": {
"type": "command",
"command": "npx -y ccstatusline@latest",
"padding": 0
},
"hooks": {
"PreToolUse": [
{
"matcher": "^mcp__laravel-boost__browser-logs$",
"hooks": [
{
"type": "command",
"command": "printf '\\033[32m[hooks] blocked %s\\033[0m\\n' \"$tool_name\"; exit 2"
}
]
}
],
"PreCompact": [
{
"hooks": [
{
"type": "command",
"command": "mkdir -p \"$CLAUDE_HOME/backups\"; if [[ -n \"${transcript_path:-}\" && -f \"$transcript_path\" ]]; then cp \"$transcript_path\" \"$CLAUDE_HOME/backups/session-$(date +%s).jsonl\" && printf '\\033[33m[hooks] transcript backed up\\033[0m\\n'; fi; exit 0"
}
]
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "echo \"Prompt submitted at $(date '+%Y-%m-%d %H:%M:%S')\" >> \"$CLAUDE_HOME/prompt.log\"; exit 0"
}
]
}
],
"Notification": [
{
"hooks": [
{
"type": "command",
"command": "osascript -e 'display notification \"Claude needs attention\" with title \"Claude Code\"' >/dev/null 2>&1 || true; exit 0"
}
]
}
]
}
}
@leek
Copy link
Author

leek commented Nov 10, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment