Skip to content
@yantrikos

yantrikos

Cognitive memory infrastructure for AI agents — consolidation, contradiction detection, and temporal decay instead of just vector retrieval.

YantrikDB Memory Mechanism logo

YantrikDB

Memory that just works.

Open-source cognitive memory for AI agents. Local when you want it, shared when you need it.

Website · Quick start · MCP setup · Benchmarks · Discussions

Your agent does not need another place to dump text. It needs memory that can notice when facts changed, explain why something was recalled, keep tenants and workspaces isolated, and remain useful after thousands of writes.

YantrikDB manages that full lifecycle: hybrid recall, temporal decay, consolidation, contradiction tracking, entities and relations, provenance, procedural memory, skills, and explicit maintenance. The core is Rust and the same engine runs embedded, behind MCP, or as a replicated network database.

Get an agent remembering in 60 seconds

pip install yantrikdb-mcp

For Codex:

codex mcp add yantrikdb -- yantrikdb-mcp

For Claude Code, Cursor, Windsurf, and other MCP clients:

{
  "mcpServers": {
    "yantrikdb": {
      "command": "yantrikdb-mcp"
    }
  }
}

No cloud account is required. The default store is a local SQLite file and the bundled embedder works without an external model service.

Pick the shape that fits

Run mode Start here Best for
Embedded pip install yantrikdb or cargo add yantrikdb One application owning its memory in-process
MCP pip install yantrikdb-mcp Giving an existing coding agent memory across sessions
Network docker pull ghcr.io/yantrikos/yantrikdb Shared memory, authenticated tenants, replication, and failover

What makes it cognitive

  • Memory can be wrong. Contradictory structured claims remain visible and disputed until an operator resolves them.
  • Memory changes with time. Recall supports decay, first-mention ordering, revision history, temporal ranges, and point-in-time queries.
  • Recall is inspectable. Results include scores and retrieval reasons instead of asking you to trust an opaque top-k list.
  • Structure survives sessions. Entities, typed relations, tasks, procedures, triggers, conversations, and skill outcomes live beside semantic memory.
  • Isolation is a primitive. Namespaces scope records and cognitive state; the network server adds authenticated tenant databases.
  • The deployment path is real. Start with one local file, then move to a server or YRP-replicated cluster without replacing the memory model.

The ecosystem

Project Role
yantrikdb Apache-2.0 Rust engine and Python bindings
yantrikdb-mcp Drop-in MCP server and portable Agent Skill
yantrikdb-server Authenticated HTTP and wire APIs, tenancy, replication, and operations
yantrikdb-hermes-plugin Self-maintaining memory provider for Hermes Agent
openclaw-memory-yantrikdb Conflict-aware OpenClaw memory-slot plugin
langchain-yantrikdb LangChain VectorStore and ChatMessageHistory integration
yantrikdb-client Typed Python client for the network server
yantrikdb-web Documentation, live browser Memory Lab, and reproducible showcases

Experimental work lives in yantrik-mind. It explores what a companion can become when typed beliefs, reflection, delegation, and safety all share the same durable substrate.

Inspect the evidence

We publish the awkward results as well as the wins. The benchmark pages include commands, fixtures, caveats, and corrections so claims can be rerun rather than repeated.

Build with us

Use Discussions for architecture and product questions. File engine issues in yantrikdb, MCP issues in yantrikdb-mcp, and server or cluster issues in yantrikdb-server.

The useful feedback is concrete: a memory your agent should have recalled, a stale fact it should have downgraded, a conflict it failed to surface, or a workflow that still takes too much ceremony.

Pinned Loading

  1. yantrikdb-server yantrikdb-server Public

    Cognitive memory database for AI agents — consolidates duplicates, detects contradictions, fades stale memories via temporal decay. Rust, Apache-2.0, ships as library / MCP server / HTTP cluster.

    Rust 172 11

  2. yantrikdb-mcp yantrikdb-mcp Public

    Persistent cognitive memory for AI agents — drop-in MCP server for Claude Code, Cursor, Windsurf. Temporal decay, contradiction detection, knowledge graph, autonomous consolidation. Backed by the Y…

    Python 24 7

  3. tier tier Public

    A 1.5B model shown all 80 tools picks the right one half the time — not because it can't call tools, but because it can't find them. Tier adapts the tool presentation to model size: +10pp accuracy …

    Python 14 1

  4. yantrikdb yantrikdb Public

    Cognitive memory engine for AI agents — temporal decay, contradiction detection, autonomous consolidation, knowledge graph, ANN recall via HNSW. Embeddable Rust library with Python bindings; powers…

    Rust 56 16

  5. yantrikdb-hermes-plugin yantrikdb-hermes-plugin Public

    YantrikDB memory provider for NousResearch/hermes-agent — self-maintaining memory with benchmarked recall, self-tuning ranking, contradiction tracking, proactive hygiene, and explainable recall.

    Python 84 10

  6. yantrik-os yantrik-os Public

    Yantrik OS — personal AI companion platform

    Rust 2 5

Repositories

Showing 10 of 26 repositories

Top languages

Loading…

Most used topics

Loading…