Session Relay

io.github.Ryrahul由 GitHub 帳號 Ryrahul 發布v0.7.0更新於 Oct 26, 2026

Share coding-agent sessions with your team: /share in one agent, /pickup in another.

已驗證STDIO僅桌面開發者工具溝通與協作

概覽

AI 產生的概覽

在團隊之間共享編碼代理工作階段,讓助理交接工作、接手他人的工作階段,並即時協作。

可以做什麼
  • 列出與搜尋共享工作階段,包括指派給你的交接,以及依檔案或分支篩選
  • 以交接形式載入共享工作階段,依不同詳細程度讀取摘要、決策、後續步驟與對話
  • 依儲存庫的交接範本分享目前工作階段,並更新或留言於既有的分享
  • 讀取隊友附加在工作階段上的未提交變更 diff
  • 查看團隊近期動態,以及誰正在即時工作、涉及哪些檔案
  • 啟動、傳送訊息、收取收件匣、更新與結束即時工作階段
適用情境
適合多人或多個代理在同一個儲存庫上協作、需要在 Claude Code、Codex、Gemini CLI、Copilot CLI、Cursor 等代理之間傳遞工作的團隊,或需要並行工作時保持同步的情境。
執行需求
以本機 npm 套件 session-relay 透過 stdio 執行,需全域安裝並以 relay 命令列完成設定。需要團隊自有的 Session Relay 伺服器,透過 RELAY_SERVER 環境變數提供或經 relay login 儲存;若未登入還需在 RELAY_TOKEN 中提供個人存取權杖。僅支援桌面端。
安裝前請注意
共享的工作階段、留言與即時訊息會上傳到團隊伺服器,其中的內容隊友可見;工具提示不要包含機密,README 稱憑證會在上傳前於本機移除,但仍應確認送出內容。分享、更新、留言、刪除與即時傳訊都會寫入他人可見的資料。隊友的訊息會在步驟之間送達代理;伺服器說明要求先向使用者顯示並徵得同意再執行,除非開啟自動模式。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Session Relay,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

session-relay

Share coding-agent sessions with your team across Claude Code, Codex, OpenCode, Gemini CLI, Copilot CLI, Cursor and ZCode. Run /share in one agent; a teammate runs /pickup in whichever agent they use and carries on with the goal, decisions, next steps and recent conversation.

sh
npm install -g session-relayrelay login --server https://relay.your-team.com   # approve in the browserrelay setup     # adds the relay MCP server and /share, /pickup, /live to your agents

Then, in your agent:

/share/share for bob/pickup/pickup alice's webhook retry work/live                      # working at the same time: see who's on what, message their session

You need a Session Relay server for your team; see self-hosting. Cloud hosting is coming soon.

Commands

relay sessionsYour local agent sessions for this repo
relay share [--dry-run]Pick a session, choose what to include and who sees it
relay share --no-promptsLeave your typed prompts out (relay config prompts hide to always do that)
relay share --diffAttach your uncommitted changes; teammates git apply them after relay pull
relay share --for <name>A handoff for a teammate (also --pr <url>; the branch's PR is found automatically)
relay list, relay search "<q>"Shared sessions. --for-me, --file <path>, or file: / branch: in the query
relay show <id>, relay pull <id>Read a session, or write .relay/handoff-<id>.md for your agent
relay edit <id>Change your share: title, summary, next steps, who it's for, PR
relay pr-comment <id>Post the session on its pull request
relay setup --auto-share onSave each Claude Code, Gemini CLI and Copilot CLI session as a private draft when it ends; relay publish <id> shares it
relay live start, relay live statusWork live with teammates: who's on what and which files
relay live send <name|everyone> "<text>"Message a teammate's live session; it reaches their agent between steps (also reply, inbox, watch, auto on|off, stop)
relay setup --live onHooks so live messages and file overlap warnings arrive in Claude Code and Gemini CLI by themselves
relay templateThe handoff template for this repo
relay export <id>, relay export --allDownload a session (Markdown/JSON) or many (NDJSON)
relay setup --tools geminiConnect one agent you installed later
relay digest, relay statsWhat the team did lately; team stats
relay comment <id> "<text>"Leave a note on a session (the next agent reads it)
relay delete <id>Delete your share
relay members, relay invite --linkYour team; invite links (admins)
relay setupConnect every agent you have installed
relay mcpThe MCP server your agents start

Full reference: CLI docs.

Privacy

Nothing is uploaded unless you share it. API keys, tokens, passwords and private keys are removed on your machine before upload, and relay share --dry-run shows exactly what would be sent. See security & privacy.

License

AGPL-3.0-only

來源:packages/cli/README.md,提交 e83599c

工具

15

list_sessions

List shared sessions

List sessions teammates have shared. Defaults to the current repo; pass all_repos to see everything. for_me lists handoffs assigned to you (from any repo).

輸入參數filetoollimitauthorbranchfor_meall_repos

search_sessions

Search shared sessions

Full-text search over shared sessions (titles, summaries, messages). The query can include "file:<path>" and "branch:<name>" filters.

輸入參數query必填authorthis_repo_only

get_session

Load a shared session

Load a shared session as a handoff: summary, decisions, next steps, files and conversation. mode "tail" (default) = summary + recent messages; "summary" = summary only; "full" = full transcript, paged with offset.

輸入參數id必填modetailoffset

share_current_session

Share this session

Share the session you are in right now with the team. Write the summary yourself from the conversation: it is what teammates read first. Never include secrets.

輸入參數fordonegoal必填nexttitlepeoplepr_urlincludesectionscontinuesdecisionshide_prompts另有 3 個

get_session_diff

Get a session's code changes

The uncommitted changes a teammate attached to a shared session, as a unified diff. Use it to see exact code state; to apply it, write it to a file and run `git apply`.

輸入參數id必填max_chars

share_template

Get the repo's handoff template

The handoff template for the current repo: extra sections (some required) and instructions to follow when sharing. Call it before share_current_session.

無需輸入參數。

team_activity

Team activity

What the team did recently: new shares by repo, handoffs for you, who picked up what, and new comments.

輸入參數days

comment_on_session

Comment on a session

Leave a short note on a shared session for the team: a question, a finding, or that you picked it up. Never include secrets.

輸入參數id必填body必填

update_session

Edit a shared session

Change a share you made (or any share, if you're an admin): title, summary fields, who it's for, the PR link or visibility. Summary lists you pass replace the old ones; use add_next to append next steps.

輸入參數id必填fordonegoalnexttitlepeoplepr_urlpublishadd_nextsectionsdecisions另有 1 個

start_live

Go live

Start working live in this repo: teammates see what you're working on and which files you touch, and their messages reach you between steps. Lists who else is live here.

輸入參數titleautonomy

live_status

Who's working live

Who is working live right now: repo, branch, what they're doing, files they touched recently, and whether this session is live.

無需輸入參數。

send_live_message

Message a teammate's live session

Send a short message to a teammate who is working live: it reaches their agent between steps. Use it to tell them about a change that affects them, ask a question, or answer theirs. Never include secrets.

輸入參數tokindmessage必填reply_towait_seconds

check_live_inbox

Check live messages

Take new messages from teammates sent to this live session (they are marked as read).

無需輸入參數。

update_live

Update your live session

Change what teammates see about this live session (title, current status), or whether this agent may act on their messages without asking.

輸入參數titlestatusautonomy

stop_live

Stop working live

End this session's live session: teammates stop seeing it and messages stop arriving.

無需輸入參數。

版本歷史

3
  1. v0.7.0最新Oct 25, 2026
  2. v0.6.0Oct 25, 2026
  3. v0.5.1Oct 25, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分