Eidentic logo

Eidentic

The TypeScript SDK for AI agents with self-improving memory

2026-06-16

Product Introduction

  1. Definition: Eidentic is an open-source (Apache-2.0 licensed) TypeScript SDK and runtime for building AI agents with a sophisticated, self-improving memory system. It is a full-stack library for agent orchestration that includes a temporal knowledge graph, durable execution, cost control, and security features.
  2. Core Value Proposition: Eidentic provides AI agents with a persistent, temporal memory that improves over sessions, eliminating the need for manual prompt engineering or external memory tools. It bundles production essentials—like durable runs, enforced cost ceilings, and built-in evaluation—into a single, composable package for TypeScript developers, enabling the deployment of reliable, cost-effective AI agents on Node.js, Bun, Deno, or edge runtimes.

Main Features

  1. Four-Tier Self-Improving Memory Engine: This is the core innovation, moving beyond simple vector recall. It operates as a temporal knowledge graph where facts carry timestamps and validity periods.
    • How it works: New information invalidates or refines old facts instead of overwriting them, allowing the agent to reason about what was true at a specific point in time. Memory blocks can be self-edited by the agent, and facts are passively extracted from every interaction. Between sessions, a "sleep-time consolidation" process organizes and strengthens knowledge, reducing prompt size while increasing accuracy. This system achieved a 55.2% accuracy score on the LongMemEval benchmark, significantly outperforming a full-context baseline of 41.0% while using up to 39× fewer tokens per query.
  2. Durable Execution & Cost Ceilings: Engineered for production resilience and predictable spending.
    • How it works: Agent runs are checkpointed, allowing them to be suspended (e.g., for human-in-the-loop approval) and resumed later, even on a different machine, with exactly-once tool dispatch guarantees. Developers can set a strict dollar limit for an agent run; the SDK enforces this cap at the per-turn level, providing real-time token and cost visibility as the response streams, preventing runaway costs.
  3. Integrated Security, Interop, and Evaluation: Provides a secure, interoperable, and testable framework out of the box.
    • How it works: Features include deny-by-default permissions, sandboxed code execution, and a one-call GDPR erasure function for compliance. It supports multi-agent delegation (spawn_agent) with shared budgets, acts as both an MCP (Model Context Protocol) host and server with OAuth, and supports Google's A2A protocol. A built-in evaluation harness integrates with CI pipelines, offering a pass-rate gate and the ability to promote a production trace directly into a regression test with a single call.

Problems Solved

  1. Pain Point: Traditional AI agents lack persistent, evolving memory, forcing developers to manage context stuffing (leading to high token costs and degraded performance) or bolt on fragmented, paid memory solutions. Productionizing agents is complex, with no unified tooling for durability, cost control, or compliance.
  2. Target Audience: TypeScript/JavaScript developers, DevOps engineers, and technical teams building and deploying AI-powered applications, particularly long-running conversational agents, customer support bots, or autonomous workflow systems that require context across sessions.
  3. Use Cases: Building a customer support agent that remembers a user's subscription history and past issues across months; developing a long-running research assistant that tracks evolving project goals and previous conclusions; deploying serverless AI functions on the edge with durable state and strict cost controls; implementing GDPR-compliant user data handling within AI agent pipelines.

Unique Advantages

  1. Differentiation: Unlike fragmented stacks where memory, orchestration, and deployment tools are separate (often with enterprise paywalls), Eidentic offers a unified, Apache-2.0 licensed package. It is not a Python sidecar or a generic wrapper; it is a native TypeScript solution with first-class types, React hooks, and Next.js integration. Compared to brute-force "stuff everything in the context window" approaches, its retrieval-based memory is dramatically more token-efficient for large histories, as demonstrated in benchmarks.
  2. Key Innovation: The temporal knowledge graph for agent memory is the key innovation. This system doesn't just store facts; it understands their temporal relationships and validity, allowing for nuanced recall like "What did we decide last week?" versus "What is the current team plan?" This, combined with the composable, adapter-based architecture (swap SQLite for Postgres or Qdrant without changing agent code), provides a flexible yet powerful foundation for production AI.

Frequently Asked Questions (FAQ)

  1. What makes Eidentic's memory different from using a vector database like Pinecone or Qdrant directly? Eidentic's memory is not just a vector store; it is a temporal knowledge graph with self-editing and consolidation logic. It understands time, resolves contradictions automatically, and extracts knowledge passively, reducing ingestion code. Vector databases are supported as adapters, but the memory layer adds crucial reasoning capabilities on top of them.
  2. Is Eidentic suitable for large-scale production deployments or only for prototyping? It is explicitly designed for production. Features like durable checkpointing, enforced cost ceilings, a CI evaluation harness, and security primitives (sandboxing, GDPR erasure) are built-in from the start, not added as afterthoughts. Its performance on the LongMemEval benchmark and its adapter-based architecture for production stores (Postgres, libSQL/Turso) demonstrate its readiness for scalable deployment.
  3. How does the enforced cost ceiling work technically? Before each model call, the agent checks its accumulated spend against the configured cap. If the limit would be exceeded, the run is halted gracefully. Per-turn token usage and costs are tracked and streamed in real-time, providing full visibility without relying on post-hoc analysis.
  4. Can I use Eidentic with models from OpenAI, Anthropic, and others? Yes, Eidentic is model-agnostic through its AIModel abstraction. The quickstart and documentation show direct integration with the Vercel AI SDK providers for Anthropic, OpenAI, Google, and Mistral, allowing you to bring your preferred model without changing the agent's core logic.
  5. What does the "sleep-time consolidation" process entail? Between active sessions, Eidentic can run a background process that analyzes recent interactions, integrates new facts into the existing temporal knowledge graph, prunes redundant information, and strengthens important connections. This "dreaming" phase improves recall accuracy for future queries without growing the context size for each new interaction.

Submit to 240+ Directories with 1-Click

Maximize your product's SEO and drive massive traffic by automatically submitting it to over 240 curated startup directories using DirSubmit.

Subscribe to Our Newsletter

Get weekly curated tool recommendations and stay updated with the latest product news