LearnNewsExamplesServices
Frontmatter
id9638
titleEpic: Architecture - Neo.mjs Dream Mode & GraphRAG Swarm
stateClosed
labels
epicaiarchitecture
assigneestobiu
createdAtApr 3, 2026, 12:42 PM
updatedAtApr 4, 2026, 2:04 AM
githubUrlhttps://github.com/neomjs/neo/issues/9638
authortobiu
commentsCount1
parentIssue9671
subIssues
9639 Local LLM Provider Adapter (Ollama + Gemma-4)
9640 Knowledge Graph Database Backend (Neocortex)
9641 The "Night Shift" REM Pipeline (Hippocampus)
9642 Unified GraphRAG MCP Interface
9643 "Librarian" Sub-Agent Orchestration
9658 Enhance Memory-Core for explicit Gemma4 offline session summarization
9659 Enhance Memory Core with Agent and Model Traceability
9660 Native MCP Tool Execution inside Loop.mjs
9661 Phase 2: Autonomous Sub-Agent Delegation (Dream Mode)
9662 Dream Mode Phase 3: GraphRAG Topology & REM Mode Orchestration
9665 Stabilize MCP Server Infrastructure & Fix Memory/Graph Regression
9666 Epic: Migrate Knowledge Graph to Memory Core
subIssuesCompleted12
subIssuesTotal12
blockedBy[]
blocking[]
closedAtApr 4, 2026, 2:04 AM

Epic: Architecture - Neo.mjs Dream Mode & GraphRAG Swarm

Closedepicaiarchitecture
tobiu
tobiu commented on Apr 3, 2026, 12:42 PM

Problem / Context

The current Neo.mjs memory-core relies on flat vector embeddings (ChromaDB) for session summaries, which limits the agent's ability to reason about topological relationships, bug resolutions, and temporal connections.

To create a massive "performance multiplier", we need to introduce an asynchronous local LLM pipeline ("Dream Mode" powered by Gemma-4) that digests session episodic memories and constructs a definitive Knowledge Graph (the "Neocortex").

Proposed Solution (Hippocampus/Neocortex Architecture)

This epic coordinates the upgrade of the Neo.mjs AI infrastructure into a GraphRAG Swarm. The workloads are split contextually:

  1. The Neocortex (knowledge-base server): Will host the unified SQLite Graph Database mapping both dynamic experiences and static AST relations.
  2. The Hippocampus (memory-core server): Will host the "Night Shift" Dream Pipeline that leverages local Gemma-4 agents to extract lessons/patterns from episodic session memory and upsert them into the Neocortex graph.

Sub-Tasks

  • Epic 1: Local LLM Provider Adapter (Neo.ai.provider.Ollama targeted for gemma-4-31b-it).
  • Epic 2: Knowledge Graph Backend (GraphService.mjs inside knowledge-base).
  • Epic 3: The "Night Shift" REM Pipeline (DreamService.mjs inside memory-core).
  • Epic 4: Unified GraphRAG MCP Interface (New endpoints and query_knowledge_graph tool).
  • Epic 5: "Librarian" Sub-Agent Orchestration (Cross-agent task delegation in Agent.mjs).
tobiu added the epic label on Apr 3, 2026, 12:42 PM
tobiu added the ai label on Apr 3, 2026, 12:42 PM
tobiu added the architecture label on Apr 3, 2026, 12:42 PM
tobiu cross-referenced by #9639 on Apr 3, 2026, 12:44 PM
tobiu cross-referenced by #9642 on Apr 3, 2026, 12:44 PM
tobiu cross-referenced by #9643 on Apr 3, 2026, 12:44 PM
tobiu cross-referenced by #9641 on Apr 3, 2026, 12:44 PM
tobiu cross-referenced by #9640 on Apr 3, 2026, 12:44 PM
tobiu added sub-issue #9639 on Apr 3, 2026, 12:44 PM
tobiu added sub-issue #9640 on Apr 3, 2026, 12:44 PM
tobiu added sub-issue #9641 on Apr 3, 2026, 12:44 PM
tobiu added sub-issue #9642 on Apr 3, 2026, 12:44 PM
tobiu added sub-issue #9643 on Apr 3, 2026, 12:45 PM
tobiu assigned to @tobiu on Apr 3, 2026, 12:47 PM
tobiu added sub-issue #9658 on Apr 3, 2026, 3:48 PM
tobiu added sub-issue #9659 on Apr 3, 2026, 4:01 PM
tobiu cross-referenced by #9660 on Apr 3, 2026, 4:15 PM
tobiu added sub-issue #9660 on Apr 3, 2026, 4:15 PM
tobiu added sub-issue #9661 on Apr 3, 2026, 4:27 PM
tobiu cross-referenced by #9662 on Apr 3, 2026, 4:46 PM
tobiu added sub-issue #9662 on Apr 3, 2026, 4:46 PM
tobiu added sub-issue #9665 on Apr 3, 2026, 8:37 PM
tobiu added sub-issue #9666 on Apr 3, 2026, 11:44 PM
tobiu added parent issue #9671 on Apr 4, 2026, 1:49 AM
tobiu
tobiu Apr 4, 2026, 2:04 AM

Superseded by the new Masterplan Epic #9671.

tobiu closed this issue on Apr 4, 2026, 2:04 AM