Persistent memory for autonomous AI agents
Provide your agents with biological-inspired memory structures: Episodic log streams, semantic graphs, and procedural workflows. Audited with cryptographic integrity and structured with natural temporal decay.
System Architecture
Kyros acts as a secure mediation layer between your autonomous agents and the underlying persistent vector and graph database instances. Hover any node to inspect it.
Three lines of code.
Infinite memory.
Kyros slots into your existing AI stack without changing how you write agents. Add memory in minutes, not days.
Store a memory
Your agent captures something important — a user's name, preference, or decision. One call persists it forever.
Kyros hashes the content with SHA-256, assigns an Ebbinghaus decay weight, appends it to the Merkle audit tree, converts it to a vector embedding, and writes it to PostgreSQL — all in a single API call.
Recall what's relevant
Ask Kyros for context before your agent responds. It returns only the most relevant, highest-weight memories — no noise, no stale data.
HNSW approximate nearest-neighbor search finds semantically similar records. Results are reranked by cosine_similarity × retention_weight, filtered by your min_weight threshold.
Agent responds with context
Inject the retrieved memories into your LLM prompt. Your agent now responds as if it remembers everything — because it does.
Retrieved memories are returned as structured JSON with content, hash, weight, and tags. Inject directly into your system prompt or use our context builder helper.
Connect memory to Cursor, Cline, Windsurf, Antigravity, and more
Kyros ships with a built-in Model Context Protocol (MCP) server. Run a single command to register Kyros as a local workspace toolset, allowing your agentic IDE to recall context across development cycles.
- Zero external dependencies
- Exposes remember, recall, and store_fact tools
- Works via stdio JSON-RPC channels
1-Line Framework Integrations
Kyros works with any LLM provider — OpenAI, Anthropic Claude, Google Gemini, Mistral, or local models via Ollama. Just plug in the memory layer.
Intercept LLM payloads without writing code
Integrate Kyros with legacy platforms that do not support custom memory SDKs. Point your OpenAI, Gemini, or Mistral client base_url directly to the Kyros proxy endpoint. Kyros automatically queries active memory, injects context into the prompts, and hashes the turn before routing to the provider.
Standard Payload
{
"model": "gpt-4",
"messages": [
{
"role": "user",
"content": "Generate review"
}
]
}Intercepted Payload
{
"model": "gpt-4",
"messages": [
{
"role": "system",
"content": "[Memory context:
User prefers strict typing]"
},
{
"role": "user",
"content": "Generate review"
}
]
}System Specifications & Features
Every layer of Kyros is engineered for production-grade reliability, security, and extensibility.
Three Biological Memory Modules
ArchitectureEpisodic (time-ordered conversation logs), semantic (subject–predicate–object fact triples), and procedural (workflow state machines) subsystems share a unified REST API and storage backend.
Ebbinghaus Temporal Decay Engine
Memory ScienceMemory relevance scores decay over time using configurable half-life parameters per memory type. Prevents context window bloat and keeps recalls focused on recent, high-confidence data.
SHA-256 Merkle Integrity Auditing
SecurityEvery memory write is hashed into an append-only Merkle chain. Tampering, injection attacks, and data corruption are detected instantly through root comparison and subtree validation.
Adaptive Belief Propagation Graph
ReasoningWhen contradictory facts are stored, Kyros propagates confidence score adjustments through the semantic graph using breadth-first traversal, resolving conflicts automatically.
Causal Relationship Chain Tracking
ExplainabilityParent–child links between memory nodes allow agents to trace the exact chain of reasoning that led to a conclusion, enabling transparent and auditable AI decision-making.
Zero-Code LLM Proxy Interception
IntegrationPoint any LLM client's base_url at the Kyros proxy endpoint. Kyros automatically intercepts the request, injects relevant memory context into the system prompt, and routes to your provider.