notify-permission · Hooks para Claude Code | Prompt Studio
    1. Claude Code
    2. Hooks
    3. notify-permission
    Claude Code · HooksNotification

    notify-permission

    Alerta en Slack cuando Claude Code necesita tu permiso.

    por Karan Bansal

    Notification

    Licencia: MITVer original

    Instalación

    /plugin marketplace add karanb192/claude-code-hooks
    /plugin install notify-permission@claude-code-hooks

    Contenido

    # notify-permission
    
    > Sends Slack alerts when Claude needs your input, so you stop babysitting the terminal.
    
    A `Notification` hook fires on `permission_prompt`, `idle_prompt`, and `elicitation_dialog`, classifies the notification (from `notification_type` when the payload carries it, otherwise from keywords in the message), and posts a Slack Block Kit card to your webhook: an emoji plus a specific title (which tool needs permission: Bash, Write, Edit, or Read; Claude waiting; or a choice to make), the project name, a short session id, the message truncated to 200 chars, the full cwd, and a timestamp. Kick off a long task, walk away, and Slack pings you the moment Claude is blocked on you.
    
    ## Install
    
    ```
    /plugin marketplace add karanb192/claude-code-hooks   # once per machine
    /plugin install notify-permission@claude-code-hooks
    ```
    
    Restart Claude Code, done. (Or from a shell: `claude plugin install notify-permission@claude-code-hooks`.)
    
    ## What it does
    
    | Event | Runs | What happens |
    |-------|------|--------------|
    | Notification (`permission_prompt\|idle_prompt\|elicitation_dialog`) | sync | Classifies the notification, posts a Slack card to `CCH_SLA_WEBHOOK`, logs the outcome. |
    
    Every input, send, and failure is appended to `~/.claude/hooks-logs/<date>.jsonl`. The hook always exits 0 and prints `{}`; it never blocks your session, even on malformed input or a dead webhook.
    
    ## Configuration
    
    One environment variable:
    
    | Variable | Default | Purpose |
    |----------|---------|---------|
    | `CCH_SLA_WEBHOOK` | unset | Slack Incoming Webhook URL the alert card is posted to. Unset means the hook sends nothing and logs a `NONE` entry (nothing sent, no error). |
    
    No safety levels, no ask mode; this is a notifier, not a guard. Discord and Telegram channels are planned but not wired up yet: today the hook sends to Slack only.
    
    ## Data & privacy
    
    The only network call is the POST to the webhook you configure, and only when `CCH_SLA_WEBHOOK` is set. The card carries the notification message (truncated to 200 chars), the project directory path, and a 6-char session id prefix; everything else stays in the local log.
    
    ## Uninstall
    
    ```
    /plugin uninstall notify-permission@claude-code-hooks
    ```
    
    ---
    
    Part of [claude-code-hooks](https://github.com/karanb192/claude-code-hooks).
    

    Más en Hooks

    • Formatear al editar

      Ejecuta Prettier sobre cada archivo que Claude edita o crea.

    • Bloquear archivos .env

      Impide que Claude lea o edite archivos de secretos.

    • Aviso al terminar

      Notificación de escritorio en macOS cuando Claude termina.

    • Chequeo de tipos al editar

      Corre tsc después de editar archivos TypeScript y muestra los errores.

    • Contexto al iniciar

      Carga la rama y los últimos commits al abrir una sesión.

    • Registro de comandos

      Guarda cada comando de shell en un log para auditoría.

    Ver todo en Hooks (621) →

    Tu colección definitiva de prompts de IA. Inspírate, explora ejemplos y crea con IA.

    Hubs principales

    • Prompts
    • Imágenes
    • Videos
    • Generar Videos
    • Plantillas
    • Animaciones
    • Precios
    • Conoce
    • Afiliado

    Explorar por tipo

    • Kits de componentes
    • Etiquetas de imagen
    • Etiquetas de video
    • Webs

    Temas populares

    • Música
    • Portafolio
    • Gaming
    • Viajes
    • Nano Banana Pro

    Legal

    • Términos de uso
    • Política de privacidad
    • Política de cookies
    • Política de licencias
    • Política de reembolsos
    • Términos del programa de afiliados
    • Términos de Crowdfunding

    Magzin LLC, 800 Third Avenue Associates, New York, NY, 10022, United States

    © 2026 Prompt Studio by Magzin. Todos los derechos reservados.