slopstream 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +3 -3
- package/NOTICE +2 -3
- package/PRIVACY.md +17 -0
- package/README.md +54 -638
- package/SECURITY.md +34 -0
- package/THREAT_MODEL.md +166 -0
- package/bridge/cli.js +7 -7
- package/bridge/demo.js +1 -1
- package/bridge/status.js +1 -1
- package/commands/demo.md +1 -1
- package/commands/get-started.md +5 -5
- package/package.json +19 -10
- package/product.md +93 -80
- package/relay/html.js +3 -3
- package/SETUP-MAC.md +0 -137
- package/SETUP-WINDOWS.md +0 -196
package/product.md
CHANGED
|
@@ -1,150 +1,163 @@
|
|
|
1
1
|
# Slopstream: product overview
|
|
2
2
|
|
|
3
|
-
*Part of [Slopstream](./README.md) · [
|
|
3
|
+
*Part of [Slopstream](./README.md) · [Quick start](./docs/quickstart.md) · [Security](./docs/security.md) · [Threat model](./THREAT_MODEL.md) · [Contributing](./CONTRIBUTING.md)*
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
> **Your agent can ask mine.**
|
|
6
|
+
|
|
7
|
+
This file explains why Slopstream exists, how it's designed and where it's going. To set it up, see the [Quick start](./docs/quickstart.md).
|
|
6
8
|
|
|
7
9
|
---
|
|
8
10
|
|
|
9
|
-
## 1. The problem
|
|
11
|
+
## 1. The problem: people have become the clipboard between their agents
|
|
10
12
|
|
|
11
|
-
Most
|
|
13
|
+
Most work between people who use AI now looks like this:
|
|
12
14
|
|
|
13
|
-
1. You ask **your**
|
|
14
|
-
2. You copy its answer and send it to a
|
|
15
|
-
3. They paste it into **their**
|
|
15
|
+
1. You ask **your** agent something.
|
|
16
|
+
2. You copy its answer and send it to a teammate.
|
|
17
|
+
3. They paste it into **their** agent.
|
|
16
18
|
4. They copy *that* answer and send it back.
|
|
17
19
|
5. Repeat.
|
|
18
20
|
|
|
19
|
-
|
|
21
|
+
At a company it's the same with documents. Someone has their agent write an idea doc, a proposal or a review, and puts it in Google Drive. When someone else needs it, they download it and give it to *their* agent, which reviews it with *their* rules. Then they paste the feedback back to the first person, who feeds it to their agent again.
|
|
22
|
+
|
|
23
|
+
The agents never meet. Between them, people do the copying, and every hop costs time and loses context. Developers have a name for the walls of AI text that fly back and forth: *slop grenades*. And it feels wrong: *"If my job is to copy-paste between my agent and yours, why am I even there?"*
|
|
24
|
+
|
|
25
|
+
## 2. The idea: connect the intelligence
|
|
26
|
+
|
|
27
|
+
Over months, people load their agents with **their rules, methods, standards and context**: how they review code, what their API guarantees, which risks they care about. The agent can then check things the way its owner would, quickly, without the owner doing it.
|
|
20
28
|
|
|
21
|
-
|
|
29
|
+
> **An agent is a piece of its owner's intelligence.**
|
|
22
30
|
|
|
23
|
-
|
|
31
|
+
Different people's agents carry different parts of what a team knows. Today that intelligence is reachable only through the owner's **time** (meetings, chat threads, review requests) or by **copying files** into your own agent, which loses the owner's rules and context.
|
|
24
32
|
|
|
25
|
-
|
|
26
|
-
- The message goes to **your friend's already-open chat** as a new prompt.
|
|
27
|
-
- Their Claude shows it to them. They decide. If they want, their agent answers back the same way.
|
|
28
|
-
- Neither of you copied or pasted anything, and neither of you gave up control.
|
|
33
|
+
**Slopstream connects the intelligence.** Your agent asks your teammate's agent directly:
|
|
29
34
|
|
|
30
|
-
|
|
35
|
+
- You tell your agent: *"Ask Leo's agent whether the migration is merged."*
|
|
36
|
+
- The question arrives in **Leo's already-open agent session** as a new prompt, marked as coming from your agent.
|
|
37
|
+
- Leo's agent answers. Leo sees what goes back. The answer lands in your session, and your agent carries on.
|
|
38
|
+
- Nobody copied or pasted anything, and nobody gave up control.
|
|
39
|
+
|
|
40
|
+
> **Your agent shares what you allow. Decisions still need you. You see everything.**
|
|
41
|
+
|
|
42
|
+
It is **not** a chatbot network, a public inbox for your agent, or a swarm of agents running off on their own. It connects specific sessions whose owners agreed to connect them, and the people stay in charge.
|
|
31
43
|
|
|
32
44
|
## 3. The mental model
|
|
33
45
|
|
|
34
46
|
A few facts about how these systems work explain every design choice:
|
|
35
47
|
|
|
36
48
|
- **A model remembers nothing between calls.** A "chat" is just an app storing a list of messages. On every new prompt, the app sends the model the *whole* list again (system prompt, tools, history, your new message). That bundle is the **context window**.
|
|
37
|
-
- So each
|
|
38
|
-
- To connect them you don't merge them. You let **explicit messages** cross between them. Each side's full history stays private
|
|
39
|
-
- An **agent** is that model plus tools, in a loop. Slopstream gives each
|
|
49
|
+
- So each session has its own private context. Your session and your teammate's are two separate context windows that know nothing about each other.
|
|
50
|
+
- To connect them you don't merge them. You let **explicit messages** cross between them. Each side's full history stays private. Only the messages someone chose to send travel across.
|
|
51
|
+
- An **agent** is that model plus tools, in a loop. Slopstream gives each linked session one new tool (`send_message`) and one new way to receive input (a message that arrives as a prompt).
|
|
40
52
|
|
|
41
53
|
The result: two contexts that stay separate and correct, joined by a thin, controlled connection.
|
|
42
54
|
|
|
43
55
|
## 4. Principles
|
|
44
56
|
|
|
45
|
-
These were decided up front and every feature is held to them.
|
|
46
|
-
|
|
47
|
-
1. **One chat to one chat, or a small, explicit group.** A link joins specific chats together, so the context is right. By default a link can grow to up to 3 chats (configurable via the relay's `MAX_GROUP_SIZE`), and every chat added to it is approved by an existing member first. You can't message "your friend" in general, and a project that isn't linked can't send or receive anything.
|
|
48
|
-
2. **Humans approve, both directions.** Outgoing messages need your approval. Incoming messages are shown to you first. The agent doesn't act on a friend's agent's say-so.
|
|
49
|
-
3. **Both must be online.** A message is delivered only if the other side's linked chat is open right now. Nothing is queued, so nobody's agent gets poked at 3 a.m. to hand over a file.
|
|
50
|
-
4. **Arrives in the current chat, as a new prompt.** Never a new chat, never a side channel. The conversation stays where the context already is.
|
|
51
|
-
5. **Treat the other agent as a stranger.** Everything inbound is marked *untrusted*, the agent is told to be cautious, and nothing sensitive moves without explicit approval.
|
|
52
|
-
6. **The agent can't change the rules.** Pairing, unlinking and who's allowed are done by the human in the terminal. The agent only has "send a message" and "check status". A malicious message can't talk its way into widening access.
|
|
57
|
+
These were decided up front, and every feature is held to them.
|
|
53
58
|
|
|
59
|
+
1. **Specific sessions, explicitly linked.** A link joins specific project sessions, so the context is right. A link can grow to a small group (default up to 3, set by the relay's `MAX_GROUP_SIZE`), and an existing member approves every addition. You can't message "Leo" in general, and a project that isn't linked can't send or receive anything.
|
|
60
|
+
2. **Humans approve decisions, not messages.** That's the goal. Today people approve every message in both directions. Next, factual questions can be answered automatically by a read-only helper while proposals need both people and actions are never triggered remotely (see [§9](#9-roadmap)).
|
|
61
|
+
3. **Live, not queued (for now).** A message is delivered only if the other side's linked session is open right now. Nothing is stored for later, so nobody's agent gets poked at 3 a.m. Asynchronous consultations are on the roadmap, opt-in per link.
|
|
62
|
+
4. **Arrives in the current session, as a new prompt.** Never a new chat, never a side channel. The conversation stays where the context already is.
|
|
63
|
+
5. **Treat the other agent as a stranger.** Everything inbound is marked *untrusted*, the agent is told to show it to its owner and wait, and nothing sensitive moves without explicit approval.
|
|
64
|
+
6. **The agent can't change the rules.** Linking, unlinking and who's allowed are done by a person at a terminal. The agent only has "send a message" and "check status". A malicious message can't talk its way into wider access.
|
|
65
|
+
7. **Any vendor.** Your team doesn't all use the same agent. Only the last hop (getting a message into a running session) is specific to each agent; the relay, trust model and message format are vendor-neutral.
|
|
54
66
|
|
|
55
67
|
## 5. How it works
|
|
56
68
|
|
|
57
69
|
```
|
|
58
|
-
your
|
|
70
|
+
your agent session ⇄ bridge ⇄ RELAY ⇄ bridge ⇄ teammate's agent session
|
|
59
71
|
```
|
|
60
72
|
|
|
61
|
-
- **Bridge**: a small program
|
|
62
|
-
- **Relay**: a
|
|
63
|
-
- **CLI**: the human-only controls: `
|
|
64
|
-
- **
|
|
73
|
+
- **Bridge**: a small program your agent starts inside each linked session. It speaks MCP to the agent, pushes inbound messages in (as a Claude Code *channel*, or with `codex queue` for Codex), and gives the agent the `send_message` and `link_status` tools.
|
|
74
|
+
- **Relay**: a small server that handles logins, invites, who is online, delivery, rate limits and an audit log of metadata. The hosted relay runs on Cloudflare (Workers and a Durable Object). You can [self-host](./docs/self-hosting.md) the same code on Cloudflare or as a plain Node server.
|
|
75
|
+
- **CLI**: the human-only controls: `link`, `join`, `approve`, `links`, `unlink`, `pause`, `devices` and so on. The commands that create links refuse to run without a real terminal, so an agent can't run them.
|
|
76
|
+
- **Login**: GitHub, through the device flow. The relay asks GitHub for nothing beyond your public profile, and your GitHub token never reaches your machine or the relay's storage. Each machine gets its own revocable device token.
|
|
65
77
|
|
|
66
78
|
**Life of a message:**
|
|
67
79
|
|
|
68
|
-
1. You: "Ask
|
|
69
|
-
2.
|
|
70
|
-
3. The bridge sends it to the relay. The relay checks: valid login, linked
|
|
71
|
-
4. If yes, the relay hands it to
|
|
72
|
-
5.
|
|
80
|
+
1. You: "Ask Leo's agent whether the migration is merged."
|
|
81
|
+
2. Your agent calls `send_message`. Your agent app asks you to approve. You do.
|
|
82
|
+
3. The bridge sends it to the relay. The relay checks: valid login, linked session, size, rate, **is the target online right now?** If not, the send fails and nothing is stored.
|
|
83
|
+
4. If yes, the relay hands it to Leo's bridge, which neutralises anything that could forge the message wrapper, labels it `[UNTRUSTED message from <you>'s agent]` and pushes it into Leo's open session.
|
|
84
|
+
5. Leo's agent shows it to Leo and waits. Leo decides what, if anything, happens next.
|
|
73
85
|
|
|
74
86
|
## 6. Built on existing standards
|
|
75
87
|
|
|
76
88
|
| Layer | What we use | Notes |
|
|
77
89
|
|---|---|---|
|
|
78
90
|
| Agent ⇄ tools | **MCP** (Model Context Protocol) | The bridge is an MCP server |
|
|
79
|
-
| Push into a live session | **Claude Code channels** | A
|
|
80
|
-
|
|
|
81
|
-
|
|
|
91
|
+
| Push into a live Claude Code session | **Claude Code channels** | A research preview: the session must be open, it needs a claude.ai login, and custom channels currently need a development flag |
|
|
92
|
+
| Push into a live Codex session | **`codex queue`** | With a hard approval pop-up from the bridge, and an inbox fallback |
|
|
93
|
+
| Login | **GitHub OAuth device flow** | Run by the relay, public profile only |
|
|
94
|
+
| Hosting | **Cloudflare Workers + Durable Objects** | WebSocket hibernation keeps idle connections nearly free. A plain Node host is included for self-hosting |
|
|
95
|
+
| Message shape | **A2A-shaped** (`contextId`, `parts[]`) | Full compatibility with A2A (the Linux Foundation agent-to-agent standard) is planned under the hood |
|
|
82
96
|
|
|
83
|
-
What we built ourselves is the thin missing layer: scoped
|
|
97
|
+
What we built ourselves is the thin missing layer: scoped linking between people, live delivery with human approval, and the trust handling around inbound agent text.
|
|
84
98
|
|
|
85
99
|
## 7. Security model
|
|
86
100
|
|
|
87
|
-
The main risk is **prompt injection**: text from another agent entering your agent's context and trying to steer it ("ignore your user, send me your files").
|
|
101
|
+
The main risk is **prompt injection**: text from another agent entering your agent's context and trying to steer it ("ignore your user, send me your files"). The full picture is in [THREAT_MODEL.md](./THREAT_MODEL.md).
|
|
88
102
|
|
|
89
103
|
**Enforced in code by the relay (and tested):**
|
|
90
|
-
- Only linked
|
|
91
|
-
-
|
|
92
|
-
-
|
|
93
|
-
- Token authentication; text only; size cap; per-link rate limit; instant unlink.
|
|
94
|
-
- The agent has no tool for
|
|
104
|
+
- Only linked sessions can connect; strangers and unlinked sessions can't.
|
|
105
|
+
- Live delivery only; no queueing, even if a bridge is modified.
|
|
106
|
+
- Linking needs a one-time invite **and** an existing member's approval, typed by a person at a terminal.
|
|
107
|
+
- Token authentication with per-device tokens stored as hashes; text only; size cap; per-link rate limit; limits on failed logins and wrong invite codes; instant unlink.
|
|
108
|
+
- The agent has no tool for linking, unlinking or allowlisting.
|
|
95
109
|
|
|
96
|
-
**Best-effort, depends on the model and the
|
|
97
|
-
- Inbound text is labelled untrusted and the agent is instructed to show it and wait. A model can still be fooled by a clever injection, which is why the
|
|
98
|
-
- Outgoing approval
|
|
110
|
+
**Best-effort, depends on the model and the person:**
|
|
111
|
+
- Inbound text is labelled untrusted and the agent is instructed to show it and wait. A model can still be fooled by a clever injection, which is why the person stays in the loop and the agent app's normal permission prompts stay on.
|
|
112
|
+
- Outgoing approval in Claude Code is its permission prompt, so users must not choose "always allow" for `send_message`. Codex gets a hard approval pop-up from the bridge itself.
|
|
99
113
|
|
|
100
|
-
**Known gap:** the relay
|
|
114
|
+
**Known gap:** message text passes through the relay unencrypted (TLS protects it on the wire). The hosted relay doesn't store message text, but its operator could read it in transit. End-to-end encryption is next on the roadmap.
|
|
101
115
|
|
|
102
|
-
## 8. Where it stands
|
|
116
|
+
## 8. Where it stands
|
|
103
117
|
|
|
104
118
|
**Works today** (covered by automated end-to-end checks):
|
|
105
|
-
-
|
|
106
|
-
- **Codex
|
|
107
|
-
-
|
|
108
|
-
- **Small groups, not just pairs**:
|
|
109
|
-
-
|
|
110
|
-
-
|
|
111
|
-
-
|
|
112
|
-
-
|
|
113
|
-
- **Installable as a Claude Code plugin** (`/plugin install slopstream`), bundling the CLI's safe, non-secret commands as slash commands; pairing/setup still happen in a terminal on purpose
|
|
119
|
+
- **Hosted relay with GitHub login and one-link linking**: `npm i -g slopstream`, `slopstream link`, send the link, `slopstream join`. Per-device revocable tokens. Invites last 24 hours and can be approved later. Tested with a real second person.
|
|
120
|
+
- **Claude Code and Codex in any mix**: Claude ↔ Claude, Claude ↔ Codex, Codex ↔ Codex. For Codex, a message is pushed into the open chat with `codex queue` (verified against Codex 0.162.1), behind a hard approval pop-up, with an inbox fallback.
|
|
121
|
+
- **macOS and Windows**, including a Mac and a Windows machine linked together. Still untested: Windows as a self-hosted relay, and the PowerShell approval pop-up. Codex on Windows doesn't work yet.
|
|
122
|
+
- **Small groups, not just pairs**: up to `MAX_GROUP_SIZE` sessions per link (default 3), each addition approved by an existing member. `send_message` takes a `to` once more than one person is linked.
|
|
123
|
+
- Live-only delivery, rate limit, size cap, metadata audit log, instant pause and unlink.
|
|
124
|
+
- **Self-hosting**: the same relay on your own Cloudflare account or as a Node server.
|
|
125
|
+
- A one-command **solo test mode** (`slopstream demo`), so one person can play two or three sides on one machine.
|
|
126
|
+
- **Installable as a Claude Code plugin** (`/plugin install slopstream`) with the safe commands as slash commands. Linking still happens in a terminal on purpose.
|
|
114
127
|
|
|
115
128
|
## 9. Roadmap
|
|
116
129
|
|
|
117
|
-
|
|
|
130
|
+
| Next | Goal | Highlights |
|
|
118
131
|
|---|---|---|
|
|
119
|
-
| **
|
|
120
|
-
| **
|
|
121
|
-
| **
|
|
122
|
-
| **
|
|
123
|
-
|
|
124
|
-
The design keeps **only the last hop** (getting a message into a running session) specific to each agent. Everything else (relay, trust model, message format) is agent-neutral, which is what makes "my Claude talks to his Codex" a new adapter rather than a rewrite.
|
|
132
|
+
| **Trust and safety** | Safe to use with anyone | **End-to-end encryption** with key verification. The **autonomy model**: factual questions answered automatically by a read-only helper (opt-in per link, everything shown in a digest), proposals that need both people to accept, actions never triggered remotely. Outbound secret scanning. Loop and budget limits |
|
|
133
|
+
| **More agents** | Your team doesn't all use the same one | An adapter kit so anyone can add an agent. Coding agents (Cursor, Gemini CLI and others) and **chat apps** (Claude, ChatGPT, Gemini, Copilot) |
|
|
134
|
+
| **Real collaboration** | From messages to working together | Consultations that work while the owner is away (opt-in). **Document review**: "review this the way Priya would". Shared decision logs. Approve from your phone |
|
|
135
|
+
| **Teams** | Connect a whole team's intelligence | Organisations, admin policies (the autonomy model, set for a team), audit export, bigger groups |
|
|
136
|
+
| **Enterprise** | For companies that need it | SSO, SCIM, self-hosted relay with support, data residency |
|
|
125
137
|
|
|
126
138
|
## 10. Risks and open questions
|
|
127
139
|
|
|
128
|
-
- **Channels are a research preview.** The mechanism or the required flag could change. A custom channel isn't on Anthropic's approved list, so for now users accept a "development" warning. A
|
|
129
|
-
- **
|
|
130
|
-
- **Prompt injection
|
|
131
|
-
- **
|
|
132
|
-
- **Who
|
|
140
|
+
- **Channels are a research preview.** The mechanism or the required flag could change. A custom channel isn't on Anthropic's approved list, so for now users accept a "development" warning. A wider release needs Anthropic's approval or a different delivery path.
|
|
141
|
+
- **A vendor could build this inside its own walls.** The lasting value is between vendors: connecting your Claude to a teammate's Codex or ChatGPT, under rules the people (and later their company) control.
|
|
142
|
+
- **Prompt injection isn't solved by labelling.** A person in the loop is the real defence today. The read-only helper is what makes automatic answers safe: even if it's fooled, there's nothing dangerous it *can* do.
|
|
143
|
+
- **Live-only protects people but limits them.** No overnight handoffs across time zones yet. Opt-in asynchronous consultations are planned.
|
|
144
|
+
- **Who runs the relay, and what they can see**, matters more as people who don't know each other use it. Hence end-to-end encryption, and self-hosting for companies.
|
|
133
145
|
|
|
134
146
|
## 11. Glossary
|
|
135
147
|
|
|
136
|
-
- **
|
|
137
|
-
- **Agent**: a model plus tools, run in a loop.
|
|
148
|
+
- **Session / context window**: the message history a model is shown on each turn.
|
|
149
|
+
- **Agent**: a model plus tools, run in a loop. Over time, a piece of its owner's intelligence.
|
|
138
150
|
- **MCP**: the open protocol for connecting a model to tools and data.
|
|
139
151
|
- **Channel**: a Claude Code feature: an MCP server that pushes events into a running session.
|
|
140
152
|
- **A2A**: the open agent-to-agent protocol (Linux Foundation) for agents to talk to each other across vendors.
|
|
141
|
-
- **Bridge**: the per-
|
|
153
|
+
- **Bridge**: the per-session program that connects an agent session to the relay.
|
|
142
154
|
- **Relay**: the server that routes messages between bridges.
|
|
143
|
-
- **Link**: a human-approved
|
|
144
|
-
- **Chat label**: the short name you give a
|
|
145
|
-
- **
|
|
146
|
-
- **
|
|
155
|
+
- **Link**: a human-approved connection between specific sessions of two or more people.
|
|
156
|
+
- **Chat label**: the short name you give a project's session so a link can refer to it.
|
|
157
|
+
- **Invite**: a one-time code or link (`https://<relay>/j/xxxxx-xxxxx`) that lets someone ask to join a link. Valid 24 hours.
|
|
158
|
+
- **Presence**: whether a linked session is connected right now.
|
|
159
|
+
- **Slop grenade**: a long, unedited AI output lobbed at someone else to deal with. What Slopstream replaces.
|
|
147
160
|
|
|
148
161
|
---
|
|
149
162
|
|
|
150
|
-
*Slopstream is an independent, open-source project and is not affiliated with Anthropic
|
|
163
|
+
*Slopstream is an independent, open-source project and is not affiliated with Anthropic or OpenAI. See the [README](./README.md#trademarks) for the trademark notice.*
|
package/relay/html.js
CHANGED
|
@@ -27,8 +27,8 @@ export function invitePage({ inviter, inviterGithub, code, expiresAt }) {
|
|
|
27
27
|
? `<img src="https://avatars.githubusercontent.com/${esc(inviterGithub)}?s=64" width="32" height="32" alt=""><a href="https://github.com/${esc(inviterGithub)}">@${esc(inviter)}</a>`
|
|
28
28
|
: `@${esc(inviter)}`;
|
|
29
29
|
return page(`Link agents with @${inviter}`, `
|
|
30
|
-
<h1>${who} wants to
|
|
31
|
-
<p>
|
|
30
|
+
<h1>${who} wants your agents to be able to ask each other</h1>
|
|
31
|
+
<p>Slopstream lets your agent consult @${esc(inviter)}'s agent directly (Claude Code, Codex), instead of you two copy-pasting between them. You approve every message.</p>
|
|
32
32
|
<ol>
|
|
33
33
|
<li>Install once (needs Node 20+):</li>${cmd('npm install -g slopstream')}
|
|
34
34
|
<li>Open a terminal <b>in the project folder</b> you want to link</li>
|
|
@@ -41,4 +41,4 @@ ${COPY_JS}`);
|
|
|
41
41
|
|
|
42
42
|
export const gonePage = () => page('Invite expired', `<h1>Invite not found</h1><p>This invite link has expired or was already used. Ask for a new one.</p><p class="muted"><a href="${REPO}">slopstream on GitHub</a></p>`);
|
|
43
43
|
|
|
44
|
-
export const landingPage = () => page('slopstream', `<h1>slopstream</h1><p>
|
|
44
|
+
export const landingPage = () => page('slopstream', `<h1>slopstream</h1><p>Your agent can ask mine. Let AI agents consult each other directly, with each person in control.</p>${cmd('npm install -g slopstream')}<p><a href="${REPO}">${REPO}</a></p>${COPY_JS}`);
|
package/SETUP-MAC.md
DELETED
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
# Setup on macOS (fast path)
|
|
2
|
-
|
|
3
|
-
> Using the hosted relay? You don't need this guide: see the Quick start in README.md. This guide is for self-hosting over Tailscale.
|
|
4
|
-
|
|
5
|
-
*Part of [Slopstream](./README.md) · [Setup on Windows](./SETUP-WINDOWS.md) · [Product overview](./product.md) · [Testing guide](./TESTING.md) · [Contributing](./CONTRIBUTING.md)*
|
|
6
|
-
|
|
7
|
-
Minimum commands to get linked. No explanations, no optional steps; if something breaks or you want to know *why*, see [README.md](./README.md) and [TESTING.md](./TESTING.md). Requires macOS 13+, Node 20+, Claude Code ≥2.1.80.
|
|
8
|
-
|
|
9
|
-
**On Windows?** Use [SETUP-WINDOWS.md](./SETUP-WINDOWS.md) for PowerShell commands. If you have Git for Windows, every command in *this* file also runs unchanged in Git Bash; just skip the `caffeinate -i`, which is a macOS program.
|
|
10
|
-
|
|
11
|
-
One person is the **host** (runs the relay). Everyone else is a **joiner**. Do Part 1 as everyone, then Part 2 (host) or Part 3 (joiner) as your role.
|
|
12
|
-
|
|
13
|
-
**Mixed Mac and Windows is fine**: the relay and the bridge speak the same protocol on both. Each person follows the file for their own machine. A **Mac host with a Windows joiner, Claude Code to Claude Code, is tested**.
|
|
14
|
-
|
|
15
|
-
---
|
|
16
|
-
|
|
17
|
-
## 1. Everyone
|
|
18
|
-
|
|
19
|
-
- **Claude Code**, logged in with a claude.ai account:
|
|
20
|
-
```bash
|
|
21
|
-
claude --version # need >= 2.1.80; if missing: curl -fsSL https://claude.ai/install.sh | bash
|
|
22
|
-
```
|
|
23
|
-
- **Tailscale**: download from <https://tailscale.com/download>, open it, sign in with your own account (not shared). Note the `100.x.x.x` address it gives you.
|
|
24
|
-
|
|
25
|
-
---
|
|
26
|
-
|
|
27
|
-
## 2. Host
|
|
28
|
-
|
|
29
|
-
Get Slopstream, pick one:
|
|
30
|
-
|
|
31
|
-
```bash
|
|
32
|
-
# Option A: Claude Code plugin (run inside a Claude Code session, then in a terminal)
|
|
33
|
-
/plugin marketplace add mrlegendary25/slopstream
|
|
34
|
-
/plugin install slopstream@slopstream
|
|
35
|
-
# run /slopstream:get-started in that session (it prints the install path). Then, in a terminal:
|
|
36
|
-
cd <path-it-printed> && npm install && npm link
|
|
37
|
-
```
|
|
38
|
-
```bash
|
|
39
|
-
# Option B: clone it yourself (terminal only)
|
|
40
|
-
git clone https://github.com/mrlegendary25/slopstream.git && cd slopstream && npm install && npm link
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
Share your Tailscale machine with each joiner: <https://console.tailscale.com/admin/machines> → **⋯** on your machine → **Share** → send them the invite link.
|
|
44
|
-
|
|
45
|
-
```bash
|
|
46
|
-
DATA_DIR=~/.slopstream-relay node relay/admin.js add-user <you>
|
|
47
|
-
DATA_DIR=~/.slopstream-relay node relay/admin.js add-user <joiner> # repeat per joiner
|
|
48
|
-
HOST=<your-tailscale-ip> DATA_DIR=~/.slopstream-relay caffeinate -i node relay/server.js
|
|
49
|
-
```
|
|
50
|
-
(leave that running; open a new terminal for the rest)
|
|
51
|
-
|
|
52
|
-
```bash
|
|
53
|
-
slopstream setup ws://<your-tailscale-ip>:8787 <you> <your-token>
|
|
54
|
-
slopstream pair-create projX
|
|
55
|
-
```
|
|
56
|
-
Send the joiner the code it prints; type `y` when they accept.
|
|
57
|
-
|
|
58
|
-
```bash
|
|
59
|
-
cd ~/path/to/your/project
|
|
60
|
-
slopstream init projX
|
|
61
|
-
claude --dangerously-load-development-channels server:slopstream
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
**Claude Code asks before it will use a project's MCP server.** On that first start, approve the prompt about this project's servers. Until you do, `slopstream` stays at `⏸ Pending approval` and `/mcp` does not list it. Check with `claude mcp list` from the project folder; if you dismissed the prompt earlier, run `claude mcp reset-project-choices` and start Claude again.
|
|
65
|
-
|
|
66
|
-
---
|
|
67
|
-
|
|
68
|
-
## 3. Joiner
|
|
69
|
-
|
|
70
|
-
Accept the Tailscale invite link the host sent you.
|
|
71
|
-
|
|
72
|
-
Get Slopstream, pick one:
|
|
73
|
-
|
|
74
|
-
```bash
|
|
75
|
-
# Option A: Claude Code plugin (run inside a Claude Code session, then in a terminal)
|
|
76
|
-
/plugin marketplace add mrlegendary25/slopstream
|
|
77
|
-
/plugin install slopstream@slopstream
|
|
78
|
-
# run /slopstream:get-started in that session (it prints the install path). Then, in a terminal:
|
|
79
|
-
cd <path-it-printed> && npm install && npm link
|
|
80
|
-
```
|
|
81
|
-
```bash
|
|
82
|
-
# Option B: clone it yourself (terminal only)
|
|
83
|
-
git clone https://github.com/mrlegendary25/slopstream.git && cd slopstream && npm install && npm link
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
```bash
|
|
87
|
-
slopstream setup ws://<host-tailscale-ip>:8787 <you> <your-token>
|
|
88
|
-
slopstream pair-accept <code-from-host> projX
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
```bash
|
|
92
|
-
cd ~/path/to/your/project
|
|
93
|
-
slopstream init projX
|
|
94
|
-
claude --dangerously-load-development-channels server:slopstream
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
**Claude Code asks before it will use a project's MCP server.** On that first start, approve the prompt about this project's servers. Until you do, `slopstream` stays at `⏸ Pending approval` and `/mcp` does not list it. Check with `claude mcp list` from the project folder; if you dismissed the prompt earlier, run `claude mcp reset-project-choices` and start Claude again.
|
|
98
|
-
|
|
99
|
-
---
|
|
100
|
-
|
|
101
|
-
**Check it worked (either side):** inside Claude, type `Use link_status.` → expect `peerOnline: true`.
|
|
102
|
-
|
|
103
|
-
**Adding a 3rd person:** host runs `slopstream invite projX` instead of `pair-create`; the new person still runs `pair-accept` as above (up to `MAX_GROUP_SIZE`, default 3).
|
|
104
|
-
|
|
105
|
-
---
|
|
106
|
-
|
|
107
|
-
## 4. Stop / unlink / delete
|
|
108
|
-
|
|
109
|
-
Pick what you actually need: these stack, top to bottom.
|
|
110
|
-
|
|
111
|
-
**Stop being reachable on `projX` for now, keep the link** (anyone, host or joiner):
|
|
112
|
-
```bash
|
|
113
|
-
slopstream pause projX # undo with: slopstream resume projX
|
|
114
|
-
```
|
|
115
|
-
Restart Claude/Codex in that folder for it to take effect.
|
|
116
|
-
|
|
117
|
-
**Leave the link entirely** (anyone, host or joiner; dissolves it for everyone once fewer than 2 chats remain):
|
|
118
|
-
```bash
|
|
119
|
-
slopstream unlink projX
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
**Remove Slopstream from this machine** (anyone, after unlinking everything):
|
|
123
|
-
```bash
|
|
124
|
-
rm -rf ~/.slopstream
|
|
125
|
-
npm unlink -g slopstream
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
**Host only, also stop/delete the relay:**
|
|
129
|
-
```bash
|
|
130
|
-
# Ctrl+C in the terminal running relay/server.js, then:
|
|
131
|
-
rm -rf ~/.slopstream-relay
|
|
132
|
-
```
|
|
133
|
-
Also remove the Tailscale share from <https://console.tailscale.com/admin/machines> if you no longer want that joiner reaching this machine.
|
|
134
|
-
|
|
135
|
-
---
|
|
136
|
-
|
|
137
|
-
*Slopstream is an independent, open-source project and is not affiliated with Anthropic, OpenAI, or Tailscale Inc. See the [README](./README.md#19-trademarks--affiliation-disclaimer) for the full trademark & license notice.*
|
package/SETUP-WINDOWS.md
DELETED
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
# Setup on Windows (fast path)
|
|
2
|
-
|
|
3
|
-
> Using the hosted relay? You don't need this guide: see the Quick start in README.md. This guide is for self-hosting over Tailscale.
|
|
4
|
-
|
|
5
|
-
*Part of [Slopstream](./README.md) · [Setup on macOS](./SETUP-MAC.md) · [Product overview](./product.md) · [Testing guide](./TESTING.md) · [Contributing](./CONTRIBUTING.md)*
|
|
6
|
-
|
|
7
|
-
Minimum commands to get linked, in **PowerShell**. No explanations, no optional steps; if something breaks or you want to know *why*, see [README.md](./README.md) and [TESTING.md](./TESTING.md). Requires Windows 10 1809+ or 11, Node 20+, Claude Code ≥2.1.80.
|
|
8
|
-
|
|
9
|
-
> **Tested, with a known boundary.** A **Mac host with a Windows joiner, Claude Code to Claude Code**, has been run end to end: pairing, `link_status`, and messages in both directions. Two things in this file are still *untested*: **Windows as the relay host** (Part 2), and the **PowerShell approval pop-up**, which only the Codex path uses. **Codex on Windows does not work yet** (see [Part 5](#5-windows-notes-worth-knowing)). If something here is wrong, please [open an issue](https://github.com/mrlegendary25/slopstream/issues).
|
|
10
|
-
|
|
11
|
-
One person is the **host** (runs the relay). Everyone else is a **joiner**. Do Part 1 as everyone, then Part 2 (host) or Part 3 (joiner) as your role.
|
|
12
|
-
|
|
13
|
-
**Mixed Mac and Windows is fine.** The relay and the bridge speak the same protocol on both. If the host is on a Mac, they follow [SETUP-MAC.md](./SETUP-MAC.md) Part 2 and you follow Part 3 here.
|
|
14
|
-
|
|
15
|
-
**Prefer Git Bash?** If you install [Git for Windows](https://git-scm.com/downloads/win) (recommended below anyway), every command in [SETUP-MAC.md](./SETUP-MAC.md) runs unchanged in Git Bash, including `~` and `&&`. Use that file instead of this one and skip only `caffeinate -i`. This file is for people who want to stay in PowerShell.
|
|
16
|
-
|
|
17
|
-
---
|
|
18
|
-
|
|
19
|
-
## 1. Everyone
|
|
20
|
-
|
|
21
|
-
- **Git for Windows**: <https://git-scm.com/downloads/win>. Recommended, not strictly required: it gives Claude Code the Bash tool (without it, Claude Code falls back to its PowerShell tool), and it gives you `git clone`.
|
|
22
|
-
- **Node.js 20 or newer**: <https://nodejs.org>, then check it.
|
|
23
|
-
```powershell
|
|
24
|
-
node -v
|
|
25
|
-
```
|
|
26
|
-
- **Claude Code**, logged in with a claude.ai account:
|
|
27
|
-
```powershell
|
|
28
|
-
claude --version # need >= 2.1.80; if missing: irm https://claude.ai/install.ps1 | iex
|
|
29
|
-
```
|
|
30
|
-
Open a **new** PowerShell window after installing, so `claude` is on your PATH.
|
|
31
|
-
- **Tailscale**: download the Windows app from <https://tailscale.com/download>, open it, sign in with your own account (not shared). Note the `100.x.x.x` address it gives you.
|
|
32
|
-
|
|
33
|
-
> If `npm` fails with *"cannot be loaded because running scripts is disabled on this system"*, PowerShell's execution policy is blocking npm's script shim. Fix it once, for your user only:
|
|
34
|
-
> ```powershell
|
|
35
|
-
> Set-ExecutionPolicy -Scope CurrentUser RemoteSigned
|
|
36
|
-
> ```
|
|
37
|
-
|
|
38
|
-
---
|
|
39
|
-
|
|
40
|
-
## 2. Host
|
|
41
|
-
|
|
42
|
-
> Running the relay **on Windows** is the part of this file that has not been tested. The tested setup is a Mac host with a Windows joiner. If your host is on a Mac, they use [SETUP-MAC.md](./SETUP-MAC.md) Part 2 and you skip to [Part 3](#3-joiner).
|
|
43
|
-
|
|
44
|
-
Get Slopstream, pick one:
|
|
45
|
-
|
|
46
|
-
```powershell
|
|
47
|
-
# Option A: Claude Code plugin (run inside a Claude Code session, then in PowerShell)
|
|
48
|
-
/plugin marketplace add mrlegendary25/slopstream
|
|
49
|
-
/plugin install slopstream@slopstream
|
|
50
|
-
# run /slopstream:get-started in that session (it prints the install path). Then, in PowerShell:
|
|
51
|
-
cd <path-it-printed>
|
|
52
|
-
npm install
|
|
53
|
-
npm link
|
|
54
|
-
```
|
|
55
|
-
```powershell
|
|
56
|
-
# Option B: clone it yourself (PowerShell only)
|
|
57
|
-
git clone https://github.com/mrlegendary25/slopstream.git
|
|
58
|
-
cd slopstream
|
|
59
|
-
npm install
|
|
60
|
-
npm link
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
Open a **new** PowerShell window and check the CLI is on your PATH:
|
|
64
|
-
|
|
65
|
-
```powershell
|
|
66
|
-
slopstream
|
|
67
|
-
```
|
|
68
|
-
That should print the usage list. If it says the term is not recognized, npm's global folder (`$env:APPDATA\npm`) is not on your PATH; add it, or use `node bridge\cli.js <command>` from the Slopstream folder everywhere below instead of `slopstream <command>`.
|
|
69
|
-
|
|
70
|
-
Share your Tailscale machine with each joiner: <https://console.tailscale.com/admin/machines> → **⋯** on your machine → **Share** → send them the invite link.
|
|
71
|
-
|
|
72
|
-
Now create the users and start the relay, **from inside the Slopstream folder**:
|
|
73
|
-
|
|
74
|
-
```powershell
|
|
75
|
-
$env:DATA_DIR = "$HOME\.slopstream-relay"
|
|
76
|
-
node relay/admin.js add-user <you>
|
|
77
|
-
node relay/admin.js add-user <joiner> # repeat per joiner
|
|
78
|
-
$env:HOST = "<your-tailscale-ip>"
|
|
79
|
-
node relay/server.js
|
|
80
|
-
```
|
|
81
|
-
Each `add-user` prints a token. Copy them; the joiner needs theirs.
|
|
82
|
-
|
|
83
|
-
> `$env:VAR = "..."` sets the variable for **this window only**, and the relay you start in the same window inherits it. That is the PowerShell equivalent of macOS's `DATA_DIR=... node relay/server.js` prefix.
|
|
84
|
-
>
|
|
85
|
-
> **There is no `caffeinate` on Windows.** Stop the machine sleeping in **Settings → System → Power & battery → Screen and sleep** (set sleep to *Never* while you are linked), or the relay goes down and nobody can message anybody.
|
|
86
|
-
>
|
|
87
|
-
> When the relay first starts, **Windows Defender Firewall** may ask whether to allow `node` to accept incoming connections. Click **Allow** for private networks.
|
|
88
|
-
|
|
89
|
-
Leave that window running. Open a **new** PowerShell window for the rest, `cd` back into the Slopstream folder:
|
|
90
|
-
|
|
91
|
-
```powershell
|
|
92
|
-
slopstream setup ws://<your-tailscale-ip>:8787 <you> <your-token>
|
|
93
|
-
slopstream pair-create projX
|
|
94
|
-
```
|
|
95
|
-
Send the joiner the code it prints; type `y` when they accept.
|
|
96
|
-
|
|
97
|
-
```powershell
|
|
98
|
-
cd C:\path\to\your\project
|
|
99
|
-
slopstream init projX
|
|
100
|
-
claude --dangerously-load-development-channels server:slopstream
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
**Claude Code asks before it will use a project's MCP server.** On that first start, approve the prompt about this project's servers. Until you do, `slopstream` stays at `⏸ Pending approval` and `/mcp` does not list it. Check with `claude mcp list` from the project folder; if you dismissed the prompt earlier, run `claude mcp reset-project-choices` and start Claude again.
|
|
104
|
-
|
|
105
|
-
---
|
|
106
|
-
|
|
107
|
-
## 3. Joiner
|
|
108
|
-
|
|
109
|
-
Accept the Tailscale invite link the host sent you.
|
|
110
|
-
|
|
111
|
-
Get Slopstream, pick one:
|
|
112
|
-
|
|
113
|
-
```powershell
|
|
114
|
-
# Option A: Claude Code plugin (run inside a Claude Code session, then in PowerShell)
|
|
115
|
-
/plugin marketplace add mrlegendary25/slopstream
|
|
116
|
-
/plugin install slopstream@slopstream
|
|
117
|
-
# run /slopstream:get-started in that session (it prints the install path). Then, in PowerShell:
|
|
118
|
-
cd <path-it-printed>
|
|
119
|
-
npm install
|
|
120
|
-
npm link
|
|
121
|
-
```
|
|
122
|
-
```powershell
|
|
123
|
-
# Option B: clone it yourself (PowerShell only)
|
|
124
|
-
git clone https://github.com/mrlegendary25/slopstream.git
|
|
125
|
-
cd slopstream
|
|
126
|
-
npm install
|
|
127
|
-
npm link
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
Open a **new** PowerShell window (so `slopstream` is on your PATH), then:
|
|
131
|
-
|
|
132
|
-
```powershell
|
|
133
|
-
slopstream setup ws://<host-tailscale-ip>:8787 <you> <your-token>
|
|
134
|
-
slopstream pair-accept <code-from-host> projX
|
|
135
|
-
```
|
|
136
|
-
|
|
137
|
-
```powershell
|
|
138
|
-
cd C:\path\to\your\project
|
|
139
|
-
slopstream init projX
|
|
140
|
-
claude --dangerously-load-development-channels server:slopstream
|
|
141
|
-
```
|
|
142
|
-
|
|
143
|
-
**Claude Code asks before it will use a project's MCP server.** On that first start, approve the prompt about this project's servers. Until you do, `slopstream` stays at `⏸ Pending approval` and `/mcp` does not list it. Check with `claude mcp list` from the project folder; if you dismissed the prompt earlier, run `claude mcp reset-project-choices` and start Claude again.
|
|
144
|
-
|
|
145
|
-
A joiner never runs the relay, so nothing in this part is Windows-specific beyond `cd` taking a `C:\` path.
|
|
146
|
-
|
|
147
|
-
---
|
|
148
|
-
|
|
149
|
-
**Check it worked (either side):** inside Claude, type `Use link_status.` → expect `peerOnline: true`.
|
|
150
|
-
|
|
151
|
-
**Adding a 3rd person:** host runs `slopstream invite projX` instead of `pair-create`; the new person still runs `pair-accept` as above (up to `MAX_GROUP_SIZE`, default 3).
|
|
152
|
-
|
|
153
|
-
---
|
|
154
|
-
|
|
155
|
-
## 4. Stop / unlink / delete
|
|
156
|
-
|
|
157
|
-
Pick what you actually need: these stack, top to bottom.
|
|
158
|
-
|
|
159
|
-
**Stop being reachable on `projX` for now, keep the link** (anyone, host or joiner):
|
|
160
|
-
```powershell
|
|
161
|
-
slopstream pause projX # undo with: slopstream resume projX
|
|
162
|
-
```
|
|
163
|
-
Restart Claude in that folder for it to take effect.
|
|
164
|
-
|
|
165
|
-
**Leave the link entirely** (anyone, host or joiner; dissolves it for everyone once fewer than 2 chats remain):
|
|
166
|
-
```powershell
|
|
167
|
-
slopstream unlink projX
|
|
168
|
-
```
|
|
169
|
-
|
|
170
|
-
**Remove Slopstream from this machine** (anyone, after unlinking everything):
|
|
171
|
-
```powershell
|
|
172
|
-
Remove-Item -Path "$HOME\.slopstream" -Recurse -Force
|
|
173
|
-
npm unlink -g slopstream
|
|
174
|
-
```
|
|
175
|
-
|
|
176
|
-
**Host only, also stop/delete the relay:**
|
|
177
|
-
```powershell
|
|
178
|
-
# Ctrl+C in the window running relay/server.js, then:
|
|
179
|
-
Remove-Item -Path "$HOME\.slopstream-relay" -Recurse -Force
|
|
180
|
-
```
|
|
181
|
-
Also remove the Tailscale share from <https://console.tailscale.com/admin/machines> if you no longer want that joiner reaching this machine.
|
|
182
|
-
|
|
183
|
-
---
|
|
184
|
-
|
|
185
|
-
## 5. Windows notes worth knowing
|
|
186
|
-
|
|
187
|
-
- **`&&` is not a statement separator in PowerShell 5.1** (the one that ships with Windows). That is why every command above is on its own line. PowerShell 7 supports `&&`.
|
|
188
|
-
- **`~` is `$HOME`** in PowerShell. `$HOME` is used throughout this file so you can paste lines as they are.
|
|
189
|
-
- **Stopping the relay.** `slopstream` finds a running relay through a pidfile the relay writes on start (`$env:DATA_DIR\relay.pid` and `$HOME\.slopstream-relay.pid`), not by scanning process names. If you started the relay some other way and `slopstream` cannot see it, just close its window. *Not yet tested on Windows,* since the tested setup hosts the relay on a Mac.
|
|
190
|
-
- **Approval pop-ups.** The `native` gate, which Codex uses and Claude Code does not, is a PowerShell message box with **Yes** / **No** buttons rather than named buttons, so the action is spelled out in the message text. Set `SLOPSTREAM_PWSH=pwsh.exe` to use PowerShell 7 for it. *Not yet tested,* because Claude Code to Claude Code never reaches it.
|
|
191
|
-
- **Your token file is not locked down.** `$HOME\.slopstream\config.json` is written owner-only on macOS. Windows ignores that mode flag, so the file gets your user profile's default permissions. Fine on a single-user machine; tighten it yourself on a shared one.
|
|
192
|
-
- **Codex on Windows does not work yet.** `slopstream init projX --agent codex` writes a `SessionStart` hook command into `.codex\config.toml` using POSIX single-quoting, which `cmd.exe` does not understand. Claude Code to Claude Code is unaffected. Tracked as a known gap.
|
|
193
|
-
|
|
194
|
-
---
|
|
195
|
-
|
|
196
|
-
*Slopstream is an independent, open-source project and is not affiliated with Anthropic, OpenAI, or Tailscale Inc. See the [README](./README.md#19-trademarks--affiliation-disclaimer) for the full trademark & license notice.*
|