Skip to content

fix(init): make --agent cursor install Cursor hooks only - #2958

Open
robertlyson wants to merge 1 commit into
rtk-ai:developfrom
robertlyson:fix/cursor-init-skip-claude
Open

fix(init): make --agent cursor install Cursor hooks only#2958
robertlyson wants to merge 1 commit into
rtk-ai:developfrom
robertlyson:fix/cursor-init-skip-claude

Conversation

@robertlyson

Copy link
Copy Markdown

Summary

  • Fix rtk init -g --agent cursor incorrectly running Claude Code setup (~/.claude/RTK.md, CLAUDE.md, settings.json) alongside Cursor hooks
  • --agent cursor now installs Cursor hooks only; Claude setup runs only when no agent is specified or --agent claude is explicit
  • Create ~/.cursor before writing hooks.json so Cursor-only install works on fresh machines

Test plan

  • cargo fmt --all && cargo clippy --all-targets
  • cargo test init_install_targets
  • cargo test test_run_cursor_only_global_skips_claude_artifacts
  • Manual E2E: isolated HOME — only ~/.cursor/hooks.json created, no ~/.claude artifacts
  • Manual E2E: real machine — rtk init -g --agent cursor shows Cursor output only (no Claude prompts)

Made with Cursor

`rtk init -g --agent cursor` was incorrectly running Claude Code setup
because install_claude defaulted to true. Cursor is now exclusive unless
Claude is explicitly selected, and ~/.cursor is created before writing hooks.

Co-authored-by: Cursor <cursoragent@cursor.com>
@CLAassistant

CLAassistant commented Jul 11, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

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.

2 participants