A multi-threaded application runtime engine for the AI era, featuring a persistent scene graph and multi-Agent collaboration, enabling AI Agents to introspect and mutate live application structures in real time.
Neo.mjs is a native ES Modules-based multi-threaded application engine using an Off-Main-Thread (OMT) architecture where the main thread handles only DOM patching, with all computation distributed across App, VDom, Data, Canvas, and Shared Workers. Its core innovation is the persistent scene graph — components exist as permanent objects, and the VDOM tree serves not just as a rendering target but as AI Agents' "working memory surface."
The engine is built on four pillars:
- The Brain (Dream Pipeline): Hybrid GraphRAG knowledge graph based on SQLite + ChromaDB, featuring Asymmetric RAG (deterministic + probabilistic dual-channel), Tri-Vector Synthesis (explicit provenance edges), Graph Apoptosis (Hebbian weight decay pruning), and a 6-stage REM distillation cycle that distills tactical conversations into immutable Golden Path topologies.
- The Swarm (Telepathic Institution): Multi-Agent persistent identity maintainer system (cross-clan Agents including Claude, Gemini, GPT), supporting A2A message persistence, semantically searchable reasoning surfaces, and a Gated-RSI authority model (Agent proposes, human approves on merge).
- The Body (Possession Interface / Neural Link): AI Agents co-exist directly in the browser App Worker heap, providing runtime interfaces such as
get_component_tree(real-time inspection),set_instance_properties(hot config mutation), andpatch_code(hot method patching). The architecture generalizes to game engine scene graphs and robotic sensorimotor loops. - The Evolution (MX Loop): Model Experience design principle drives the substrate to evolve toward actual pain points of frontier models, including an RLAIF flywheel (Memory Core short-term + Git history long-term → training data) and an autopoietic system (internal friction → tickets → evolutionary skills → reflex arcs).
Zero runtime dependencies and zero transpilation in the browser, with four AI services — Knowledge Base, Memory Core, GitHub Workflow, and Neural Link — exposed via MCP protocol.
Suitable for financial trading desks (claimed 40k+ delta updates/sec, though no specific customers are publicly named), multi-window control rooms, browser IDEs, AI Agent R&D infrastructure, and autopoietic system research. Not suited for static content sites, simple blogs, or teams seeking "React with different syntax."
Quick start: npx neo-app@latest