Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By RyanKim17920v0.2.0MITIn 1 marketplace
Let your own Claude Code sessions (same machine, cluster nodes, your laptop over one ssh connection) list each other and exchange short messages.
Claude loads one when your task matches it, or you run it by name.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A Claude Code plugin that lets your own Claude Code sessions (other terminals, cluster nodes, your laptop) discover each other and exchange short messages, with replies. Pure Python 3 standard library, no dependencies, Linux and macOS (WSL works like Linux).
You sit at a laptop (often macOS, no sshd, behind NAT) and ssh into a cluster login node. Two steps, then it just works in both directions over that one ssh connection:
/plugin marketplace add RyanKim17920/session-mesh
/plugin install session-mesh@session-mesh
Optional CLI: meshctl lives in the plugin directory (bin/meshctl, under ~/.claude/plugins/ for an installed plugin). Either symlink it, e.g. ln -s <plugin dir>/bin/meshctl ~/.local/bin/meshctl, or git clone https://github.com/RyanKim17920/session-mesh and link bin/meshctl from there. Nothing below needs it.ssh cluster as usual.That is all. On the next ssh connection the laptop's relay socket is reverse-forwarded to the cluster, the cluster side connects back over the same socket, and mesh_list_peers on either side shows the other side's sessions (via link: on the laptop, via relay: on the cluster).
What the SessionStart hook does on each machine, idempotently and in the background:
~/.claude-mesh/relay.sock, mode 0600);~/.claude-mesh/ssh_config (RemoteForward /tmp/cmesh-%r-<this host>.sock <relay.sock> + StreamLocalBindUnlink yes, for every host except github/gitlab/bitbucket/azure-devops/amazonaws) and puts a managed block at the very top of ~/.ssh/config:
# >>> session-mesh >>>
Include ~/.claude-mesh/ssh_config
# <<< session-mesh <<<
The original is backed up once to ~/.ssh/config.session-mesh.bak. The result is validated with ssh -G; if it fails the change is rolled back immediately. The first time it applies, Claude tells you in the SessionStart context.CLAUDE_MESH_NO_SSH_CONFIG=1, or meshctl ssh-setup --remove (deletes the block and records an opt-out marker; deleting the block by hand is respected too). meshctl ssh-setup --status shows the state and --enable turns it back on. With a custom CLAUDE_MESH_DIR it never touches ~/.ssh/config unless CLAUDE_MESH_SSH_USER_CONFIG names a file.~/.claude-mesh/hosts has no forward yet, the hook's background pull attaches it with ssh -O forward (no reconnect). Connections that are not ControlMaster-shared pick the forward up on their next reconnect.Needs OpenSSH >= 8 for the %r token (the remote user name); on older clients a fixed /tmp/cmesh-<local user>-<host>.sock is used, which only works when the remote user name equals the local one. The remote sshd must allow AllowStreamLocalForwarding (default yes).
Plugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub ryankim17920/session-mesh --plugin session-mesh