rtk-ai/rtk

Need config to suppress warnings like "No hook installed — run `rtk init -g` for automatic token savings"

Open

#682 创建于 2026年3月18日

在 GitHub 查看
 (17 评论) (16 反应) (0 负责人)Rust (48,085 star) (2,914 fork)batch import
effort-smallenhancementgood first issueresolved-pending-close

描述

I'm using rtk in Windows with my Claude Code. According to the guidance, I added rtk's instructions to my CLAUDE.md instead of configuring Claude Code Hooks.

But every time when Claude Code run some bash command with rtk, it will print a warning message like below:

● Let me check the current state of these files.
● Bash(rtk git log --oneline -20)
  ⎿  [rtk] /!\ No hook installed — run `rtk init -g` for automatic token savings               !!!!!! Unexpected warnings.
     7cb555668 Fix some package versions
     f214d1b2e Fix csproj
     … +18 lines (ctrl+o to expand)
● Searched for 1 pattern (ctrl+o to expand)

贡献者指南

Need config to suppress warnings like "No hook installed — run `rtk init -g` for automatic token savings" · rtk-ai/rtk#682 | Good First Issue