Skip to content

RTK.md template ends with "Refer to CLAUDE.md for full command reference", which the default install never writes #3940

Closed as duplicate

Description

@MohammadErfan-Jabbari

Summary

The RTK.md written by rtk init -g (Claude Code, default mode) ends with a pointer to a command reference that the default install never creates.

Detail

The template's last line is:

Refer to CLAUDE.md for full command reference.

But in the default Claude Code path (PreToolUse hook + RTK.md), nothing writes a command reference into CLAUDE.md. That only happens in legacy mode — rtk init --claude-md ("Inject full instructions into CLAUDE.md (legacy mode)"), which is where the by-workflow command catalog lives.

So on the default path the line resolves to nothing. It's cheap in tokens but it's a dead reference sitting in a file that's loaded into every session, and it sends the model looking for a section that isn't there.

Verified against rtk 0.40.0 (template extracted from the installed binary; matches the generated ~/.claude/RTK.md).

Suggested fix

Drop the line from the default template, or emit it only in --claude-md mode.

Two smaller notes on the same template

  • Installation Verification + name-collision block. Three verification commands and a warning about reachingforthejack/rtk are one-time setup diagnostics, but they live in a file loaded on every request. rtk init already prints verification guidance to the terminal, which reaches the user at the moment it's useful.
  • (60-90% savings on dev operations) in the usage line is a headline the README itself qualifies ("Bash output is one contributor to input tokens ... The reduction dilutes at every step"). In the always-loaded file it reads as a fact about the current session rather than a benchmark figure.

Both are judgment calls about what belongs in a permanently-loaded instruction file rather than bugs — feel free to close that part if it's deliberate.

Activity

  1. added
    bug
    good first issue
    on Sep 8, 2026
  2. rtk-wshm-sync-bot commented on Sep 8, 2026

    @rtk-wshm-sync-bot

    wshm · Automated triage by AI

    🔍 Automated Triage

    🐛 Category bug
    🟢 Priority low
    🎯 Confidence 82%

    Summary

    Default RTK.md template ends with a dead pointer to CLAUDE.md command reference that only exists in legacy --claude-md mode; drop or condition the line, and consider trimming one-time verification/benchmark text from the always-loaded template.

    This looks like a simple fix that could be auto-resolved. Repo maintainers can use /wshm fix to attempt it.

    📁 Relevant files
    • src/init.rs
    • templates/RTK.md

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

  3. KuSh commented on Sep 13, 2026

    @KuSh
    Collaborator

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

    area:docsbuggood first issuepriority:low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions