Skip to content

Add Cursor hook setup#204

Merged
Siddhant-K-code merged 1 commit into
mainfrom
feat/cursor-hooks
Jun 10, 2026
Merged

Add Cursor hook setup#204
Siddhant-K-code merged 1 commit into
mainfrom
feat/cursor-hooks

Conversation

@Siddhant-K-code

Copy link
Copy Markdown
Owner

Summary

  • Add Cursor as a supported hook provider for agent-strace hook and agent-strace setup --cli cursor.
  • Generate .cursor/hooks.json or $CURSOR_CONFIG_DIR/hooks.json with Cursor prompt, shell, file-edit, response, and session lifecycle command hooks.
  • Normalize Cursor hook payloads into the existing trace events, including shell tool calls and file-write events.
  • Document Cursor setup and the current coverage limits; MCP proxy tracing remains the reliable path for MCP server tool calls.
  • Bump package version to 0.79.0.

Closes #174.

Verification

  • python3 -m pytest tests/test_cursor_hooks.py tests/test_codex_hooks.py tests/test_gemini_hooks.py -q -> 21 passed
  • python3 -m compileall -q src/agent_trace && git diff --check
  • python3 -m agent_trace.cli --version -> agent-strace 0.79.0
  • python3 -m pytest tests/ -q -> 1602 passed
  • wc -l README.md -> 221

@Siddhant-K-code Siddhant-K-code added the enhancement New feature or request label Jun 10, 2026
Co-authored-by: Codex <noreply@openai.com>
@Siddhant-K-code Siddhant-K-code merged commit 33ef8bc into main Jun 10, 2026
4 checks passed
@Siddhant-K-code Siddhant-K-code deleted the feat/cursor-hooks branch June 10, 2026 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Cursor agent hook support (agent-strace setup --cli cursor)

1 participant