mirror of
https://github.com/OthmanAdi/planning-with-files.git
synced 2026-04-26 00:16:01 +03:00
[GH-ISSUE #61] Update Cursor IDE setup readme now that Cursor supports hooks #37
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/planning-with-files#37
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sulsDotK on GitHub (Jan 27, 2026).
Original GitHub issue: https://github.com/OthmanAdi/planning-with-files/issues/61
https://cursor.com/docs/agent/hooks
@OthmanAdi commented on GitHub (Feb 4, 2026):
Fixed in
0b033eb— Cursor now has full hook support!What was added:
.cursor/hooks.json— Hook configuration with 3 hooks:preToolUse— Re-readstask_plan.mdbefore Write/Edit/Shell/Read operations to keep goals in contextpostToolUse— Reminds to updatetask_plan.mdafter file modificationsstop— Checks if all phases are complete. If not, uses Cursor'sfollowup_messageto auto-continue the agent (capped at 3 retries)Hook scripts (bash + PowerShell):
.cursor/hooks/pre-tool-use.sh/.ps1.cursor/hooks/post-tool-use.sh/.ps1.cursor/hooks/stop.sh/.ps1.cursor/hooks.windows.json— Alternative config for native PowerShell (no Git Bash needed)Updated
docs/cursor.md— Completely rewritten. Removed the old "hooks don't work" limitation section and documented the full hook setup.The stop hook is actually more powerful in Cursor than in Claude Code — Cursor's
followup_messageauto-prompts the agent to keep working, whereas Claude Code's stop hook can only report status.Thanks @sulsDotK for flagging this — great catch on the new Cursor hooks support!