Created
January 30, 2026 01:38
-
-
Save eduardoarandah/80acfc6a7309882f5f07def74b4dc903 to your computer and use it in GitHub Desktop.
Claude Code configuration to notify you via telegram .claude/settings.local.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
| { | |
| "permissions": { | |
| "allow": [ | |
| "Bash(php artisan make:migration:*)", | |
| "Bash(php artisan:*)", | |
| "Bash(find:*)", | |
| "Bash(grep:*)", | |
| "Bash(docker compose exec:*)", | |
| "Bash(mkdir:*)", | |
| "Bash(php:*)", | |
| "WebFetch(domain:docs.laravel-excel.com)", | |
| "Bash(npm run tsc:*)", | |
| "Bash(npx prettier:*)", | |
| "Bash(npm run build:*)", | |
| "Bash(./vendor/bin/phpstan analyze:*)", | |
| "Bash(./vendor/bin/phpstan:*)", | |
| "Bash(composer run:*)", | |
| "Bash(composer test:mariadb:*)", | |
| "Bash(ls:*)", | |
| "Bash(xargs:*)", | |
| "Bash(git mv:*)", | |
| "Bash(git add:*)", | |
| "Bash(git commit:*)", | |
| "Bash(git status:*)", | |
| "Bash(git diff:*)", | |
| "Bash(git log:*)", | |
| "Bash(git branch:*)", | |
| "Bash(git show:*)" | |
| ], | |
| "deny": [ | |
| "Bash(git push:*)", | |
| "Bash(git reset:*)", | |
| "Bash(git rebase:*)", | |
| "Bash(git commit --amend:*)", | |
| "Bash(git force:*)", | |
| "Bash(git cherry-pick:*)" | |
| ] | |
| }, | |
| "hooks": { | |
| "Stop": [ | |
| { | |
| "matcher": "", | |
| "hooks": [ | |
| { | |
| "type": "command", | |
| "command": "source ~/.env && echo '✅ Claude terminó' | curl -s \"https://api.telegram.org/${TELEGRAM_BOT_TOKEN}/sendMessage\" -d chat_id=\"$TELEGRAM_CHAT_ID\" --data-urlencode text@-" | |
| } | |
| ] | |
| } | |
| ], | |
| "Notification": [ | |
| { | |
| "matcher": "", | |
| "hooks": [ | |
| { | |
| "type": "command", | |
| "command": "source ~/.env && cat | jq -r '.message // .notification // \"Notificación\"' | curl -s \"https://api.telegram.org/${TELEGRAM_BOT_TOKEN}/sendMessage\" -d chat_id=\"$TELEGRAM_CHAT_ID\" --data-urlencode text@-" | |
| } | |
| ] | |
| } | |
| ] | |
| } | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment