Skip to content

The LibraryField notes on AI agent memory

Evidence-first deep-dives on evaluation, context engineering, and the science of how AI agents remember.

Latest·Sep 2, 2026·8 min read

Best Persistent Memory APIs for AI Agents (2026): Six Questions, Six Systems

Six persistent memory APIs for AI agents compared on the six questions that actually decide fit: memory model, cross-client sharing, outcome feedback, multi-agent sharing, cost, and each vendor's own admitted gap.

Read

Agent Memory

Sep 2, 2026·8 min read

Best Persistent Memory APIs for AI Agents (2026): Six Questions, Six Systems

Six persistent memory APIs for AI agents compared on the six questions that actually decide fit: memory model, cross-client sharing, outcome feedback, multi-agent sharing, cost, and each vendor's own admitted gap.

Aug 26, 2026·4 min read

Hindsight vs Graphiti: Two Answers to the Same Question About Agent Memory

Hindsight and Graphiti answer the same question at different moments: Graphiti at write time with a bi-temporal graph, Hindsight at read time with standing answers. How to choose, and what neither settles.

Aug 22, 2026·11 min read

Memory API Response Shape: Nowhere to Put a Disagreement

A ranked list cannot express supersession, retraction, or authority. Why retrieval flattens conflicts the store holds, and what a response with relations needs.

Aug 16, 2026·20 min read

RAG vs Agent Memory: What the Source Code Actually Shows

At query time a memory layer runs the same hybrid retrieval a RAG stack does, and the shipping source proves it. The difference is on the write path, and it is narrower than the category claims.

Aug 15, 2026·12 min read

Knowledge Graph vs Retrieval for AI Agent Memory

Knowledge graph vs retrieval for AI agent memory: the split that matters is learned vs asserted structure, connected by provenance. Evidence-first guide.

Aug 12, 2026·12 min read

Agent memory: evidence versus policy

Agent memory splits into evidence and policy, not short versus long term: three scopes, the fields each entry needs, and why closing a fact beats replacing it.

Aug 12, 2026·12 min read

Agent memory feedback: the missing signal

Agent memory learns most from explicit feedback, but production agents rarely send it. Measurements show what changes and how to prescribe feedback.

Jul 19, 2026·12 min read

What Is an Agent OS? Six Things the Term Means

Agent OS means six things: a metaphor, academic kernels, a memory pager, a platform, an OS feature, and an inversion. One test tells them apart.

Jul 12, 2026·10 min read

The Missing Layer: No Protocol Says What Agents Know

Agent memory interoperability needs rules for identity, schema, provenance, consistency, and permissions. A2A and MCP do not define them.

Jul 11, 2026·11 min read

AI Introspection: Why a Voice Is Not an Audit

AI introspection is real but unreliable. Chain-of-thought and self-reports cannot replace durable audit records outside the model.

Jul 11, 2026·10 min read

Claude's Global Workspace: Why AI Memory Lives Outside

Anthropic's global workspace research reveals Claude's transient working memory, and why AI agent memory must persist outside the model.

Jul 7, 2026·14 min read

Knowledge-Graph Memory for AI Agents

Knowledge-graph memory reframes agent memory from transcript to navigable substrate — GraphRAG, temporal graphs, PPR, and why it shouldn't rewrite itself.

Jun 23, 2026·11 min read

AI Agent Memory: What It Is

AI agent memory explained: what it is, how it works, the approach families, how it is evaluated, and how to choose a real memory layer.

Jun 19, 2026·10 min read

The A2A Agent Card: How Agents Discover Each Other

What an A2A Agent Card is: JSON at a well-known URL describing an agent's skills, endpoint, and auth — fetched to discover and call it.

Jun 19, 2026·12 min read

A2A Integration How-To (Python)

A2A tutorial for Python: install the SDK, publish an Agent Card, run a server, delegate a task, stream artifacts, and add domain-scoped memory.

Jun 18, 2026·11 min read

A2A Protocol (Agent2Agent), Explained

A2A protocol explained: Agent2Agent primitives, transports, how it complements MCP, and why shared agent memory stays a separate layer.

Jun 18, 2026·8 min read

A2A vs MCP: How They Differ (and Compose)

