Last active
November 10, 2025 10:46
-
-
Save leek/53662ec5fd7b269d64a59f8e7e116a24 to your computer and use it in GitHub Desktop.
~/.claude/settings.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "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" | |
| } | |
| ] | |
| } | |
| ] | |
| } | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Statusline: https://github.com/sirmalloc/ccstatusline