Skip to content

Add Cursor support - #22

Merged
raj-khan merged 1 commit into
mainfrom
support-cursor
Oct 24, 2026
Merged

raj-khan merged 1 commit into
mainfrom
support-cursor

Conversation

@raj-khan

Copy link
Copy Markdown
Contributor

Adds a Cursor adapter: preToolUse, postToolUse and sessionStart in .cursor/hooks.json (version 1), keeping hooks already there. Deny prints permission: deny with user_message and agent_message; a clean call prints permission: allow, because Cursor blocks a permission hook that prints nothing. The output check answers with additional_context. .cursor/hooks.json is covered by the tamper check. init wires Cursor by default when .cursor/ exists. Backlog task-3.

init wires preToolUse, postToolUse and sessionStart in .cursor/hooks.json when the project uses Cursor or --agents names it. A clean call prints an explicit allow, since Cursor blocks on empty output from a permission hook.
@raj-khan
raj-khan merged commit 743d77b into main Oct 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant