Skip to content

rtk init: generated RTK.md has a circular reference and the run miscounts its line total #2734

Closed

Description

@mvanhorn

Two small cosmetic issues in rtk init (0.43.0):

  1. The generated RTK.md ends with:

    Refer to CLAUDE.md for full command reference.

    But the same rtk init writes @RTK.md into CLAUDE.md (CLAUDE.md imports RTK.md). So the pointer is circular and resolves to nothing — there is no separate command reference in CLAUDE.md. Suggest dropping the line, or pointing it at rtk --help.

  2. rtk init prints RTK.md: ... (10 lines) while the file it actually writes is 29 lines. The reported count is wrong.

Neither affects function; just confusing to a reader.

Activity

  1. added
    bug
    good first issue
    on Jun 29, 2026
  2. pszymkowiak commented on Jun 29, 2026

    @pszymkowiak
    Collaborator

    wshm · Automated triage by AI

    🔍 Automated Triage

    🐛 Category bug
    🟢 Priority low
    🎯 Confidence 91%

    Summary

    Two cosmetic bugs in rtk init: generated RTK.md has a circular self-reference, and the reported line count is wrong (10 vs 29 actual); neither affects functionality.

    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 Oct 31, 2026

    @KuSh
    Collaborator

    Both points are resolved: the RTK.md that rtk init generates no longer has the "Refer to CLAUDE.md" line, and init no longer prints a line count for it. This changed with #3372, shipped in v0.49.0. If you still see either on v1.1.0, please comment or reopen.

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:clibuggood first issuepriority:low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions