Session Relay

v0.8.1
io.github.Ryrahul/session-relay Checked 14 hours ago Published 8 days ago

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

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

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).

ParameterTypeDescription
all_reposbooleanList sessions from every repo, not just the current one
authorstringName, email or "me"
branchstringOnly sessions shared from this git branch
filestringOnly sessions that touched this file (part of the path is fine)
for_mebooleanOnly handoffs assigned to you
limitintegerHow many to return, newest first (default 10)
linkstringOnly sessions linked to this pull request or issue URL (from any repo)
toolstringOnly sessions from this coding agent

search_sessions Search shared sessions

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

ParameterTypeDescription
query *stringWords to look for, e.g. "invoice rounding" or "file:billing.ts retry"
authorstringOnly sessions shared by this person: name, email or "me"
this_repo_onlybooleanLimit to the current repo (default false)

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.

ParameterTypeDescription
id *stringSession id from list_sessions or search_sessions
modestringHow much to load (default "tail")
offsetintegerWith mode "full": message to start from, for paging
tailintegerWith mode "tail": only this many of the most recent messages (default: all that were shared)

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, so make it complete enough to continue from without the conversation. List every pull request and issue the session worked on in links. Never include secrets.

ParameterTypeDescription
goal *stringWhat this session is trying to achieve
continuesstringId of the shared session this work continues. Defaults to the one loaded with get_session in this repo; "none" to unlink.
decisionsarrayKey decisions and why
donearrayWhat was finished in this session
forstringName or email of the teammate this handoff is for
hide_promptsbooleanLeave the user's typed prompts out (a marker takes their place); your replies and tool steps are kept. Pass true when the user asks to share without their messages. Defaults to the user's setting (rel…
ignore_templatebooleanShare even if the repo's template has required sections you left empty
includestringWhat to upload besides your summary: nothing, the recent conversation (the last 150 messages, up to about 40k tokens), or the whole transcript. Default "summary+tail"
include_diffbooleanAttach the uncommitted changes in this repo (redacted), so the next person gets the exact code state
linksarrayEvery pull request and issue this session worked on: created, fixed, reviewed, or the task came from (GitHub, GitLab, Linear, Jira…). Links in the conversation to this repo's owner are added automat…
nextarrayConcrete next steps for whoever continues
open_questionsarrayUnresolved questions the next person should know about
peoplearrayNames or emails who can see it; omit for the whole team
pr_urlstringThe main pull request URL. Defaults to the current branch's open PR (via gh); "none" to leave out
sectionsarrayExtra sections, e.g. the ones share_template asks for
tailintegerWith summary+tail: how many recent messages to keep (default 150)
titlestringShort title; defaults to the first prompt (or the goal, when the user's prompts are left out)

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`.

ParameterTypeDescription
id *stringSession id
max_charsintegerCut the diff at this many characters (default 100000)

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.

ParameterTypeDescription
daysintegerLook back this many days (default 1)

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.

ParameterTypeDescription
body *stringThe note, in plain text or Markdown
id *stringSession id

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, linked pull requests and issues, or visibility. Summary lists you pass replace the old ones; use add_next to append next steps and add_links to link more PRs or issues.

ParameterTypeDescription
id *stringId of the session to change
add_linksarrayPull requests or issues to link, besides the ones already linked
add_nextarrayNext steps to append to the existing ones
decisionsarrayReplaces the decisions
donearrayReplaces what was done
forstringTeammate name or email, or "none"
goalstringNew goal
nextarrayReplaces the next steps
open_questionsarrayReplaces the open questions
peoplearrayMake it visible only to these people; an empty list makes it visible to the whole team
pr_urlstringThe main pull request URL, or "none"
publishbooleanPublish a draft (saved automatically at session end) to the team, or to `people`
remove_linksarrayLinked URLs to remove
sectionsarrayReplaces the extra sections
titlestringNew title

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.

ParameterTypeDescription
autonomybooleanLet this agent act on teammates' messages without asking the user first. Only true if the user explicitly asked for it.
titlestringWhat this session is working on, in a few words

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.

ParameterTypeDescription
message *stringThe message, in plain words
kindstring"question" asks them to answer; "answer" replies to one (with reply_to)
reply_tointegerNumber of the message you're answering
tostringTeammate name or email, "everyone" (all live in this repo), or a live session id. Optional when replying.
wait_secondsintegerFor questions: wait up to this long for the answer and return it (default 0, don't wait)

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.

ParameterTypeDescription
autonomybooleantrue only if the user explicitly asked to let you act on teammates' messages without asking
statusstringWhat you're doing right now, e.g. "running the migration tests"
titlestringWhat this session is working on

stop_live Stop working live

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