> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Hook Plugin Protocol • TypeScript AI Agent SDK

> HookPluginProtocol: TypeScript HookPluginProtocol class

# HookPluginProtocol

> Defined in the [**plugins**](../modules/plugins) module.

<Badge color="green">TypeScript AI Agent</Badge>

TypeScript HookPluginProtocol class

```mermaid theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%

graph TD
    event["Event Trigger"] --> hook["Hook: HookPluginProtocol"]
    hook --> decision{"Decision"}
    decision -- "Allow" --> proc["Process"]
    decision -- "Deny" --> block["Block"]
    style hook fill:#189AB4,color:#fff
    style event fill:#8B0000,color:#fff
    style proc fill:#8B0000,color:#fff
    style block fill:#8B0000,color:#fff
```

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-ts/src/plugins/index.ts#L107">
  `src/plugins/index.ts` at line 107
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="JS Hooks Manager" icon="anchor" href="/docs/js/hooks-manager" />

  <Card title="JS Memory Hooks" icon="database" href="/docs/js/memory-hooks" />

  <Card title="JS Workflow Hooks" icon="diagram-project" href="/docs/js/workflow-hooks" />

  <Card title="JS Plugins" icon="plug" href="/docs/js/plugins" />
</CardGroup>
