Cline v3.36: Hooks - Inject Custom Logic Into Cline's Workflow
Blog post from Cline
Cline v3.36 introduces Hooks, a feature allowing users to inject custom logic into AI workflows at critical decision points by using executable scripts that trigger during specific workflow events. These scripts, which must be placed in designated directories for global or project-specific use, receive JSON input to decide whether to allow or cancel operations and can modify the AI's context for future actions. Hooks are categorized into six types, including PreToolUse and PostToolUse, each serving distinct functions like validating operations or tracking performance. The update also includes various improvements, such as compatibility enhancements and refinements to the GLM-4.6 system prompt, but is currently available only for macOS and Linux, with Windows support absent.