opencode-swarm-plugin 0.45.1 → 0.45.2

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 CHANGED
@@ -308,6 +308,74 @@ Auto-saves progress at milestones. Survives context death or crashes. Data store
308
308
  | `swarm_review` | Generate review prompt for coordinator |
309
309
  | `swarm_review_feedback` | Send approval/rejection to worker (3-strike) |
310
310
 
311
+ ### Semantic Memory (Persistent Learning)
312
+
313
+ Vector embeddings for persistent agent learnings. Uses **libSQL native vector support via sqlite-vec extension** + **Ollama** for embeddings.
314
+
315
+ | Tool | Purpose |
316
+ |------|---------|
317
+ | `semantic-memory_store` | Store learnings (with auto-tag/auto-link/entity extraction) |
318
+ | `semantic-memory_find` | Search by semantic similarity |
319
+ | `semantic-memory_get` | Get specific memory by ID |
320
+ | `semantic-memory_validate` | Validate memory accuracy (resets 90-day decay) |
321
+ | `semantic-memory_list` | List stored memories |
322
+ | `semantic-memory_remove` | Delete outdated/incorrect memories |
323
+
324
+ **Wave 1-3 Smart Operations:**
325
+
326
+ ```typescript
327
+ // Simple store (always adds new)
328
+ semantic-memory_store(information="OAuth tokens need 5min buffer before expiry")
329
+
330
+ // Store with auto-tagging (LLM extracts tags)
331
+ semantic-memory_store(
332
+ information="OAuth tokens need 5min buffer",
333
+ metadata='{"autoTag": true}'
334
+ )
335
+ // Returns: { id: "mem-abc123", autoTags: { tags: ["auth", "oauth", "tokens"], confidence: 0.85 } }
336
+
337
+ // Store with auto-linking (links to related memories)
338
+ semantic-memory_store(
339
+ information="Token refresh race condition fixed",
340
+ metadata='{"autoLink": true}'
341
+ )
342
+ // Returns: { id: "mem-def456", links: [{ memory_id: "mem-abc123", link_type: "related", score: 0.82 }] }
343
+
344
+ // Store with entity extraction (builds knowledge graph)
345
+ semantic-memory_store(
346
+ information="Joel prefers TypeScript for Next.js projects",
347
+ metadata='{"extractEntities": true}'
348
+ )
349
+ // Returns: { id: "mem-ghi789", entities: [{ name: "Joel", type: "person" }, { name: "TypeScript", type: "technology" }] }
350
+
351
+ // Combine all smart features
352
+ semantic-memory_store(
353
+ information="OAuth tokens need 5min buffer to avoid race conditions",
354
+ metadata='{"autoTag": true, "autoLink": true, "extractEntities": true}'
355
+ )
356
+
357
+ // Search memories
358
+ semantic-memory_find(query="token refresh issues", limit=5)
359
+
360
+ // Validate memory (resets 90-day decay timer)
361
+ semantic-memory_validate(id="mem-abc123")
362
+ ```
363
+
364
+ **Graceful Degradation:** All smart operations fall back to heuristics if LLM/Ollama unavailable:
365
+ - Auto-tagging returns `undefined` (no tags added)
366
+ - Auto-linking returns `undefined` (no links created)
367
+ - Entity extraction returns empty arrays
368
+ - Vector search falls back to full-text search (FTS5)
369
+
370
+ **Requires Ollama for smart operations:**
371
+ ```bash
372
+ brew install ollama
373
+ ollama serve &
374
+ ollama pull mxbai-embed-large
375
+ ```
376
+
377
+ See [swarm-mail README](../swarm-mail/README.md#wave-1-3-smart-operations) for full API details.
378
+
311
379
  ### Skills (Knowledge Injection)
312
380
 
313
381
  | Tool | Purpose |