hooks.json 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. {
  2. "description": "Hookify plugin - User-configurable hooks from .local.md files",
  3. "hooks": {
  4. "PreToolUse": [
  5. {
  6. "hooks": [
  7. {
  8. "type": "command",
  9. "command": "python3 \"${CLAUDE_PLUGIN_ROOT}/hooks/pretooluse.py\"",
  10. "timeout": 10
  11. }
  12. ]
  13. }
  14. ],
  15. "PostToolUse": [
  16. {
  17. "hooks": [
  18. {
  19. "type": "command",
  20. "command": "python3 \"${CLAUDE_PLUGIN_ROOT}/hooks/posttooluse.py\"",
  21. "timeout": 10
  22. }
  23. ]
  24. }
  25. ],
  26. "Stop": [
  27. {
  28. "hooks": [
  29. {
  30. "type": "command",
  31. "command": "python3 \"${CLAUDE_PLUGIN_ROOT}/hooks/stop.py\"",
  32. "timeout": 10
  33. }
  34. ]
  35. }
  36. ],
  37. "UserPromptSubmit": [
  38. {
  39. "hooks": [
  40. {
  41. "type": "command",
  42. "command": "python3 \"${CLAUDE_PLUGIN_ROOT}/hooks/userpromptsubmit.py\"",
  43. "timeout": 10
  44. }
  45. ]
  46. }
  47. ]
  48. }
  49. }