Session Relay
v0.8.1Share 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).
| Parameter | Type | Description |
|---|---|---|
all_repos | boolean | List sessions from every repo, not just the current one |
author | string | Name, email or "me" |
branch | string | Only sessions shared from this git branch |
file | string | Only sessions that touched this file (part of the path is fine) |
for_me | boolean | Only handoffs assigned to you |
limit | integer | How many to return, newest first (default 10) |
link | string | Only sessions linked to this pull request or issue URL (from any repo) |
tool | string | Only 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.
| Parameter | Type | Description |
|---|---|---|
query * | string | Words to look for, e.g. "invoice rounding" or "file:billing.ts retry" |
author | string | Only sessions shared by this person: name, email or "me" |
this_repo_only | boolean | Limit 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.
| Parameter | Type | Description |
|---|---|---|
id * | string | Session id from list_sessions or search_sessions |
mode | string | How much to load (default "tail") |
offset | integer | With mode "full": message to start from, for paging |
tail | integer | With mode "tail": only this many of the most recent messages (default: all that were shared) |
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`.
| Parameter | Type | Description |
|---|---|---|
id * | string | Session id |
max_chars | integer | Cut the diff at this many characters (default 100000) |
team_activity Team activity
What the team did recently: new shares by repo, handoffs for you, who picked up what, and new comments.
| Parameter | Type | Description |
|---|---|---|
days | integer | Look 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.
| Parameter | Type | Description |
|---|---|---|
body * | string | The note, in plain text or Markdown |
id * | string | Session 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.
| Parameter | Type | Description |
|---|---|---|
id * | string | Id of the session to change |
add_links | array | Pull requests or issues to link, besides the ones already linked |
add_next | array | Next steps to append to the existing ones |
decisions | array | Replaces the decisions |
done | array | Replaces what was done |
for | string | Teammate name or email, or "none" |
goal | string | New goal |
next | array | Replaces the next steps |
open_questions | array | Replaces the open questions |
people | array | Make it visible only to these people; an empty list makes it visible to the whole team |
pr_url | string | The main pull request URL, or "none" |
publish | boolean | Publish a draft (saved automatically at session end) to the team, or to `people` |
remove_links | array | Linked URLs to remove |
sections | array | Replaces the extra sections |
title | string | New 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.
| Parameter | Type | Description |
|---|---|---|
autonomy | boolean | Let this agent act on teammates' messages without asking the user first. Only true if the user explicitly asked for it. |
title | string | What 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.
| Parameter | Type | Description |
|---|---|---|
message * | string | The message, in plain words |
kind | string | "question" asks them to answer; "answer" replies to one (with reply_to) |
reply_to | integer | Number of the message you're answering |
to | string | Teammate name or email, "everyone" (all live in this repo), or a live session id. Optional when replying. |
wait_seconds | integer | For 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.
| Parameter | Type | Description |
|---|---|---|
autonomy | boolean | true only if the user explicitly asked to let you act on teammates' messages without asking |
status | string | What you're doing right now, e.g. "running the migration tests" |
title | string | What this session is working on |
stop_live Stop working live
End this session's live session: teammates stop seeing it and messages stop arriving.