Skip to content

The reply address it prints is not runnable: no username, and cc-peer isn't on the remote PATH #9

Closed

Description

@abruption

The whole point of the reply line is that the receiver can paste it and have it work. It can't, for two independent reasons — both hit in real use, not in theory.

No username

reply_line() uses only the tailnet address from detect_reply_host(), so the receiver connects as its own local user. A peer session running as ubuntu tried to answer this laptop (abruptly) and was refused. Reproduced:

$ ssh <tailnet-ip> true            # as the reply line implies
Connection closed by <tailnet-ip> port 22
$ ssh abruptly@<tailnet-ip> true   # with the username
OK: [email protected]

Any fleet where account names differ across machines gets a reply address that always fails.

cc-peer is not on the PATH over SSH

The line names the bare cc-peer command, but a non-interactive SSH session doesn't source the profile that puts ~/.local/bin on the PATH:

host non-interactive login shell
KR not found /home/ubuntu/.local/bin/cc-peer
US not found —

SKILL.md already tells the agent to invoke python3 /path/to/cc_peer.py everywhere except the reply example, which uses the bare command.

Fix

  • Include the sending user (getpass.getuser()) in the address. It isn't guaranteed valid on the far side, but it's right whenever accounts match, and it's strictly better than omitting it.
  • Emit a form that survives a non-interactive shell — an absolute python3 ~/.claude/skills/cc-peer/cc_peer.py invocation rather than the bare command.
  • Make SKILL.md's reply example consistent with the rest of the file.

Verified on v0.2.0 across four machines.

Activity

  1. added
    bug
    on Sep 7, 2026
  2. abruption commented on Sep 7, 2026

    @abruption
    OwnerAuthor

    Fixed in #12.

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions