Skip to content

opencode-swarm-plugin@0.46.0

Choose a tag to compare

@github-actions github-actions released this 30 Dec 15:01
· 214 commits to main since this release
2115648

Minor Changes

  • e5987a7 Thanks @joelhooks! - ## The Hive Remembers Everything

                        🧠
                       /  \
                      /    \      "One mind to remember them all,
                     / HIVE \      one mind to find them,
                    / MIND   \     one mind to bring them all
                   /          \    and in the context bind them."
                  /____________\
                       |||
             ┌────────┴┴┴────────┐
             │                   │
        ┌────┴────┐         ┌────┴────┐
        │ Learnings│         │ Sessions │
        │ (manual) │         │ (indexed)│
        └────┬────┘         └────┬────┘
             │                   │
             └─────────┬─────────┘
                       ▼
                ┌─────────────┐
                │  memories   │  ← Same table
                │   table     │  ← Same vectors
                │  (libSQL)   │  ← Same search
                └─────────────┘
    

    "The palest ink is better than the best memory." — Chinese Proverb

    ADR-011: Hivemind Memory Unification

    15 tools → 8 tools. Sessions and learnings are now unified under one namespace.

    What changed:

    Old Tool New Tool
    semantic-memory_store hivemind_store
    semantic-memory_find hivemind_find
    semantic-memory_get hivemind_get
    semantic-memory_remove hivemind_remove
    semantic-memory_validate hivemind_validate
    cass_search hivemind_find (collection filter)
    cass_view hivemind_get
    cass_index hivemind_index
    cass_stats hivemind_stats
    NEW hivemind_sync

    Why it matters:

    1. No more naming collision - External semantic-memory MCP was shadowing our internal tools
    2. Unified search - hivemind_find searches both learnings AND sessions in one query
    3. Collection filter - collection: "claude" for Claude sessions, collection: "default" for learnings
    4. Simpler mental model - Sessions ARE memories, just from a different source

    Backward compatible: All old tool names (semantic-memory_*, cass_*) still work via deprecation aliases. They'll emit warnings but won't break.

    Migration: None required. Old tool names continue to work. Update at your leisure.

    117+ tests covering all tools, lifecycle, deprecation aliases, and integration points.

Patch Changes

  • e5987a7 Thanks @joelhooks! - ## 🔧 Test Suite Stabilization & Global Database Path

    "The first step in fixing a broken window is to notice it."
    — The Pragmatic Programmer

         ___________
        |  PASSING  |
        |   TESTS   |
        |___________|
             ||
        ╔════╧════╗
        ║ 1538    ║
        ║  ✓ ✓ ✓  ║
        ╚═════════╝
    

    What Changed

    swarm-mail:

    • getDatabasePath() now ALWAYS returns global path (~/.config/swarm-tools/swarm.db)
    • Local project databases will be auto-migrated in a future release (placeholder warning added)
    • Auto-tagger LLM tests now opt-in via RUN_LLM_TESTS=1 (prevents flaky CI)

    opencode-swarm-plugin:

    • Fixed type mismatches in compaction hook (HiveAdapter → MinimalHiveAdapter)
    • Fixed eval capture in tool hooks (args not available in after hook)
    • All 425 tests passing

    Why Global Database?

    Single source of truth across all projects:

    • No more orphaned databases in worktrees
    • Consistent swarm state regardless of working directory
    • Simpler backup/restore story

    ⚠️ Breaking: Local Databases Orphaned

    Existing local databases at {project}/.opencode/swarm.db are NOT migrated.
    They remain on disk but are no longer read. A warning is logged when detected.

    Tracked: Cell mjrd8cyhvnu - Implement local-to-global DB migration

    If you have important data in local DBs, wait for migration tool or manually copy:

    # Check if you have local data
    ls -la .opencode/swarm.db

    Test Results

    Package Pass Skip Fail
    swarm-mail 1113 29 0
    opencode-swarm-plugin 425 0 0
  • Updated dependencies [e5987a7, e5987a7, e5987a7]:

    • swarm-mail@1.7.0