A2A vs MCP compared: MCP connects agents to tools; A2A connects agents to agents. They compose as complementary layers, not rivals — and leave memory open.

Jun 18, 2026·8 min read

Hebbian memory for AI agents

Hebbian memory for AI agents: how learned associations, automatic query expansion, and outcome feedback differ from static vector database similarity retrieval.

Jun 18, 2026·8 min read

Is Mnemoverse a vector database?

Is Mnemoverse a vector database? No. A vector DB does static similarity retrieval; Mnemoverse adds learning, recency, and consolidation on top.

Jun 18, 2026·7 min read

Rescorla-Wagner for agent memory

Rescorla-Wagner for agent memory: how prediction-error outcome feedback updates valence and improves recall in Mnemoverse.

Jun 18, 2026·9 min read

Shared Memory for Multi-Agent Systems

Shared memory for AI agents needs explicit domains, isolation, and hierarchical reads. Protocols coordinate work; memory preserves context.

Secrets & Trust

Jul 13, 2026·9 min read

Shared Memory Poisoning: One Bad Write, Many Agents

Shared memory poisoning can expose many agents to one bad write. Use a three-trust matrix and consumer-side hygiene to limit the risk.

Jul 6, 2026·18 min read

How Do Two AI Agents Trust Each Other?

Agent-to-agent trust is a 4-layer stack borrowed from web auth (signed cards, OAuth/mTLS, token exchange) — and the injection gap none of it closes.

Jul 6, 2026·17 min read

Least Privilege for AI Agents

Least privilege bounds what a tricked AI agent can do — not whether it's tricked: authz policy, JIT tokens, and the confused-deputy ceiling it can't cross.

Jul 6, 2026·12 min read

Prompt Injection Is a Credential-Exfiltration Attack

Prompt injection is a 3-stage credential kill chain: injection lands, the agent reads a secret, it leaves via an allowed channel. Three defenses matter.

Jul 5, 2026·11 min read

The Trust-Model Spectrum for AI Agent Secrets

Six rungs of protecting an AI agent's secret, weakest to strongest—each defeats a different threat, but none stops a tricked agent misusing what it unlocks.

Jul 4, 2026·14 min read

Credential the LLM Never Sees for MCP Tools

Credential the LLM never sees: resolve secrets below the model, inject them on the wire, and account for MCP, logs, and confused deputies.

Jul 4, 2026·14 min read

Memory Poisoning: The Patient Path to Your API Keys

A poisoned AI agent memory can wait weeks, then leak an API key. Persistence and key-theft are each demonstrated; chaining them isn't—yet. Here's the fix.

Jun 29, 2026·11 min read

AI Agent Secrets: Why the Nagging Won't Save You

AI agents warn about API keys because the risk is real. But warning after a secret enters context is not protection.

Memory Science

Aug 31, 2026·4 min read

Why Your AI Agent Repeats the Same Mistakes

AI coding agents repeat corrected mistakes because nothing records whether past suggestions worked. Outcome memory attaches results to recalled facts.

Aug 31, 2026·3 min read

Stale Memory Is Worse Than No Memory

Vector stores return deprecated APIs and dead conventions forever. Closing, decay, and suppression keep agent memory current without destroying history.

Aug 16, 2026·12 min read

Attention as a Hopfield Network

Transformer attention is equivalent to one update step of a modern Hopfield network under specific query, key, value substitutions.

Jul 19, 2026·17 min read

Memory, From DRAM to Agents: One Word, Twelve Worlds

Types of memory in computing, mapped from DRAM and virtual memory to KV caches, model weights, context windows, and persistent agent memory.

Jul 19, 2026·14 min read

Transactive Memory: Who Remembers What in a Team

Transactive memory divides the labor of remembering across a group — a directory of who knows what — mapped, with its limits, to multi-agent AI memory.

Jul 11, 2026·11 min read

Why Agent Memory Needs Sleep

Agent memory consolidation turns raw writes into reusable structure between uses — what works, what ships, and what remains unproven.

Jun 16, 2026·14 min read

Multimodal Memory Integration: Cross-Modal Binding in AI

Multimodal memory integration binds text, image, and audio into one representation. A sourced guide to binding: TPR, VSA/HDC, SDM, and Hopfield networks.

Jun 16, 2026·13 min read

