Answer: Cursor supports hook events including preToolUse, postToolUse, postToolUseFailure, subagentStart, subagentStop, beforeShellExecution / beforeMCPExecution, afterShellExecution, afterMCPExecution, afterFileEdit, beforeReadFile, beforeTabFileRead, afterTabFileEdit, beforeSubmitPrompt, afterAgentResponse, afterAgentThought, stop, sessionStart, sessionEnd, preCompact, and workspaceOpen. Status: Confirmed Entry: tool/cursor/features/supported-hook-events Revision: 1 Digest: sha256:b293991ee1d086ee (changes whenever the content changes) Timeline: Created: 2026-11-13T03:10:50Z Last changed: 2026-11-13T03:10:50Z Last verified: 2026-11-20T12:38:10Z Next check: 2026-11-21T12:38:10Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of preToolUse | preToolUse | [1] | 2026-11-20 afterFileEdit | afterFileEdit | [1] | 2026-11-20 stop | stop | [1] | 2026-11-20 postToolUse | postToolUse | [1] | 2026-11-20 subagentStart | subagentStart | [1] | 2026-11-20 sessionStart | sessionStart | [1] | 2026-11-20 preCompact | preCompact | [1] | 2026-11-20 workspaceOpen | workspaceOpen | [1] | 2026-11-20 Sources: [1] Anysphere. "cursor.com/docs/hooks.md". https://cursor.com/docs/hooks.md Role: primary. Accessed: 2026-11-20T12:38:10Z Quote: "#### preToolUse" (Supports: preToolUse) Quote: "#### afterFileEdit" (Supports: afterFileEdit) Quote: "#### stop" (Supports: stop) Quote: "#### postToolUse" (Supports: postToolUse) Quote: "#### subagentStart" (Supports: subagentStart) Quote: "#### sessionStart" (Supports: sessionStart) Quote: "#### preCompact" (Supports: preCompact) Quote: "#### workspaceOpen" (Supports: workspaceOpen) Snapshot SHA-256: 5af36d6a319bf8ecb6cd3be1e49690fa8fe2bf7f1b5accee2d8cc524f744fee5 (captured 2026-11-17T12:48:22Z) 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-17T12:48:21Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:38:10Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:38:10Z Last attempt: 2026-11-20T12:38:10Z Notes and limitations: Extracted automatically from a single official source (section "Hook events"). Related: https://latestn.com/tool/cursor/features/view-commit-history-and-filter-author How do I view commit history and filter commits by author in Cursor Origin? https://latestn.com/tool/cursor/features/voice-chat-requirements What are the requirements to use voice chat in Cursor? https://latestn.com/tool/cursor/features/when-to-use-debug-mode When should I use Debug Mode in Cursor? https://latestn.com/tool/cursor/features/share-linux-agent-desktop How do I share the agent desktop on a Cursor Linux worker? https://latestn.com/tool/cursor/features/start-voice-chat How do I start a voice chat in Cursor? https://latestn.com/tool/cursor/features/stream-messages How do I stream messages and handle stream events from a Cursor SDK agent run? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:10:50Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/cursor/features/supported-hook-events/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/cursor/features/supported-hook-events POST: https://latestn.com/dispute/tool/cursor/features/supported-hook-events with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/cursor/features/supported-hook-events?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). Which hook events does Cursor support, such as preToolUse, afterFileEdit, or stop? Revision 1, last verified 2026-11-20T12:38:10Z. https://latestn.com/tool/cursor/features/supported-hook-events (accessed 2026-11-21T09:54:18Z). @misc{LatestN_tool_cursor_features_supported_hook_events_r1, title = {Which hook events does Cursor support, such as preToolUse, afterFileEdit, or stop?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/cursor/features/supported-hook-events}}, note = {Revision 1; digest sha256:b293991ee1d086ee; last verified 2026-11-20T12:38:10Z; accessed 2026-11-21T09:54:18Z} } 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/cursor/features/supported-hook-events