Skip to main content

Core concepts

Understanding these four concepts will make everything else in the docs click.

Memory

A memory is a discrete, structured piece of context derived from your AI conversations. Not a raw transcript — a classified, ranked unit of information.
{
  content: "Prefers TypeScript. Dislikes class components.",
  type: "preference",
  domain: "engineering",
  importance: 0.8,
  created_at: "2026-03-27T00:00:00Z"
}
Memories are stored in your vault and retrieved selectively — only what’s relevant to the current session gets injected into the prompt. Not everything, not nothing.

The vault

Your vault is the encrypted store where memories live. You control it — locally with SQLite today, optionally synced to the 4StaX cloud when that ships. Every read and write to the vault is logged in an immutable consent ledger. You can always see what was accessed, when, and by which application.

Relevance ranking

When your AI client needs context, kontxt doesn’t dump your entire memory archive into the prompt. It ranks candidates using four signals:
SignalWhat it measures
Semantic similarityHow closely the memory matches the current task
RecencyHow recently the memory was created or accessed
Access frequencyHow often this memory has been useful before
Explicit importanceThe importance score set when the memory was stored
The result is a compact, relevant bundle — not noise.

Memory types

TypeExamples
preferenceLanguage choices, formatting preferences, communication style
factYour name, role, project names, tech stack
decisionArchitectural decisions, tradeoffs made
summaryCondensed session summaries
instructionStanding instructions for how AI should behave

MCP — how it connects

MCP (Model Context Protocol) is the standard that lets AI clients talk to external tools and data sources. kontxt implements an MCP server that exposes your vault to any compatible client. When you ask Cursor or Claude Desktop something, the MCP client calls kontxt’s tools, retrieves relevant memories, and injects them into your prompt automatically. You don’t see it happening — it just works.

Open source vs cloud

kontxt (OSS)4StaX cloud
StorageLocal SQLiteHosted, encrypted
SyncSingle machineCross-device
AccessNo account neededAccount required
StatusAvailable nowWaitlist
The MCP tool surface is identical between both. Integrations built on kontxt will work with 4StaX cloud without changes.