Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
I can’t seem to make the hooks work on Windows
Steps to Reproduce
I tried to create the most basic hook command that should work on any CMD and without any special char.
Example hooks.json:
{
"hooks": {
"afterAgentResponse": [
{
"command": "copy C:\\Users\\aviv\\1.txt C:\\Users\\aviv\\afterAgentResponse.txt"
}
],
"afterAgentThought": [
{
"command": "copy C:\\Users\\aviv\\1.txt C:\\Users\\aviv\\afterAgentThought.txt"
}
],
"afterFileEdit": [
{
"command": "copy C:\\Users\\aviv\\1.txt C:\\Users\\aviv\\afterFileEdit.txt"
}
],
"afterMCPExecution": [
{
"command": "copy C:\\Users\\aviv\\1.txt C:\\Users\\aviv\\afterMCPExecution.txt"
}
],
"afterShellExecution": [
{
"command": "copy C:\\Users\\aviv\\1.txt C:\\Users\\aviv\\afterShellExecution.txt"
}
],
"beforeMCPExecution": [
{
"command": "copy C:\\Users\\aviv\\1.txt C:\\Users\\aviv\\beforeMCPExecution.txt"
}
],
"beforeReadFile": [
{
"command": "copy C:\\Users\\aviv\\1.txt C:\\Users\\aviv\\beforeReadFile.txt"
}
],
"beforeShellExecution": [
{
"command": "copy C:\\Users\\aviv\\1.txt C:\\Users\\aviv\\beforeShellExecution.txt"
}
],
"beforeSubmitPrompt": [
{
"command": "copy C:\\Users\\aviv\\1.txt C:\\Users\\aviv\\beforeSubmitPrompt.txt"
}
],
"stop": [
{
"command": "copy C:\\Users\\aviv\\1.txt C:\\Users\\aviv\\stop.txt"
}
]
},
"version": 1
}
The file C:\Users\aviv\1.txt exists and is not empty. none of the hook files are created after conversing with the chat.
Expected Behavior
I’d expect the file 1.txt to be copied for each hook.
Operating System
Windows 10/11
Current Cursor Version (Menu → About Cursor → Copy)
Version: 2.3.41 (system setup)
VSCode Version: 1.105.1
Commit: 2ca326e0d1ce10956aea33d54c0e2d8c13c58a30
Date: 2026-01-16T19:14:00.150Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Windows_NT arm64 10.0.26100
Does this stop you from using Cursor
No - Cursor works, but with this issue