{
  "title": "Send /new via your messaging channel",
  "content": "json theme={null}\n{\n  \"hooks\": {\n    \"internal\": {\n      \"enabled\": true,\n      \"entries\": {\n        \"session-memory\": { \"enabled\": true },\n        \"command-logger\": { \"enabled\": false }\n      }\n    }\n  }\n}\njson theme={null}\n{\n  \"hooks\": {\n    \"internal\": {\n      \"enabled\": true,\n      \"entries\": {\n        \"my-hook\": {\n          \"enabled\": true,\n          \"env\": {\n            \"MY_CUSTOM_VAR\": \"value\"\n          }\n        }\n      }\n    }\n  }\n}\njson theme={null}\n{\n  \"hooks\": {\n    \"internal\": {\n      \"enabled\": true,\n      \"load\": {\n        \"extraDirs\": [\"/path/to/more/hooks\"]\n      }\n    }\n  }\n}\njson theme={null}\n{\n  \"hooks\": {\n    \"internal\": {\n      \"enabled\": true,\n      \"handlers\": [\n        {\n          \"event\": \"command:new\",\n          \"module\": \"./hooks/handlers/my-handler.ts\",\n          \"export\": \"default\"\n        }\n      ]\n    }\n  }\n}\nbash theme={null}",
  "code_samples": [
    {
      "code": "## Configuration\n\n### New Config Format (Recommended)",
      "language": "unknown"
    },
    {
      "code": "### Per-Hook Configuration\n\nHooks can have custom configuration:",
      "language": "unknown"
    },
    {
      "code": "### Extra Directories\n\nLoad hooks from additional directories:",
      "language": "unknown"
    },
    {
      "code": "### Legacy Config Format (Still Supported)\n\nThe old config format still works for backwards compatibility:",
      "language": "unknown"
    },
    {
      "code": "**Migration**: Use the new discovery-based system for new hooks. Legacy handlers are loaded after directory-based hooks.\n\n## CLI Commands\n\n### List Hooks",
      "language": "unknown"
    }
  ],
  "headings": [
    {
      "level": "h2",
      "text": "Configuration",
      "id": "configuration"
    },
    {
      "level": "h3",
      "text": "New Config Format (Recommended)",
      "id": "new-config-format-(recommended)"
    },
    {
      "level": "h3",
      "text": "Per-Hook Configuration",
      "id": "per-hook-configuration"
    },
    {
      "level": "h3",
      "text": "Extra Directories",
      "id": "extra-directories"
    },
    {
      "level": "h3",
      "text": "Legacy Config Format (Still Supported)",
      "id": "legacy-config-format-(still-supported)"
    },
    {
      "level": "h2",
      "text": "CLI Commands",
      "id": "cli-commands"
    },
    {
      "level": "h3",
      "text": "List Hooks",
      "id": "list-hooks"
    }
  ],
  "url": "llms-txt#send-/new-via-your-messaging-channel",
  "links": []
}