Skip to content

False 'No hook installed' warning for Codex install on macOS when ~/.claude exists #1734

Closed as duplicate

Description

@nidhi-singh02

Summary

RTK shows [rtk] /!\ No hook installed — run rtk init -g for automatic token savings on macOS even when the Codex integration is installed and rtk init --show --codex reports OK.

This appears to happen when ~/.claude exists but the Claude RTK PreToolUse hook is not installed. RTK checks Claude hook status and emits the warning, but does not treat the existing Codex integration as a valid RTK install.

Environment

  • OS: macOS
  • RTK version: rtk 0.38.0
  • Tool: Codex
  • Install mode: rtk init -g --codex

Current Codex status

rtk init --show --codex reports:

rtk Configuration (Codex CLI):

[ok] Global RTK.md: /Users/nidhi/.codex/RTK.md
[ok] Global AGENTS.md: RTK.md reference
[--] Local RTK.md: not found
[--] Local AGENTS.md: not found

So the Codex integration appears to be installed correctly.

Reproduction

  1. Install RTK for Codex:
rtk init -g --codex
  1. Have an existing ~/.claude directory, but no RTK Claude PreToolUse hook in ~/.claude/settings.json.

  2. Run any RTK command from Codex or a terminal:

rtk find . -maxdepth 3 -type f
  1. RTK prints:
[rtk] /!\ No hook installed — run `rtk init -g` for automatic token savings

Expected behavior

If Codex is installed via ~/.codex/AGENTS.md and ~/.codex/RTK.md, RTK should treat that as a valid integration and not emit the missing hook warning.

Actual behavior

RTK emits the missing hook warning because ~/.claude exists and the Claude hook is not installed, even though Codex is configured.

Related PRs/issues

Notes

This is not blocking RTK command use. The command output is still filtered. The problem is the warning itself consumes tokens and looks like setup failed, even though the Codex integration reports OK.

Activity

  1. pszymkowiak commented on May 27, 2026

    @pszymkowiak
    Collaborator

    wshm · Automated triage by AI

    🔍 Automated Triage

    🐛 Category bug
    🟢 Priority low
    🎯 Confidence 88%

    Summary

    RTK emits false 'No hook installed' warning when Codex integration is active but ~/.claude exists without a Claude hook; fix hook-check logic to recognize Codex as a valid integration.

    ♻️ Possible duplicate of #2024


    Triaged automatically by wshm · This is an automated analysis, not a human review.

  2. KuSh commented on Sep 5, 2026

    @KuSh
    Collaborator

    Closing as a duplicate of #913, 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.

  3. reopened this on Sep 5, 2026
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions