Frontmatter
| id | 9638 |
| title | Epic: Architecture - Neo.mjs Dream Mode & GraphRAG Swarm |
| state | Closed |
| labels | epicaiarchitecture |
| assignees | tobiu |
| createdAt | Apr 3, 2026, 12:42 PM |
| updatedAt | Apr 4, 2026, 2:04 AM |
| githubUrl | https://github.com/neomjs/neo/issues/9638 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | 9671 |
| 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 |
| subIssuesCompleted | 12 |
| subIssuesTotal | 12 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Apr 4, 2026, 2:04 AM |
Epic: Architecture - Neo.mjs Dream Mode & GraphRAG Swarm
Closedepicaiarchitecture
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
Apr 4, 2026, 2:04 AM
Superseded by the new Masterplan Epic #9671.
tobiu closed this issue on Apr 4, 2026, 2:04 AM
Problem / Context
The current Neo.mjs
memory-corerelies 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:
knowledge-baseserver): Will host the unified SQLite Graph Database mapping both dynamic experiences and static AST relations.memory-coreserver): 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
Neo.ai.provider.Ollamatargeted forgemma-4-31b-it).GraphService.mjsinsideknowledge-base).DreamService.mjsinsidememory-core).query_knowledge_graphtool).Agent.mjs).