Self-Organizing Memory: ART, SOM & Growing Neural Gas

Self-organizing memory systems explained: Adaptive Resonance Theory, Self-Organizing Maps, and Growing Neural Gas, including GNG-U utility-based pruning.

Jun 10, 2026·8 min read

Episodic vs Semantic Memory: Tulving for AI Agents

Tulving's episodic vs semantic split is a design decision for AI agents: an event log beside a fact store, plus a step deciding when episodes become facts.

Jun 8, 2026·11 min read

Types of Memory: Why So Many Names?

Memory has dozens of named kinds because no one has drawn its boundary. A guided tour of the list, the reasons it grew, and why the seams never close.

Jun 8, 2026·13 min read

Schema Formation: How Memory Builds Reusable Structure

Schema theory explains how memory turns episodes into reusable structure. For AI agent memory, it clarifies why episodes and consolidation should stay separate.

Jun 8, 2026·15 min read

Working Memory: Capacity, Models, and AI Context

Working memory is the bounded active workspace of cognition; its capacity debate (Miller's 7 vs Cowan's 4) and models map onto AI context-window design.

Jun 7, 2026·6 min read

Bernard Widrow: From the LMS Rule to Cognitive Memory

Bernard Widrow's 1960 LMS delta rule taught machines to learn and still runs in adaptive filtering; late in life he turned to content-addressable memory.

Jun 7, 2026·6 min read

Geoffrey Hinton: The Boltzmann Machine and Generative Memory

Geoffrey Hinton's 1985 Boltzmann machine made memory generative: a stochastic, energy-based network with hidden units that learns a distribution and samples it.

Jun 7, 2026·6 min read

Jeff Hawkins: Memory Exists to Predict

Jeff Hawkins argues the brain is a memory system for prediction; Hierarchical Temporal Memory uses sparse representations, sequences, and continual learning.

Jun 6, 2026·9 min read

Hopfield Networks: The Memory Model That Became Attention

Hopfield's 1982 PNAS associative memory, the 0.138N capacity limit (Amit, Gutfreund, Sompolinsky, 1985), and how attention became one read from it.

Benchmark Wars

Aug 17, 2026·10 min read

BLEU vs ROUGE vs F1 vs SARI: Pick the Right Metric

BLEU, ROUGE, F1, accuracy, and SARI explained by metric question, Evaluate I/O shape, failure mode, and routing.

Jul 12, 2026·10 min read

Can You Trust an LLM Judge? A Field Manual

LLM-as-judge reliability explained: assess position bias, verbosity, self-preference, rubrics, retrieval recall, and benchmark comparability.

Jun 23, 2026·17 min read

AI Memory Benchmarks: A Field Guide

A map of how AI-agent memory is actually measured — LoCoMo, LongMemEval, BEAM, long-context tests — what each checks, what it misses, and which to trust.

Jun 23, 2026·13 min read

LLM-as-Judge Variance in AI Memory Benchmarks

Swap only the grading prompt on the same answers and an AI-memory benchmark score moves ~40 points — you can't trust a leaderboard without the recipe.

Jun 7, 2026·10 min read

DeepEval: Pytest for LLMs — G-Eval, DAG & RAG Triad

DeepEval turns LLM evals into pytest tests that fail CI builds. 50+ metrics, but most are LLM-as-a-judge (G-Eval: 0.514 vs humans) — DAG adds determinism.

Jun 7, 2026·6 min read

Hugging Face Evaluate Library: load(), compute() Guide

Practical Hugging Face evaluate docs: evaluate.load() + compute(predictions, references), the BLEU list-of-lists trap, and no information_retrieval metric.

Jun 6, 2026·15 min read

How to Evaluate AI Agent Memory

How to evaluate AI agent memory: the framework, the dimensions, a benchmark map (LoCoMo, LongMemEval, BEAM), and why latency and cost are co-equal axes.

Jun 5, 2026·13 min read

LLM-as-a-Judge: Bias, Leniency & the LoCoMo Number

LLM-as-a-judge leniency and bias explained: how a "be generous" grader, MT-Bench failures, and the LoCoMo judge shape the memory-benchmark numbers vendors cite

Jun 4, 2026·9 min read

LangChain & LangSmith Evaluation: The Memory Blind Spot

