Answer: In the VS Code extension, hooks live in `.clinerules/hooks/` (workspace) or `~/Documents/Cline/Hooks/` (global), and the PreToolUse hook must be named exactly `PreToolUse` with no file extension. Status: Confirmed Entry: tool/cline/settings/install-pretooluse-hook-vscode Revision: 1 Digest: sha256:c9b977b8224dbe5c (changes whenever the content changes) Timeline: Created: 2026-11-13T03:06:34Z Last changed: 2026-11-13T03:06:34Z Last verified: 2026-11-20T12:27:32Z Next check: 2026-11-21T12:27:32Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Workspace hooks location | .clinerules/hooks/ | [1] | 2026-11-20 Global hooks location | ~/Documents/Cline/Hooks/ | [1] | 2026-11-20 Hook file name | PreToolUse | [1] | 2026-11-20 Install command | curl -o .clinerules/hooks/PreToolUse https://raw.githubusercontent.com/cline/cline/main/sdk/examples/hooks/PreToolUse_ClineignoreGuard.sh | [1] | 2026-11-20 Make executable command | chmod +x .clinerules/hooks/PreToolUse | [1] | 2026-11-20 Setting to enable | Enable Hooks | [1] | 2026-11-20 Sources: [1] Cline. ".clineignore (deprecate soon)". https://docs.cline.bot/customization/clineignore.md Role: primary. Accessed: 2026-11-20T12:27:32Z Quote: "Hooks in the extension live in `.clinerules/hooks/` (workspace)" (Supports: Workspace hooks location) Quote: "or `~/Documents/Cline/Hooks/` (global)" (Supports: Global hooks location) Quote: "must be named exactly after their event with no file extension, and need a shebang and the executable bit: ```bash theme={"system"} mkdir -p .clinerules/hooks curl -o .clinerules/hooks/PreToolUse" (Supports: Hook file name) Quote: "curl -o .clinerules/hooks/PreToolUse https://raw.githubusercontent.com/cline/cline/main/sdk/examples/hooks/PreToolUse_ClineignoreGuard.sh" (Supports: Install command) Quote: "chmod +x .clinerules/hooks/PreToolUse" (Supports: Make executable command) Quote: "Then check **Enable Hooks** in Cline's feature settings." (Supports: Setting to enable) Published: 2026-11-20T02:33:30Z Snapshot SHA-256: 31696bccfd35eaff1c53490e019531415b2e7aab3bcdd48792fda4327c590e9c (captured 2026-11-13T03:06:34Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:06:34Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:27:32Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:27:32Z Last attempt: 2026-11-20T12:27:32Z Notes and limitations: Extracted automatically from a single official source (section "Install in the VS Code extension"). Related: https://latestn.com/tool/cline/settings/local-network-access How do I make Cline Kanban accessible from other devices on my local network? https://latestn.com/tool/cline/settings/mcp-settings-file-location Where is the Cline MCP settings file located? https://latestn.com/tool/cline/settings/paste-api-key Where do I paste my API key for a provider in Cline? https://latestn.com/tool/cline/settings/environment-variables What environment variables can I use to configure Cline CLI? https://latestn.com/tool/cline/settings/global-config-location Where does Cline store its global configuration and settings files? https://latestn.com/tool/cline/settings/global-vs-project-config What is the difference between Cline global configuration and project configuration? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:06:34Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/cline/settings/install-pretooluse-hook-vscode/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/cline/settings/install-pretooluse-hook-vscode POST: https://latestn.com/dispute/tool/cline/settings/install-pretooluse-hook-vscode with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/cline/settings/install-pretooluse-hook-vscode?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). Where do I install a PreToolUse hook in the Cline VS Code extension? Revision 1, last verified 2026-11-20T12:27:32Z. https://latestn.com/tool/cline/settings/install-pretooluse-hook-vscode (accessed 2026-11-21T09:56:38Z). @misc{LatestN_tool_cline_settings_install_pretooluse_hook_vscode_r1, title = {Where do I install a PreToolUse hook in the Cline VS Code extension?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/cline/settings/install-pretooluse-hook-vscode}}, note = {Revision 1; digest sha256:c9b977b8224dbe5c; last verified 2026-11-20T12:27:32Z; accessed 2026-11-21T09:56:38Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/cline/settings/install-pretooluse-hook-vscode