Replies: 2 comments
-
Refined Direction (2026-03-30)After further discussion, here's the refined architectural direction: Decisions Made
The Needle-Moving InsightThe key value isn't just fixing Issue #73 (Ollama lifecycle). It's unified semantic memory:
This makes every agent smarter with every session. The swarm accumulates project-specific wisdom that persists across sessions, repos, and team members. Scope Summary
Spec will be created as |
Beta Was this translation helpful? Give feedback.
-
Implementation Tracking (2026-03-30)ForkSwarm plugin forked: unbound-force/swarm-tools (from Issues Filed
Execution OrderSpec BranchFull spec artifacts on branch |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Context
Issue #73 identified that Ollama server lifecycle management causes silent degradation across three tools:
All three independently call the same Ollama HTTP API at
localhost:11434. If Ollama isn't running, all three fail independently with different error messages.The Observation
Currently the architecture looks like this:
Three tools, one dependency, zero coordination.
Proposed Architecture
What if Dewey became the single embedding and semantic memory service for the entire swarm?
Three changes:
1. Dewey owns the Ollama lifecycle
When
dewey servestarts, it checks if Ollama is running. If not, andollamais in PATH, Dewey auto-starts it as a managed subprocess. This eliminates the "installed but not serving" problem entirely. Only Dewey needs to know about Ollama — everyone else just calls Dewey.2. Dewey provides semantic memory storage
Instead of Hivemind's
hivemind_store/hivemind_findcalling Ollama directly, Dewey gets new MCP tools:dewey_store_learning— store a learning with tags and metadata (source: learning, not disk/github/web)dewey_semantic_searchalready finds them — learnings are just another document type in the indexLearnings persist in
graph.dbacross sessions, are searchable alongside specs and code, and benefit from Dewey's existing embedding infrastructure.3. Swarm's Hivemind becomes a thin proxy (or is deprecated)
Instead of Hivemind maintaining its own embedding pipeline and storage, it delegates to Dewey. Or, the
/unleashretrospective step and Divisor "Prior Learnings" step call Dewey tools directly instead of Hivemind.Benefits
hivemind_store+hivemind_find+dewey_semantic_search+dewey_search(4 tools, overlapping)dewey_store_learning+dewey_semantic_search(2 tools, unified)ollama servemanuallyConstitution Alignment
dewey doctororuf doctorchecks one thing instead of three.embed_test.go). Adding learning storage follows the same patterns.Open Questions
Ollama auto-start: Should Dewey start Ollama as a subprocess, or is this too invasive? Could conflict with user-managed Ollama instances with custom GPU/model configs.
Hivemind migration: Should Hivemind be deprecated in favor of Dewey, or should Hivemind become a thin proxy that calls Dewey under the hood? The Swarm plugin author may have opinions.
Learning schema: What metadata should
dewey_store_learningaccept? Tags, branch name, date, category (pattern/gotcha/review-insight/file-specific) — matching the current Hivemind pattern?Backward compatibility: Existing Hivemind learnings stored via
hivemind_store— should Dewey import them, or start fresh?Scope: Is this a single Dewey spec, or does it need coordinated changes across Dewey + Swarm + unbound-force repos?
Related
hivemind_find)Invitation
This is an RFC — looking for feedback on the architectural direction before specifying. Key questions:
source_type: learning) the right abstraction?Beta Was this translation helpful? Give feedback.
All reactions