01 |HOW AGENTS WORK
Agents fail because of context, not models.
An agent's only built-in memory is the context window - wiped when the session ends. So everything it worked out, it has to work out again.
Session 1 · what it figured out
The flaky test was a token-refresh race
This repo squash-merges, and uses tabs
The cache-layer rewrite was tried, and dropped
context wiped
Session 2 · what it remembers
Nothing.
It re-reads every file, and re-tries the cache-layer rewrite it already ruled out.
02 |THE ANATOMY
Anatomy of an agentic system
Every agentic system is made of the same six parts. The one that decides what the agent actually knows on any given turn is the context layer - its whole job is answering one question: what does the model need to know right now?
The bottom four parts - the context layer, memory, the knowledge graph, and storage - are exactly what Spectron provides.
03 |THE CONTEXT LAYER
Every turn: read → think → write
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.
04 |MEMORY
Typed memory, not a blob.
The context window is the agent's short-term memory - this turn, then gone. Spectron is the durable layer beneath it: typed, not a blob, with five categories extracted from every turn, each with its own lifecycle and retrieval weight.
KNOWLEDGE GRAPH
And it's all connected in a knowledge graph
Entities as nodes, typed relationships as edges - and because edges are documents, they carry their own properties, confidence, and timestamps.
05 |RECALL
Recall that surfaces the right thing.
Every turn, Spectron feeds the context window the slice that matters - and recall is engineered for correctness. A hybrid, multi-signal ranker weighs meaning, exact keywords, and graph connections together; reconciliation supersedes facts that have changed; and every answer comes back with the exact sources behind it.
Cheap questions stay cheap - a typed lookup answers straight from the graph and never touches the ranker. Only real retrieval runs the full fusion, with a broader sweep held in reserve for when the answer is thin.
06 |ONE SUBSTRATE
One engine, not a pile of stores.
Most memory layers stitch a vector store, a graph store, and a row store together with glue code, and inherit every seam - no cross-store transactions, drift, separate scaling. Spectron is one SurrealDB engine: graph, vector, document, and time in a single ACID transaction, no plumbing to run.
Before - Multiple stores
Vector
database
Proprietary API
Full-text search
database
Search DSL
Time-series
database
InfluxQL / Flux
Document
database
SQL / MQL
Graph
database
Cypher / Gremlin
Relational
database
SQL
After - Spectron on SurrealDB
SurrealQL
07 |BUILD WITH IT
Drop it in beneath your agent.
Spectron doesn't replace your agent framework or manage the context window - it's the memory layer you add beneath whatever you build with. Connect over MCP from any client, the TypeScript SDK, or the CLI, with integrations for LangChain, OpenAI Agents, the Vercel AI SDK, and n8n - then it's two calls, remember and recall.
TYPESCRIPT SDK
08 |MEMORY WITH A HISTORY
It changes its mind without losing the past.
When a fact changes, most memory systems overwrite the old one - and the agent can't tell what changed or when. Spectron supersedes instead of deletes: the old fact stays, the new one wins, and every answer can point back to the exact messages behind it.
INTEGRATIONS
Connects to everything you already use
MCP clients, the TypeScript SDK, the CLI and REST API, agent frameworks and automation platforms - the same wall as the product's own connect surface.
SDKs & API
Talk to a Context directly from your own code.
Spectron CLI
Connect via CLI
JavaScript
Connect via SDK
Python
Connect via SDK
Go
Connect via SDK
Swift
Connect via SDK
Kotlin
Connect via SDK
Haskell
Connect via SDK
Elixir
Connect via SDK
Dart
Connect via SDK
REST API
Connect via API
Agents & coding tools
Connect your AI agents and coding assistants for persistent memory.
Claude Code
Connect via MCP
Claude Desktop
Connect via MCP
Cursor
Connect via MCP
OpenAI Codex
Connect via MCP
OpenClaw
Connect via MCP
Hermes
Connect via MCP
VS Code
Connect via MCP
Windsurf
Connect via MCP
Zed
Connect via MCP
Any MCP client
Connect via MCP
Frameworks
Wire a Context into your agent framework of choice.
LangChain
Connect via package
OpenAI Agents
Connect via package
Vercel AI SDK
Connect via package
EveJS
Connect via package
Cloudflare
Connect via MCP
TanStack AI
Connect via MCP
Mastra
Connect via MCP
Automation platforms
Give your automation workflows access to a Context's memory.
n8n
Connect via node
Zapier
Connect via MCP
Messaging
Bring a Context's memory to the channels you already message on.
Coming soon
Telegram
Coming soon
Facebook Messenger
Coming soon
SMS / RCS
Coming soon
Connectors
Sync memory to and from the tools and data platforms your team uses.
SurrealDB
Coming soon
Slack
Coming soon
Notion
Coming soon
Google Drive
Coming soon
GitHub
Coming soon
Linear
Coming soon
Confluence
Coming soon
Databricks
Coming soon
Snowflake
Coming soon
GET STARTED
Give your agents a memory that lasts
Durable memory, trustworthy recall, and a knowledge graph - one system you buy, secure, and audit once. Built on SurrealDB.
SOC 2 Type 2
GDPR
Cyber Essentials Plus
ISO 27001
Join the waitlist for early access · self-serve plans open at launch.
FREQUENTLY ASKED QUESTIONS