shared-session
Reviewed
at commit 39a75c7
Caution: Uploads your project, transcript and Claude sign-in token when you press Move to cloud, lets teammates' agents run under your permission mode, and self-updates from GitHub main.
Sends data to Shared Sessions room server (claude-share.proud-limit-da0a.workers.dev) or one you set, while sharing or searching; Cloudflare/Google DNS (cloudflare-dns.com, dns.google) for proxied previews
Share a Claude Code session with a link, or with your team. Teammates join from their own Claude Code and talk to it: one session does the work, everyone sees…
0 upvotes
Log in to upvote or save- Made by
- scoootscooob
- Pinned commit
-
39a75c7ed8563574839f5ce741baab770c77344c - What we checked
-
Shares your session by link or team through the project's public room server (or yours): transcript, tool results, files Claude shows and dev servers you agree to share; a self-hosted server can keep turns for search. Teammates' typed prompts ask before edits or commands, but their agents' messages run under your permission mode. Move to cloud uploads your project and Claude token; Updates swaps in code from GitHub.
Review details
Static review of the source at the pinned commit; not run. Delta review of the changes since 2184e22; the rest carries over from the review at that commit. New in this version: plugin.json declares a stdio MCP server, traces (node relay/traces-mcp.mts, read in full), started with every session whether or not it is sharing. It answers initialize itself, returns no tools while signed out, reads the plugin's own sign-in token from shared-session/account.json under the Claude config folder (checked every 5 s, and at each request), reads pluginConfigs in settings.json only when it runs from the self-updating copy, and forwards each JSON-RPC request as one POST to <server>/mcp with the token in a Bearer header, only over https or to localhost, only to the configured share server and never to a server named in a joined link. Tool names, descriptions and results therefore come from that server (per docs/guide.md: search, get_turn, get_session, list_sessions over your own and your teams' kept turns), so search text goes to it and teammates' kept text reaches Claude's context. The plugin adds no allow rule for these tools: they get the normal permission prompt, are not in the READ_ONLY set, so a guest's prompt asks the host unless the room's approvals are set to none. /share-session gains a step: on a server whose /api/version says traces, a signed-out host is first asked to sign in (signin [provider], which then shares once the browser sign-in finishes) or to share with unkept. docs/guide.md and README disclose traces: only a server that turns them on keeps turns; the public server does not (wrangler.toml at this commit has no TRACES_DB or OAUTH_KV binding, though the deployed server cannot be checked from here); kept turns hold prompt, reply and tool names, have no end date and no way to delete them, and each turn's words go to Cloudflare Workers AI for indexing. The plugin says so as Share asks, and the Room and Team panels now state it. The rest of the diff is UI (Room header, band row, tab and text styling, an Invite button that signs in or copies the link, removal of the animated live dot), shared protocol types in types/protocol.d.ts that do not exist at runtime, and removal of unused forgetCloudToken, which had no callers at 2184e22. No change to tool.check, callOwner, cloud move, update or settings code. Carried over: registers session.start, session.end, command.run (share-session, team, invite, room, who, share-file, share-preview, stop-sharing), prompt.submit, turn.start, turn.step, turn.complete, classic.Stop, session.append, tool.call (all tools, its replay tool, Skill), agent.spawn, tool.check, ui.message, ui.close and many ui.render overrides (Room and Team panes, row above the prompt, message, tool and spinner rendering). Runtime calls: $.http.fetch and curl to the room server, $.process.spawn/run for /bin/sh scripts, Node helpers in relay/ (TCP and WebSocket relays, a loopback SOCKS proxy for a guest's preview window, same-project listener discovery via lsof/ps//proc, a detached mailbox helper on Unix sockets, delivery receipts), git, open/xdg-open, osascript/notify-send, pbpaste, the claude CLI for the update command; $.fs, $.store, $.state, $.mcp.call to Claude Desktop's ccd_sidebar, ccd_session_mgmt, ccd_view and Claude_Browser tools, $.prompt.submit, $.ui. Host approvals: tool.check keeps any deny, then for calls owned by a guest's typed prompt (or agents it started) asks the host (dialog or row, Decline after 10 minutes) except project-internal reads (real paths checked with relay/real.sh); Always allow trusts that seat. Messages from a teammate's own other sessions arrive through Claude Code's cross-session messaging (mailbox.mts writes native cross-session-message frames into this session's socket, with a from-mode the guest side supplies); turn.start marks those turns as the host's own, so the plugin's approval is skipped and only the host's permission mode and Claude Code's mode-class hold apply (disclosed in docs/guide.md, but plugin.json says the host approves what runs). Move to cloud (host's press) reads a Claude setup-token from the clipboard, stores it in ~/.claude/shared-session/cloud-token (0600), packs the project (git tracked plus untracked not ignored; outside git every file except .git and node_modules, which can include .env) and the session transcript, and uploads both plus the token to the room server's container; Bring home downloads the cloud diff and runs git apply on the project when it applies cleanly (disclosed in README and docs/cloud-host.md). Guests' preview windows start Chrome/Firefox on a private profile under ~/.claude/shared-session/browser with the plugin's SOCKS proxy; it refuses the guest's LAN and metadata addresses and, behind an upstream proxy, resolves names over DNS-over-HTTPS at 1.1.1.1/8.8.8.8 (disclosed in docs/guide.md); kill and cleanup scripts touch only its own profiles and processes. Settings: Updates writes extraKnownMarketplaces.claude-share.autoUpdate and CLAUDE_CODE_PLUGIN_DIRS / CLAUDE_CODE_PLUGIN_DIR_WATCH in ~/.claude/settings.json and copies itself to ~/.claude/shared-session/plugin; it turns on by itself when the marketplace already has autoUpdate (the repo's setup script sets it); every 30 minutes it asks the room server for the newest version and then downloads codeload.github.com/Paradigm-Study/claude-share main (overridable by SHARED_SESSION_RELEASE_URL) and rsyncs it over the running copy, so later code is not this commit. Allow pinning and Allow previews in Claude buttons append allow rules (four ccd_sidebar/ccd_session_mgmt tools, Claude_Browser preview_start) to permissions.allow. Read fully at the earlier review: plugin.json, hooks.json, the update, settings, pinning and allow-rule code, the mailbox design, cloud move and bring-home, callOwner, turn.start, tool.call, tool.check and session.start/end in register.tsx, plus relay/real.sh, relay/save.sh, hooks/paths.ts, server.ts, proxy.ts and the shell scripts in window.ts. Covered by headers and targeted search: the rest of register.tsx (now 15,312 lines, mostly UI and room protocol), browser-proxy.mts, mailbox.mts, discover.mts, receipt.mts, tcp-relay.mts, tcp-worker.mts, ws.mts, ws-relay.mts, local-preview.mts, upstream.ts, preview.ts, rows.ts, room.ts, look.ts, fit.ts, live.tsx, timeline.tsx and brand.ts (a base64 WebP image). The room server including its traces code, cloud runner and setup scripts were not reviewed; only their switch for traces was looked at.
- What it uses
-
- Reads your prompts: yes
- Sees tool calls: yes
- Blocks or changes tool calls: yes
- Reads or writes files: yes
- Runs programs on your machine: yes
- Calls the model (uses tokens): no
- Sends data over the network: yes
- Stores data: yes
- Shows something on screen: yes
- Hooked events
Share a Claude Code session with a link, or with your team. Teammates join from their own Claude Code and talk to it: one session does the work, everyone sees every turn live, and the host approves what runs on their machine. Sign in with GitHub or Google for teams: your team's live sessions, one press to join. Sharing goes through this project's public server unless you set your own (README: Privacy and the public server).
Made this mod? Add a badge to your README
Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.
[](https://modsforclaude.com/mods/shared-session/)