Skip to content

Identify the sender: peer messages arrive with origin.from = unknown #15

Closed

Description

@abruption

What's wrong

Claude Code has a field for who sent a cross-session message, and messages posted by cc-peer leave it empty. From a received message's transcript record:

{"kind": "peer", "from": "unknown", "verifiedPeerPid": 51157}

verifiedPeerPid is the short-lived python process that wrote to the socket, so it identifies nothing useful. A same-machine SendMessage shows @api-worker; ours shows nothing.

The practical result: every message has to introduce itself by hand. Today's sends all opened with a line like [sent from macbook via cc-peer], written manually each time. Forget it once and the receiver cannot tell who is asking — which matters, because the receiving Claude is told to treat a peer message as a teammate's request.

What cc-peer should add — and what it shouldn't

Claude Code already wraps arriving messages itself. Measured on a real delivery, it supplies both the opening line and the trailing guidance about permission laundering. cc-peer must not duplicate those; a second copy of the same paragraph in every message is noise, and it would grow with each hop.

What's actually missing is one header:

From: abruptly@macbook-pro-m4-pro (documents-ed)

user, host, and the sending session's name — the same three facts the reply line already carries, so they can be derived the same way and cost nothing.

Sketch

From: <user>@<hostname> (<session>)

<the message>

---
Reply: python3 ~/.claude/skills/cc-peer/cc_peer.py send --host … --to … --no-reply-to

--no-reply-to should suppress the Reply: line as it does now, without dropping From: — knowing who sent something is useful even when you can't answer it.

Acceptance criteria

  • From: prepended automatically, derived from the sending session
  • No duplication of the wrapper Claude Code already adds
  • --no-reply-to keeps From:
  • A flag to suppress it for callers that want a bare body
  • Covered by unit tests, like the reply line

Activity

  1. added
    enhancement
    on Sep 7, 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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions