Skip to content

Bug: [rtk] /!\ No hook installed — run rtk init -g for automatic token savings #3731

Closed as duplicate

Description

@qdrddr

When I use rtk in CLI or in Cursor hooks, I see [rtk] /!\ No hook installed — run rtk init -g for automatic token savings because I do not use Claude.

Only when I add rtk hook to the Claud's setting.json its stops complaining, but then it conflicts with my Cursor's hooks since the Cursor pulls Claud's hook settings by default.

rtk should not be checking its installed as a hook in the first place.

example:

rtk ls
[rtk] /!\ No hook installed — run `rtk init -g` for automatic token savings
rtk: Failed to resolve 'ls' via PATH, falling back to direct exec: Binary 'ls' not found on PATH
rtk: Failed to run ls: Failed to spawn process: program not found

Windows 11 x86

this seems to be an issue because ~/.claude directory exists even though I'm not using claude.

Activity

  1. qdrddr commented on Sep 3, 2026

    @qdrddr
    Author

    this does not help if I add to the config file (%APPDATA%\rtk\config.toml):

    [hooks]
    suppress_hook_warning = true
  2. qdrddr commented on Sep 3, 2026

    @qdrddr
    Author

    Related to
    #776

  3. KuSh commented on Sep 5, 2026

    @KuSh
    Collaborator

    Closing as a duplicate of #682, which tracks the same problem with the more complete discussion. Please follow up there; if your case differs in a way that issue does not cover, comment here and it can be reopened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions