Export PDF : Cmd + P → "Enregistrer en PDF" → taille personnalisée 1080 × 1080 px · Sans marges · Graphiques en arrière-plan activés.
01 / COVER
# Claude Code · Hooks
Le pouvoir des
hooks 🤖
Tips pour mieux utiliser les agents IA en CLI
👉 Un agent en CLI, c'est puissant… mais
02 / PROBLÈME
Les agents ne sont
pas autonomes à 100%
💡 Le vrai sujet = le timing humain
03 / SOLUTION
Les hooks déclenchent
des actions / scripts
➡️ Ton agent devient proactif = interaction au bon moment
🔐
permission_prompt
validation humaine requise
elicitation_dialog
besoin d'info supplémentaire
Stop
tâche terminée
04 / SETUP
Setup rapide
1
Ouvre Claude Code CLI
Terminal
2
Tape /hooks
Commande
3
Matcher : * ou ciblé
Ex : permission_prompt
Config
4
Ajoute ta commande shell
Notif, son, script… tout est possible
Flexible
✔️ Done — ton agent notifie maintenant
05 / CODE · osascript
Notification macOS
settings.json · hooks
"hooks": {
  "Notification": [{
    "matcher": "permission_prompt",
    "hooks": [{
      "type": "command",
      "command": "osascript -e 'display notification \"Human, I need your permission\" with title \"Claude Code\"'",
      "async": true
    }]
  }]
}
🔔 notif système native
🎯 message dynamique via JSON
⚡ plug & play
06 / CODE · say
Voix synthétique
settings.json · hooks
"hooks": {
  "Notification": [{
    "matcher": "elicitation_dialog",
    "hooks": [{
      "type": "command",
      "command": "say -v Zarvox 'Human, I need more information'",
      "async": true
    }]
  }]
}
# → plusieurs voix dispo : Zarvox, Trinoids, Bells…
🎧 impossible à rater
🧠 moins de charge mentale
07 / BONUS
Mes voix préférées
(et celles de mes enfants)
Zarvox Voix alien/robot très distincte utilisée actuellement
Trinoids Voix extraterrestre grésillante
Organ Voix d'orgue, grave et musicale
Whisper Voix chuchotée, discrète
Boing Voix rebondissante cartoonesque
07 / CLOSING
// À retenir
Les hooks
changent tout →
Ton agent ne t'interrompt plus.
C'est toi qui décides quand interagir.
Agent = vrai teammate 🤖
// LinkedIn
/in/maxime-lenne
// Site
maxime-lenne.fr
08 / 08