LangChain/LangSmith evaluation explained: datasets, LLM-as-judge biases, the eval tool landscape, and the blind spot none cover — whether your agent remembers.

Context Builder & Orchestration

Aug 25, 2026·18 min read

AGENTS.md: What Supported Actually Means, Tool by Tool

The format has no required fields and one sentence about precedence. Seven tools that list themselves as supporting it describe seven different mechanisms, and one of them says outright that a closer file overrides an earlier one because it comes later in the combined prompt.

Aug 25, 2026·10 min read

CLAUDE.md, AGENTS.md and Cursor Rules Do Not Enforce

A rules file is text placed in a context window. All three vendors say so on their own pages, in their own words. What delivers a rule, what the wrapper around it says, and what does enforce, because something does.

Aug 23, 2026·12 min read

What Is an MCP Memory Server? Protocol, Tools, Tokens

MCP standardises how a client discovers a tool, calls it, and reads the answer. It does not standardise memory. Walking the whole path with the specification and the public reference server open.

Aug 16, 2026·14 min read

What Breaks Prompt Caching: The Stable Prefix Contract

How prompt cache keys are derived across Anthropic, OpenAI, Gemini, vLLM, and SGLang, and the six agent mistakes that silently break the stable prefix.

Jul 21, 2026·24 min read

13 Memory MCP Servers Compared (2026): Local-First or Hosted

Thirteen memory MCP servers across knowledge-graph, vector, Markdown and SQL storage, with pricing, maintenance reality, and the local-first vs hosted decision.

Jul 21, 2026·8 min read

Stateless MCP: Where Agent Memory Lives Now

The final MCP 2026-07-28 specification removes protocol sessions, the Mcp-Session-Id header, and the handshake. Durable agent memory remains external.

Jun 19, 2026·11 min read

Context Budgeting: Zones, Allocation & Eviction

Context budgeting allocates finite agent tokens across system, tools, retrieval, history, outputs, and response buffer.

Jun 19, 2026·13 min read

Context Optimizer: Cache, Budget & Placement

Context optimization for AI agents unifies KV-cache hit rate, prefix stability, token budget, latency, cost, and placement into one runtime decision.

Jun 18, 2026·8 min read

Context Compiler vs Orchestration

Where flow control ends and window assembly begins: the boundary between orchestrator and context compiler in LLM agent systems.

Jun 18, 2026·12 min read

Deterministic vs LLM Context Assembly

Deterministic context assembly improves cacheability and auditability; LLM-directed assembly adds adaptivity. Most agent systems need both.

Jun 16, 2026·15 min read

Context Engineering Needs a Compiler

Context engineering is the discipline. The context compiler is the per-turn runtime layer that ranks, budgets, secures, and assembles each model call.

Jun 15, 2026·10 min read

Memory MCP: How to Give AI Agents Persistent Memory

Memory MCP servers explained: what they are, how to choose one by where data lives and what it does, and how to install so an agent remembers across sessions.

Jun 10, 2026·10 min read

Federated MCP: How MCP Federation Works in 2026

MCP federation in 2026: what gateways and the June 2025 spec solved for running multiple MCP servers, and which problems, like auth propagation, remain open.

Jun 6, 2026·19 min read

Prompt-Cache Keys: Stable Prefix, KV-Cache Hit Rate

How prompt-cache keys are canonicalized, why a stable prefix decides your KV-cache hit rate, and what each provider actually discounts on a cache read.

World Representation

Aug 3, 2026·23 min read

Agent Memory Deduplication: The Missing Error Rate

Six agent-memory systems, read at pinned commits: hardcoded similarity thresholds, no published error rate, and no way to undo a merge.

Aug 2, 2026·14 min read

Is Memory Hyperbolic? What Neuroscience Shows

Is memory hyperbolic? Cognitive maps are real, but one narrow CA1 result and indirect odor evidence do not establish a universal memory geometry.

Jul 26, 2026·8 min read

The Independence Illusion: When AI Agents Agree

AI agent consensus can be weak evidence when agents share models, sources, prompts, or memory. Count independent provenance chains instead.

Jul 25, 2026·8 min read

Who Wins When Agents Disagree? The Authority Problem

