hooks.json 366 B

1234567891011121314151617
  1. {
  2. "description": "Blocks sleep commands and reminds Claude to use background tasks",
  3. "hooks": {
  4. "PreToolUse": [
  5. {
  6. "matcher": "Bash",
  7. "hooks": [
  8. {
  9. "type": "command",
  10. "command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/check-sleep.sh",
  11. "timeout": 5
  12. }
  13. ]
  14. }
  15. ]
  16. }
  17. }