Skip to content

update --host tells you to run a script that usually isn't there #27

Closed

Description

@abruption

What it says

$ cc-peer update --host web-01
web-01 runs cc-peer 0.3.0; this machine has 0.4.0.
Push it with:  ./install.sh --host web-01

Why that's wrong more often than not

install.sh copies cc_peer.py and SKILL.md into the skill directory. It does not install itself. So:

  • curl -O .../cc_peer.py users never had it
  • curl | sh users never had it
  • clone users have it, but only from that directory — the message's ./ is relative to wherever they happen to be

Worse, the suggested command can't carry --ssh-opt, so anyone reaching a host on a non-default port gets advice that is guaranteed to fail even if they do have the file. cc-peer update --host web-01 --ssh-opt=-p --ssh-opt=2222 works; the command it prints does not.

The tool already knows how to do this

run_remote() reads its own source and pipes it to ssh ... python3 -. Pushing a file over the SSH connection is a solved problem in this codebase.

The README justifies not fetching on the remote — "hosts with no route out are one of the reasons this exists" — and that reasoning is sound. It says nothing about refusing to push from here. Right now the tool recommends pushing while withholding the means.

Fix

Add a push branch to cmd_update, reusing the transport in run_remote(). install.sh:112-125 already has the base64-heredoc logic; porting it is roughly 20 lines.

Once that exists, the message can name a command that works — and carry the same --ssh-opt the user already passed.

Acceptance criteria

  • cc-peer update --host web-01 can actually update it, not just report
  • Works without install.sh present anywhere
  • Honours --ssh-opt
  • Target still needs no internet access — the file comes from here
  • --check keeps reporting without changing anything

Activity

  1. added
    bug
    on Sep 7, 2026
  2. added a commit that references this issue on Sep 8, 2026
    270b4ef
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