THE PROBLEM
The context wall
Every AI team hits the same wall. The model is capable, but the agent cannot remember what happened two turns ago, cannot connect a user preference to a product entity, and cannot guarantee that concurrent writes stay consistent.
Today's teams assemble five or six systems - a vector database, a document store, a graph database, a cache, a queue, and a memory middleware layer - then spend months writing glue code to keep them consistent. Every seam is a place where context leaks.
THE SOLUTION
The read-think-write loop
Agents operate in a continuous cycle: read context, reason over it, and write results back. The context layer keeps the entire loop inside one transactional system.
READ
Graph traversal, vector search, and temporal facts - one SurrealQL statement, one round trip.
THINK
Documents, relationships, embeddings, and history arrive together. The agent reasons over complete context.
WRITE
Persist decisions, update entities, trigger events - one ACID transaction, no partial writes.
CONTEXT ENGINEERING
Context engineering in one query
SurrealQL lets you combine graph traversal, vector similarity, structured filters, and temporal queries in a single statement. One round trip gives the agent everything it needs.
MULTI-AGENT
Multi-agent coordination
Multiple agents share the same knowledge graph and memory. Coordination happens through shared context with ACID guarantees - no message passing, no race conditions.
THE STACK
SurrealDB + Spectron
SurrealDB provides the multi-model database for structured context. Spectron provides persistent memory for AI agents. Together, they form the context layer - one stack, one transaction boundary, one permission model.
WORKS WITH YOUR FRAMEWORK
The context layer beneath your orchestrator
LangGraph, CrewAI, and AutoGen orchestrate agent logic - the control flow. SurrealDB provides the persistent context layer beneath - the data, the memory, the knowledge graph. They are complementary. Connect through MCP, SDKs, or direct API calls.
FREQUENTLY ASKED QUESTIONS