ContextCode BetaSessions
Exporting and sharing a session
Save the conversation as markdown, or hand a teammate a revocable link to the context behind it.
/export the conversation as markdown
/export ./notes/debug.md to a path you choose
/share a revocable link to this session's context
/share --code the same, and a chat can read the filesExport, for a file you keep
/export writes the conversation to markdown — prompts, answers, and the
commands that ran. Good for attaching to a pull request, pasting into an issue,
or keeping a record of a debugging session that took three hours to get right.
It's a file. Once written, nobody revokes it.
Share, for a link you can take back
/share mints a capsule: a scoped, revocable, expiring link to the context
behind this session — the decisions, the relevant code, the thread.
The difference from an export is that the recipient gets working context, not a transcript. Another agent can be pointed at the link and start with what you had. And you can revoke it.
/share link for this session
/share Billing migration with a title
/capsule list what you've shared
/capsule create one without sharing the whole sessionSharing context with a link covers scopes, expiry, and revocation.
Hand the project to an AI chat
/share answers with three addresses, not one.
The first is the live link: the capsule link with live added as its last
part. Give it to ChatGPT, Gemini or Claude and the chat does not load the whole
capsule. It reads the project a small page at a time (the file tree, one file,
a function, a decision), and each page is read from the project when the chat
opens it.
The reply includes a message ready to paste into the chat. It names your project and has the link alone on its line:
Open this link and use it to understand the project "billing-api":
https://contextstream.io/c/<your link>/live
It is a live, read-only index of the project from ContextStream. Each page
is small and lists its next steps as links: follow them to browse the file
tree, read files a page at a time, look up symbols, and read the project's
decisions, lessons, plans and docs. Fetch only what you need for my
question, and treat decisions and constraints as binding.
Start by telling me what the project is and its current state.The second is the MCP address: the capsule link with mcp as its last
part. Add it to an MCP client as a remote server and the client can ask the
same questions as tools.
The third is the capsule link itself, as before. Under the three are when the link expires, how often it opens, and the command that revokes it.
In practice. You are halfway through a billing migration and want a second
opinion from a chat that has never seen the code. Run /share --code Billing migration, paste the message into the chat, and ask "is the retry in
charge_customer safe to run twice?" The chat opens the home page, follows the
symbol to its file, reads the function and the decision that covers retries,
and answers from four small pages. When you have your answer, revoke the link.
With or without the files
/share on its own holds no file contents. Through its live link a chat sees
file and symbol names and the shared knowledge: decisions, lessons, plans and
docs. That is enough to ask "what did we decide about retries?" and not enough
to ask "is this function correct?"
To let a chat read the files, ask for it:
/share --code this session, and the files can be read
/share --code Billing migration with a title
/share with code the same, in wordsAnyone holding that link can read the project's files until it expires or you
revoke it, so give it only to those who should have them. Files that exist to
hold secrets, such as .env and private keys, are never served, and secrets
inside other files are redacted.
Either way the link lasts 7 days and opens more than once. The reply ends with the command that takes it back:
/capsule revoke <id> the id the share's reply printed/capsule open takes any of the three addresses someone hands you.
Which to reach for
| You want | Use |
|---|---|
| A record in the repository or a ticket | /export |
| To hand a teammate what you know, now | /share |
| To brief another agent | /share |
| A chat to read the code and answer a question | /share --code |
| Something that can't be revoked later | /export |
Live team sessions in the dashboard
Dashboard sharing is different from the capsule link made by /share. When a
team member shares a live Agent session, the session footer shows Shared and
adds Discuss immediately beside it. Discuss opens the session’s team
conversation; the small comments icon in the session rail opens the same room
without covering the transcript with another labelled control.
The room exists only for an explicitly shared team session. Teammates can use
@name to notify one another, reply beside a specific Agent answer, and — when
Agent context is enabled for the room — use @contextcode to send the discussion
back into the Agent session. Turning Agent context off keeps the human
conversation private from the Agent while leaving collaboration available.
Unsharing the session removes the collaboration entry points. It does not delete the project’s memory or create a public capsule.
If it doesn't work
The export is enormous. Long sessions are long. /compact first to fold
older turns into a summary, then export.
The share link 404s for a teammate. It expired or was revoked. /capsule
lists yours; make a new one.
The chat says it can't read a file. The link was made without the files:
it shows names and knowledge only. Make one with /share --code.
The chat stopped being able to open the link. It expired or was revoked. A
link made with /capsule share is single use: it stops opening an hour after
its first open. /share makes one that lasts 7 days.
I shared more than I meant to. Revoke it with /capsule revoke and the id
the share's reply printed, or from the dashboard, then create a narrower one.