@dsiloed/silo-link 1.0.0 → 1.0.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/README.md +25 -15
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -26,21 +26,15 @@ Claude Code (tmux) ──MCP──► :3579 ──REST API──► ├─
|
|
|
26
26
|
- **Agent Dashboard** — active sessions appear in Mission Control with real-time status
|
|
27
27
|
- **Control Channel** — launch/stop/status commands via ActionCable from the UI
|
|
28
28
|
- **Channel linking** — command Claude from Slack, Discord, Teams, or SMS
|
|
29
|
+
- **Session continuity** — `remote_load_context` restores prior conversation history on session restart
|
|
29
30
|
|
|
30
31
|
## Installation
|
|
31
32
|
|
|
32
33
|
```bash
|
|
33
|
-
|
|
34
|
-
cd silo_link
|
|
35
|
-
pnpm install
|
|
36
|
-
pnpm build
|
|
34
|
+
npm install -g @dsiloed/silo-link
|
|
37
35
|
```
|
|
38
36
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
```bash
|
|
42
|
-
pnpm link --global
|
|
43
|
-
```
|
|
37
|
+
This installs the `silolink` CLI globally.
|
|
44
38
|
|
|
45
39
|
## Configuration
|
|
46
40
|
|
|
@@ -172,6 +166,7 @@ tmux attach -t silolink-claude-1774363497579
|
|
|
172
166
|
| Tool | Description | Blocking |
|
|
173
167
|
|------|-------------|----------|
|
|
174
168
|
| `remote_register` | Register session, create/attach conversation | No |
|
|
169
|
+
| `remote_load_context` | Load prior conversation history for session continuity | No |
|
|
175
170
|
| `remote_notify` | Fire-and-forget message | No |
|
|
176
171
|
| `remote_ask` | Post question, wait for reply | Yes |
|
|
177
172
|
| `remote_poll` | Non-blocking check for next message (**recommended**) | No |
|
|
@@ -189,6 +184,15 @@ Output: { session_id, conversation_id, conversation_url }
|
|
|
189
184
|
|
|
190
185
|
When `conversation_id` is provided, attaches to that existing conversation (used by auto-launcher).
|
|
191
186
|
|
|
187
|
+
### remote_load_context
|
|
188
|
+
|
|
189
|
+
```
|
|
190
|
+
Input: { conversation_id?: 109, limit?: 50 }
|
|
191
|
+
Output: { success: true, conversation_id, resume_id, message_count, history: [...] }
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
Fetches prior conversation history and the last `claude_resume_id` from agent session metadata. Call after `remote_register` when attaching to an existing conversation to restore session continuity.
|
|
195
|
+
|
|
192
196
|
### remote_poll (Recommended)
|
|
193
197
|
|
|
194
198
|
```
|
|
@@ -244,13 +248,15 @@ When the SiloLink MCP server is connected:
|
|
|
244
248
|
|
|
245
249
|
1. Register with `remote_register({ session_name: "<name>" })`.
|
|
246
250
|
If a conversation_id is provided, pass it too.
|
|
247
|
-
2.
|
|
248
|
-
|
|
249
|
-
|
|
251
|
+
2. **Session Continuity**: If you registered with an existing conversation_id,
|
|
252
|
+
call `remote_load_context()` to load prior conversation history.
|
|
253
|
+
3. ALL communication MUST go through SiloLink — never write to terminal.
|
|
254
|
+
4. Send progress updates with `remote_notify()`.
|
|
255
|
+
5. When idle, use the poll loop:
|
|
250
256
|
- Call `remote_poll()` — returns instantly
|
|
251
257
|
- If `{ pending: true }`: sleep 3s, poll again
|
|
252
258
|
- If message received: process it, notify result, resume
|
|
253
|
-
|
|
259
|
+
6. Use `remote_ask()` for questions needing immediate reply.
|
|
254
260
|
```
|
|
255
261
|
|
|
256
262
|
### Poll Loop Pattern
|
|
@@ -259,6 +265,10 @@ When the SiloLink MCP server is connected:
|
|
|
259
265
|
// Register (use conversation_id if provided in launch prompt)
|
|
260
266
|
remote_register({ session_name: "portablemind", conversation_id: 123 })
|
|
261
267
|
|
|
268
|
+
// If attaching to existing conversation, load prior context
|
|
269
|
+
context = remote_load_context()
|
|
270
|
+
// Review context.history to understand what was discussed
|
|
271
|
+
|
|
262
272
|
// Poll loop
|
|
263
273
|
while (idle) {
|
|
264
274
|
result = remote_poll()
|
|
@@ -340,11 +350,11 @@ src/
|
|
|
340
350
|
mcp/
|
|
341
351
|
server.ts # MCP server (Streamable HTTP on Express)
|
|
342
352
|
tools/
|
|
343
|
-
register-tools.ts # All
|
|
353
|
+
register-tools.ts # All 9 MCP tool definitions
|
|
344
354
|
types/
|
|
345
355
|
index.ts # Shared TypeScript interfaces
|
|
346
356
|
```
|
|
347
357
|
|
|
348
358
|
## License
|
|
349
359
|
|
|
350
|
-
|
|
360
|
+
MIT — see [LICENSE](LICENSE)
|