When voting, reputation, and consensus can fail for multi-agent memory — and the published alternatives: outcomes, meta-knowledge, independence, reasons.

Jul 23, 2026·9 min read

Bitemporal Memory for AI Agents: The Missing Axis

Bitemporal memory tracks valid time and transaction time — settled engineering. One reviewed agent system ships it; none of seven benchmarks tests it.

Jul 23, 2026·8 min read

Provenance in Agent Memory: The Missing Who

Provenance in agent memory is who asserted a fact, on what evidence, by what derivation. Timestamps keep the when and drop the who — what to record instead.

Jul 11, 2026·12 min read

Graph Memory MCP Servers: What Agents Actually Get

Graph memory MCP comparison of Graphiti, Cognee, Neo4j, and server-memory across traversal, temporal support, provenance, and STOP gaps.

Jul 11, 2026·10 min read

The GraphRAG Tax: When a Knowledge Graph Doesn't Pay

GraphRAG vs RAG decision guide: when a knowledge graph's build, query, and latency cost pays off for multi-hop retrieval — and when it doesn't.

Jul 10, 2026·13 min read

How AI Agents Navigate Knowledge Graphs

AI agent knowledge graph traversal depends on navigation policy, read-side tools, resolution, provenance, and stopping budget — not just graph size.

Jun 22, 2026·11 min read

Hypergraph vs Hyperbolic Graph for AI Memory

Hypergraph vs hyperbolic graph for AI memory: one grows the edge to many vertices (n-ary); the other curves the space for hierarchy. Where Mnemoverse bets.

Apr 6, 2026·11 min read

Building Memory That Scales

Building memory that scales: a memory engine from 0.116 to 0.862 on LoCoMo over seven versions, quality held at 14x growth, with a 3D graph to watch it grow.

Light Reading

Sep 1, 2026·6 min read

Best AI Agent Memory in 2026: A Decision Map, Not a Ranking

What is the best AI agent memory in 2026? A decision map across Mem0, Zep, Letta, Cognee, Supermemory, LangMem, and Mnemoverse, with the vendor position flagged up front.

Jul 21, 2026·18 min read

Mem0 vs Zep vs Letta vs Cognee vs Supermemory (Q3 2026)

AI agent memory compared for anyone weighing Mem0 alternatives: integration posture, self-host reality, temporal handling, and what benchmark scores hide.

Jul 11, 2026·9 min read

Ontology vs Schema vs Topology: One Idea, Many Dialects

Ontology vs schema vs topology: one shared commitment, five different contracts, and what missing data means — false, unknown, or forbidden.

Jun 29, 2026·2 min read

Workflow Intelligence Ships as a Primitive

OpenAI's Record & Replay for Codex and Anthropic's composable skills arrived the same week. Two stacks, one shift: encoding how work is done and making the procedure callable. The ownership question follows.

Jun 22, 2026·1 min read

Memory Is Becoming a Procurement Decision

Cursor's valuation, Anthropic's dreaming preview, Google's Memory Bank: different architectures, same shift. Persistent memory has stopped being a research conversation and become a choice builders can no longer defer.

Jun 17, 2026·2 min read

Agent Memory Is Not a Database

Orogat and Mansour name four failure modes of treating agent memory as storage, and propose GEM: four state-level operations instead of record-level CRUD. Why the abstraction, not the engine, is the problem.

Jun 14, 2026·9 min read

AI Agent Memory Crisis: Why Bigger Context Fails

AI agent memory fails three ways: statelessness, context rot, and lost-in-the-middle. Bigger context windows trade one failure for another and add token spend.

Apr 6, 2026·9 min read

AI Agent Memory: The 2026 Landscape

AI memory landscape 2026: how persistent memory became a production discipline — platform features, funded startups, the LoCoMo benchmark, and open problems.

Apr 6, 2026·7 min read

When AI Cites What Doesn't Exist

When AI cites what does not exist: a case study of a recombination hallucination that passed four of five checks, and why persistent memory needs verification.

Apr 4, 2026·13 min read

AI Memory & Context-Management Market: 2025 Update

AI memory market 2025-2026: platform memory from OpenAI, Anthropic, Google, Microsoft, xAI, plus startups, funding rounds, and context-management trends.

Prefer a feed? Subscribe via RSS.