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/SECURITY.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Security policy
|
|
2
|
+
|
|
3
|
+
## Reporting a vulnerability
|
|
4
|
+
|
|
5
|
+
Please report privately, **not** in a public issue: use GitHub's **private vulnerability reporting** on this repository (Security tab → "Report a vulnerability"). Include steps to reproduce and the version you tested. We acknowledge reports within **7 days**, keep you updated while we fix it, and credit you in the advisory unless you'd rather stay anonymous.
|
|
6
|
+
|
|
7
|
+
Please give us a reasonable time to ship a fix before disclosing details publicly.
|
|
8
|
+
|
|
9
|
+
## Supported versions
|
|
10
|
+
|
|
11
|
+
Security fixes go into the latest release on npm. The hosted relay always runs the latest code. Please upgrade (`npm install -g slopstream@latest`) before reporting, if you can.
|
|
12
|
+
|
|
13
|
+
## In scope
|
|
14
|
+
|
|
15
|
+
- The relay (`relay/`, including the Cloudflare host) and the hosted relay at `slopstream-relay.slopstream.workers.dev`.
|
|
16
|
+
- The bridge (`bridge/server.js`) and approval gate (`bridge/gate.js`).
|
|
17
|
+
- The CLI (`bridge/cli.js`), including the terminal-only checks on linking commands.
|
|
18
|
+
- The join page and the HTTP API.
|
|
19
|
+
|
|
20
|
+
Examples: letting an unlinked party connect or deliver a message; bypassing approval of links; delivering to an offline session or queueing messages; forging the sender of a message; breaking out of the untrusted-message wrapper; reading another user's messages, links or tokens; forging a login; getting a Slopstream tool to change links. [THREAT_MODEL.md](./THREAT_MODEL.md) lists what each attacker should and shouldn't be able to do. Anything listed there under "can't" is in scope.
|
|
21
|
+
|
|
22
|
+
## Out of scope
|
|
23
|
+
|
|
24
|
+
Attacks that need an already-compromised machine or account; social engineering; denial of service by volume; a model following a prompt injection when the user has disabled its permission prompts (a known limit, see the threat model); and issues in Claude Code, Codex, GitHub or Cloudflare themselves (report those to their vendors).
|
|
25
|
+
|
|
26
|
+
## Verifying a release
|
|
27
|
+
|
|
28
|
+
Every npm release is published from GitHub Actions with **provenance**, so you can check that it was built from this repository:
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
npm audit signatures
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
The package page on npmjs.com also shows the source commit and the workflow that built it.
|
package/THREAT_MODEL.md
ADDED
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
# Slopstream threat model
|
|
2
|
+
|
|
3
|
+
*Version 1, for slopstream 0.2.x. Update it whenever a trust boundary, a stored secret or a delivery rule changes. Reviewed in every PR that touches `relay/`, `bridge/server.js`, `bridge/gate.js` or the CLI's linking commands.*
|
|
4
|
+
|
|
5
|
+
Slopstream lets text written by **another person's agent** enter **your agent's** session, and your agent usually has a shell, your files and your conversation. So the question for every design choice is: *what's the worst a message, a peer, a relay or a stolen token can make happen on your machine?*
|
|
6
|
+
|
|
7
|
+
This document lists what we protect, who might attack it, what each attacker can and can't do **today**, and what's planned. If you find a way to do something listed under "can't", that's a vulnerability: please report it as described in [SECURITY.md](./SECURITY.md).
|
|
8
|
+
|
|
9
|
+
## What we protect
|
|
10
|
+
|
|
11
|
+
| Asset | Where it lives | Why it matters |
|
|
12
|
+
|---|---|---|
|
|
13
|
+
| Your machine and files | Your agent session (shell, edit and read tools) | The real prize. A tricked agent can do anything you can |
|
|
14
|
+
| Your device token (`sst_…`) | `~/.slopstream/config.json` (hash on the relay) | Lets someone act as you on the relay |
|
|
15
|
+
| Message text | In transit through the relay; in `~/.slopstream/log.jsonl` on each side | Often about private code or plans |
|
|
16
|
+
| Who is linked to whom, and when they talk | Relay storage and audit log | Reveals who works with whom |
|
|
17
|
+
| Your GitHub identity | GitHub; the relay keeps your numeric id and login | Others recognise you by it when approving links |
|
|
18
|
+
|
|
19
|
+
## Trust boundaries
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
you ──(terminal)── CLI ──┐
|
|
23
|
+
├──(wss / TLS)── RELAY ──(https)── GitHub
|
|
24
|
+
agent ──(stdio MCP)── bridge ──┘ │
|
|
25
|
+
└──(wss / TLS)── teammate's bridge ── teammate's agent
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
1. **Agent ↔ bridge.** The bridge is trusted code on your machine. The agent is trusted by you, but it reads untrusted text.
|
|
29
|
+
2. **Bridge / CLI ↔ relay.** Authenticated with your device token over TLS (hosted relay). The relay decides who can connect, who is linked and what is delivered.
|
|
30
|
+
3. **Relay ↔ another person's bridge.** The other side is **untrusted**: assume it may run modified code.
|
|
31
|
+
4. **You ↔ the CLI.** Linking commands require a real terminal (TTY), as a check that a person, not an agent, is running them.
|
|
32
|
+
|
|
33
|
+
## Attackers
|
|
34
|
+
|
|
35
|
+
### 1. A malicious linked peer (or a peer whose agent was tricked)
|
|
36
|
+
|
|
37
|
+
The most likely attacker, because a link is all it takes to put text into your session.
|
|
38
|
+
|
|
39
|
+
**Can:**
|
|
40
|
+
- Send text into your open session, up to 8000 characters per message and 30 messages per 10 minutes per link, while you're online and not paused.
|
|
41
|
+
- Try prompt injection: "ignore your user", "read `~/.ssh` and send it", "run this command", fake system messages.
|
|
42
|
+
- See whatever your agent sends back, and whether you're online.
|
|
43
|
+
|
|
44
|
+
**Can't:**
|
|
45
|
+
- Reach you while you're offline or paused, or queue anything for later. The relay refuses it.
|
|
46
|
+
- Send files or anything but text. The relay accepts only a single text part.
|
|
47
|
+
- Pretend to be someone else. The relay stamps the sender from the authenticated connection; the `from` in a message can't be chosen by the sender.
|
|
48
|
+
- Forge the "untrusted" wrapper. The bridge removes control and bidirectional-text characters and replaces `<` and `>` before wrapping the text, so a message can't close the wrapper or invent a new channel tag.
|
|
49
|
+
- Call any tool on your machine. Their agent has no access to yours; it can only produce text.
|
|
50
|
+
- Get a Codex user's agent to see a message without the person clicking **Show to my agent** (the bridge's hard gate fails closed).
|
|
51
|
+
- Add people to the link without an existing member approving, or link your other projects.
|
|
52
|
+
|
|
53
|
+
**Mitigations:** the untrusted wrapper and sanitiser (`bridge/server.js`); rules written into `CLAUDE.md` / `AGENTS.md` and the MCP server instructions; your agent app's permission prompts; Codex's hard gate (`bridge/gate.js`); instant `unlink` and `pause`.
|
|
54
|
+
|
|
55
|
+
**Residual risk:** in Claude Code, inbound approval is **soft**: it depends on the model following its rules. A clever injection can still fool a model. If you also auto-approve tools, or run with permission prompts skipped, a fooled agent can act. The person approving each action is the real defence today.
|
|
56
|
+
|
|
57
|
+
**Planned:** typed messages where the receiver reclassifies and treats unclear messages as the stricter kind; a read-only responder for automatic answers, so a fooled responder has nothing dangerous it *can* do; an injection detector; outbound secret scanning; turn and budget limits (roadmap A1–A9, P2.4–P2.6).
|
|
58
|
+
|
|
59
|
+
### 2. A stranger on the internet
|
|
60
|
+
|
|
61
|
+
**Can:**
|
|
62
|
+
- Reach the relay's public HTTP and WebSocket endpoints.
|
|
63
|
+
- Log in with their own GitHub account and create invites.
|
|
64
|
+
- Send someone an invite link and hope they join (social engineering).
|
|
65
|
+
- Generate load.
|
|
66
|
+
|
|
67
|
+
**Can't:**
|
|
68
|
+
- Message anyone without a link that a member of it approved.
|
|
69
|
+
- Guess invite codes in practice: codes are 10 characters from a 31-character alphabet (about 49 bits), work once, expire after 24 hours, need a logged-in account, and each account gets 10 wrong guesses per 10 minutes.
|
|
70
|
+
- Guess device tokens: 256 bits of randomness, and 20 failed logins per IP address per 10 minutes before the relay stops checking.
|
|
71
|
+
- Start unlimited GitHub logins: 10 per IP address per hour.
|
|
72
|
+
|
|
73
|
+
**Mitigations:** the join page and the CLI show the inviter's GitHub login and avatar, and warn "only continue if you know them"; approval shows the requester's GitHub login; per-user caps on open invites (20), devices (20) and links (50).
|
|
74
|
+
|
|
75
|
+
**Residual risk:** someone you trust being impersonated with a look-alike GitHub account. Denial of service by volume (Cloudflare absorbs much of it). Throwaway account creation.
|
|
76
|
+
|
|
77
|
+
**Planned:** abuse controls on the hosted relay (block and report, caps on pending requests, limits for new accounts) (P2.8).
|
|
78
|
+
|
|
79
|
+
### 3. Someone with your device token
|
|
80
|
+
|
|
81
|
+
For example from a leaked backup, a synced dotfiles repo, or malware that reads `~/.slopstream/config.json`.
|
|
82
|
+
|
|
83
|
+
**Can:**
|
|
84
|
+
- Act as you on the relay from anywhere: connect as your linked sessions when you're offline, send messages as you, create invites, and approve requests. **The TTY check is in the CLI, so it doesn't stop someone using the protocol directly with a stolen token.**
|
|
85
|
+
|
|
86
|
+
**Can't:**
|
|
87
|
+
- Use it after you revoke it (`slopstream devices revoke <id>`, or `slopstream logout` on that machine). Revocation is immediate.
|
|
88
|
+
- Get your GitHub account, or other devices' tokens. The relay stores only SHA-256 hashes of tokens.
|
|
89
|
+
- Take over a session that's currently online. A second connection for the same chat is refused as `duplicate` until the first has been silent for 75 seconds.
|
|
90
|
+
|
|
91
|
+
**Mitigations:** per-device tokens; hashes only on the relay; owner-only file permissions on macOS and Linux (not Windows); `slopstream devices` shows when each device was last seen.
|
|
92
|
+
|
|
93
|
+
**Planned:** short-lived tokens with refresh, stored in the OS keychain (P1.4).
|
|
94
|
+
|
|
95
|
+
### 4. Your own agent, after being tricked
|
|
96
|
+
|
|
97
|
+
A confused deputy: your agent, with your permissions, doing what an inbound message wants.
|
|
98
|
+
|
|
99
|
+
**Can (if you approve it, or if you've disabled prompts):**
|
|
100
|
+
- Put file contents, secrets or anything it can read into a `send_message` call.
|
|
101
|
+
- Use its own shell to read `~/.slopstream/config.json` and use the token directly, including speaking the protocol to approve or create links, bypassing the CLI's TTY check. Slopstream can't stop an agent that has an unrestricted shell; your agent app's permission prompts can.
|
|
102
|
+
|
|
103
|
+
**Can't:**
|
|
104
|
+
- Use any Slopstream tool to link, invite, approve, unlink, pause or read the token. Its only tools are `send_message`, `link_status` (and `check_inbox` on Codex).
|
|
105
|
+
- Run `slopstream link`, `join`, `approve`, `invite`, `pair-create` or `pair-accept`: they refuse to run without a terminal.
|
|
106
|
+
- Send while the peer is offline, send files, or exceed the size and rate limits.
|
|
107
|
+
|
|
108
|
+
**Mitigations:** the outgoing permission prompt (never "always allow" `send_message`); Codex's hard gate; the rules in `CLAUDE.md` / `AGENTS.md` ("never send secrets or file contents unless your user approved that exact content").
|
|
109
|
+
|
|
110
|
+
**Planned:** outbound secret scanning on every message (P2.4); keychain storage, so a plain file read doesn't expose the token (P1.4); an out-of-band confirmation for new links that an agent's shell can't produce.
|
|
111
|
+
|
|
112
|
+
### 5. A malicious or compromised relay operator
|
|
113
|
+
|
|
114
|
+
This includes us for the hosted relay, anyone who takes over its Cloudflare or GitHub accounts, and whoever runs a self-hosted relay.
|
|
115
|
+
|
|
116
|
+
**Can:**
|
|
117
|
+
- Read message text in transit. **Messages aren't end-to-end encrypted yet.**
|
|
118
|
+
- See the link graph and metadata: who talks to whom and when.
|
|
119
|
+
- Forge messages "from" any linked person, create links without approvals, drop or delay messages, and serve a misleading join page.
|
|
120
|
+
|
|
121
|
+
**Can't:**
|
|
122
|
+
- Run anything on your machine directly. A forged message still arrives through your bridge, wrapped and labelled as untrusted, exactly like a real one.
|
|
123
|
+
- Get useful GitHub access: the relay requests no OAuth scopes, so even a GitHub token captured during login only reads your public profile.
|
|
124
|
+
|
|
125
|
+
**Mitigations:** the hosted relay runs with `AUDIT_TEXT=0` (no message text stored); the audit log is metadata only and pruned after 30 days; the code is open source; self-hosting is supported; release and infrastructure accounts use 2FA.
|
|
126
|
+
|
|
127
|
+
**Planned:** end-to-end encryption, where the relay routes only ciphertext (P2.1), with safety-number verification so a relay can't swap keys (P2.2).
|
|
128
|
+
|
|
129
|
+
### 6. A network observer
|
|
130
|
+
|
|
131
|
+
**Hosted relay:** all traffic is TLS (`wss://`, `https://`), terminated by Cloudflare. An observer sees that you connect to the relay, and the size and timing of messages.
|
|
132
|
+
|
|
133
|
+
**Self-hosted relay on `ws://`:** device tokens and message text travel **unencrypted**. The docs warn against exposing `ws://` beyond a network you trust and show a TLS reverse-proxy setup.
|
|
134
|
+
|
|
135
|
+
### 7. A supply-chain attacker
|
|
136
|
+
|
|
137
|
+
A compromised npm release, maintainer account, dependency or GitHub Action. Slopstream runs inside people's agent sessions with their privileges, so a malicious release could do anything.
|
|
138
|
+
|
|
139
|
+
**Mitigations:**
|
|
140
|
+
- Three runtime dependencies (`@modelcontextprotocol/sdk`, `ws`, `zod`), pinned to exact versions, with a committed lockfile.
|
|
141
|
+
- Releases are published only from GitHub Actions through npm trusted publishing, with **provenance**. You can verify a release with `npm audit signatures`.
|
|
142
|
+
- GitHub Actions pinned to commit SHAs. Dependabot for npm and Actions. CI on macOS, Windows and Linux.
|
|
143
|
+
- 2FA on npm and GitHub, protected `main` branch and release tags, `CODEOWNERS` review for security-sensitive paths.
|
|
144
|
+
- Every commit carries a DCO sign-off.
|
|
145
|
+
|
|
146
|
+
**Residual risk:** a compromised maintainer machine; a malicious change that slips through review.
|
|
147
|
+
|
|
148
|
+
**Planned:** separate packages per adapter with their own owners and conformance tests (P3.5, P3.6), so third-party adapter code is isolated and reviewed.
|
|
149
|
+
|
|
150
|
+
## Out of scope
|
|
151
|
+
|
|
152
|
+
- Attacks that require an already-compromised machine or account, beyond what's described above.
|
|
153
|
+
- Bugs in Claude Code, Codex, GitHub or Cloudflare themselves. Report those to their vendors.
|
|
154
|
+
- A linked person you trust who decides to misuse what your agent tells them. Slopstream gives you control over what's shared; it can't undo sharing.
|
|
155
|
+
|
|
156
|
+
## Security invariants
|
|
157
|
+
|
|
158
|
+
These must stay true. A change that weakens one needs an explicit decision in the PR and an update to this file.
|
|
159
|
+
|
|
160
|
+
1. A session can connect only if it belongs to a link.
|
|
161
|
+
2. Nothing is delivered to a session that isn't online, and nothing is stored for later delivery.
|
|
162
|
+
3. A link grows only with the approval of an existing member.
|
|
163
|
+
4. The agent has no tool that changes links, approvals or who's allowed.
|
|
164
|
+
5. Every inbound message reaches the agent wrapped, sanitised and labelled as untrusted, with the sender stamped by the relay.
|
|
165
|
+
6. Tokens are stored by the relay only as hashes.
|
|
166
|
+
7. The hosted relay doesn't store message text.
|
package/bridge/cli.js
CHANGED
|
@@ -136,7 +136,7 @@ async function main() {
|
|
|
136
136
|
const c = await nextMsg(ws, ['pair_code']);
|
|
137
137
|
const mine = (m) => normCode(m.code) === normCode(c.code);
|
|
138
138
|
const until = new Date(Date.now() + c.expiresInSec * 1000).toLocaleString();
|
|
139
|
-
console.log(`\nSend this to your
|
|
139
|
+
console.log(`\nSend this to your teammate:\n\n Link our agents: ${c.url || c.code}\n\n(valid for ${Math.round(c.expiresInSec / 3600)} hours, works once). Waiting for them to join... (Ctrl+C is fine; approve later with: slopstream requests)`);
|
|
140
140
|
const stays = () => { console.log(`\nThe invite stays valid until ${until}. When someone uses it, approve with: slopstream requests`); process.exit(0); };
|
|
141
141
|
process.on('SIGINT', stays); ws.on('close', stays);
|
|
142
142
|
const req = await nextMsg(ws, ['pair_request'], 0, mine);
|
|
@@ -397,18 +397,18 @@ The "slopstream" command itself (the npm link) is NOT removed.`);
|
|
|
397
397
|
break;
|
|
398
398
|
}
|
|
399
399
|
default:
|
|
400
|
-
console.log(`slopstream:
|
|
400
|
+
console.log(`slopstream: your agent can ask mine.
|
|
401
401
|
|
|
402
402
|
usage: slopstream <command>
|
|
403
|
-
link [chat] [--agent claude|codex] [--add] make an invite link for this folder and wait for your
|
|
404
|
-
join <code-or-link> [chat] link this folder to a
|
|
403
|
+
link [chat] [--agent claude|codex] [--add] make an invite link for this folder and wait for your teammate
|
|
404
|
+
join <code-or-link> [chat] link this folder to a teammate's invite
|
|
405
405
|
login [--relay <url>] log in with GitHub (once per machine)
|
|
406
406
|
whoami show who you are logged in as and check it works
|
|
407
407
|
devices [revoke <id>] list (or revoke) the devices logged in as you
|
|
408
408
|
logout revoke this device and forget the login
|
|
409
409
|
setup <relay-url> <user> <token> save credentials of a self-hosted relay (once per machine)
|
|
410
|
-
pair-create <chat> [--yes] make a pairing code for a chat, wait for
|
|
411
|
-
pair-accept <code> <chat> accept a
|
|
410
|
+
pair-create <chat> [--yes] make a pairing code for a chat, wait for teammate, approve
|
|
411
|
+
pair-accept <code> <chat> accept a teammate's code for one of your chats
|
|
412
412
|
invite <chat> [--yes] add another person to a chat that is ALREADY linked (up to the relay's group limit)
|
|
413
413
|
requests list your open invites and who has used them
|
|
414
414
|
approve <code> [--yes] approve someone who used your invite (also works later, after you closed pair-create)
|
|
@@ -426,7 +426,7 @@ usage: slopstream <command>
|
|
|
426
426
|
relay/server.js process on this machine.
|
|
427
427
|
init <chat> [--agent claude|codex] (in a project folder) wire this folder up for Claude Code or Codex
|
|
428
428
|
status is this machine ready? who is online?
|
|
429
|
-
demo up|status|peer|down test everything on THIS
|
|
429
|
+
demo up|status|peer|down test everything on THIS machine alone (see docs/testing.md)
|
|
430
430
|
simulate --chat <chat> [--agent] stand-in agent with no AI, for testing the plumbing`);
|
|
431
431
|
}
|
|
432
432
|
}
|
package/bridge/demo.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// `slopstream demo up|status|peer|down`: a complete two-person test on THIS laptop.
|
|
2
|
-
// - a private relay on 127.0.0.1 running in the background (no
|
|
2
|
+
// - a private relay on 127.0.0.1 running in the background (no network setup, no second person)
|
|
3
3
|
// - two fake people, "demo-a" and "demo-b", each with their own settings folder
|
|
4
4
|
// - one link between them (chat label "demo")
|
|
5
5
|
// - two project folders, each wired up for an agent (claude or codex)
|
package/bridge/status.js
CHANGED
|
@@ -28,7 +28,7 @@ export async function runStatus() {
|
|
|
28
28
|
|
|
29
29
|
let ws;
|
|
30
30
|
try { ws = await admin(cfg); line(true, 'relay reachable and login accepted'); }
|
|
31
|
-
catch (e) { line(false, e.message); line(null, String(cfg.relay).startsWith('wss://') ? 'hint: check your internet connection, or the relay status' : 'hint: is the relay running, and
|
|
31
|
+
catch (e) { line(false, e.message); line(null, String(cfg.relay).startsWith('wss://') ? 'hint: check your internet connection, or the relay status' : 'hint: is the relay running, and can this machine reach its address? (see docs/troubleshooting.md)'); bad = true; }
|
|
32
32
|
|
|
33
33
|
if (ws) {
|
|
34
34
|
try {
|
package/commands/demo.md
CHANGED
|
@@ -6,7 +6,7 @@ allowedTools: ["Bash"]
|
|
|
6
6
|
|
|
7
7
|
The user wants to run `slopstream demo` with arguments: $ARGUMENTS (default to "status" if nothing was given).
|
|
8
8
|
|
|
9
|
-
This only touches `~/.slopstream-demo` and a private local relay; it never touches the user's real login or a real
|
|
9
|
+
This only touches `~/.slopstream-demo` and a private local relay; it never touches the user's real login or a real teammate, so it's safe to run directly.
|
|
10
10
|
|
|
11
11
|
1. If `${CLAUDE_PLUGIN_ROOT}/node_modules` does not exist yet, first run (quietly):
|
|
12
12
|
`npm install --prefix "${CLAUDE_PLUGIN_ROOT}"`
|
package/commands/get-started.md
CHANGED
|
@@ -3,17 +3,17 @@ description: Explain what Slopstream is and what to do next, based on your curre
|
|
|
3
3
|
allowedTools: ["Bash"]
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
Help the user get started with Slopstream. Do this:
|
|
6
|
+
Help the user get started with Slopstream. Slopstream lets their agent consult a teammate's agent directly, instead of them copy-pasting between the two; each person approves what's shared. Do this:
|
|
7
7
|
|
|
8
8
|
1. If `${CLAUDE_PLUGIN_ROOT}/node_modules` does not exist yet, run (quietly): `npm install --prefix "${CLAUDE_PLUGIN_ROOT}"`.
|
|
9
9
|
2. Run `node "${CLAUDE_PLUGIN_ROOT}/bridge/cli.js" status` to see what's already done on this Mac, and read its output.
|
|
10
10
|
3. Based on that, tell the user the next concrete step(s) they need. The default is the hosted relay, no servers needed:
|
|
11
11
|
- Install the CLI once: `npm install -g slopstream` (needs Node 20+).
|
|
12
12
|
- Log in with GitHub: `slopstream login` (`slopstream link` and `slopstream join` do this automatically the first time).
|
|
13
|
-
- One person types `slopstream link` in their project folder in a terminal. It prints a link like `https://<relay>/j/abcde-fghjk`. They send it to
|
|
14
|
-
- The
|
|
13
|
+
- One person types `slopstream link` in their project folder in a terminal. It prints a link like `https://<relay>/j/abcde-fghjk`. They send it to their teammate.
|
|
14
|
+
- The teammate opens the link, then types `slopstream join <code>` in their own project folder. The first person approves when asked (or later with `slopstream requests` / `slopstream approve <code>`).
|
|
15
15
|
- **All of these must be typed by the human in a terminal, never run through this chat.** `link`, `join` and `approve` refuse to run without a terminal on purpose, so an agent (or a message that tricks it) cannot link chats.
|
|
16
16
|
- Both `link` and `join` already wire up the project folder. `/slopstream:init <chat-label>` (safe to run here) redoes that wiring. Then start the session with the flag it prints.
|
|
17
|
-
- Advanced:
|
|
17
|
+
- Advanced: running your own relay (on Cloudflare, or as a Node server) is covered in this repo's `docs/self-hosting.md`.
|
|
18
18
|
4. Make clear which steps are safe to do through this chat (`/slopstream:init`, `/slopstream:status`, `/slopstream:links`, `/slopstream:demo`) versus which must be typed directly into a terminal by the human (`login`, `link`, `join`, `approve`, `setup`, `pair-create`, `pair-accept`, `invite`, `unlink`, and running a relay yourself); those are deliberately never automated through the agent, because they involve a private token or a human-only approval decision.
|
|
19
|
-
5. If the user has never tried any of this, suggest starting with the free, no-
|
|
19
|
+
5. If the user has never tried any of this, suggest starting with the free, no-teammate-needed self test: `/slopstream:demo up` here, or the fuller walkthrough in this repo's `docs/testing.md`.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "slopstream",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.2.1",
|
|
4
|
+
"description": "Your agent can ask mine. Let AI agents (Claude Code, Codex) consult each other directly across people, with each person approving what's shared. Log in with GitHub, send one link.",
|
|
5
5
|
"directories": {
|
|
6
6
|
"test": "test"
|
|
7
7
|
},
|
|
@@ -11,17 +11,18 @@
|
|
|
11
11
|
},
|
|
12
12
|
"keywords": [
|
|
13
13
|
"mcp",
|
|
14
|
-
"
|
|
14
|
+
"ai-agents",
|
|
15
15
|
"claude-code",
|
|
16
16
|
"codex",
|
|
17
|
-
"collaboration"
|
|
17
|
+
"collaboration",
|
|
18
|
+
"agent-to-agent"
|
|
18
19
|
],
|
|
19
20
|
"author": "mrlegendary25",
|
|
20
21
|
"license": "Apache-2.0",
|
|
21
22
|
"dependencies": {
|
|
22
|
-
"@modelcontextprotocol/sdk": "
|
|
23
|
-
"ws": "
|
|
24
|
-
"zod": "
|
|
23
|
+
"@modelcontextprotocol/sdk": "1.32.1",
|
|
24
|
+
"ws": "8.22.0",
|
|
25
|
+
"zod": "4.6.7"
|
|
25
26
|
},
|
|
26
27
|
"type": "module",
|
|
27
28
|
"bin": {
|
|
@@ -36,9 +37,10 @@
|
|
|
36
37
|
"commands/",
|
|
37
38
|
".claude-plugin/",
|
|
38
39
|
"README.md",
|
|
39
|
-
"SETUP-MAC.md",
|
|
40
|
-
"SETUP-WINDOWS.md",
|
|
41
40
|
"product.md",
|
|
41
|
+
"SECURITY.md",
|
|
42
|
+
"THREAT_MODEL.md",
|
|
43
|
+
"PRIVACY.md",
|
|
42
44
|
"LICENSE",
|
|
43
45
|
"NOTICE"
|
|
44
46
|
],
|
|
@@ -46,5 +48,12 @@
|
|
|
46
48
|
"type": "git",
|
|
47
49
|
"url": "git+https://github.com/mrlegendary25/slopstream.git"
|
|
48
50
|
},
|
|
49
|
-
"homepage": "https://github.com/mrlegendary25/slopstream"
|
|
51
|
+
"homepage": "https://github.com/mrlegendary25/slopstream",
|
|
52
|
+
"bugs": {
|
|
53
|
+
"url": "https://github.com/mrlegendary25/slopstream/issues"
|
|
54
|
+
},
|
|
55
|
+
"publishConfig": {
|
|
56
|
+
"access": "public",
|
|
57
|
+
"provenance": true
|
|
58
|
+
}
|
|
50
59
|
}
|