Skip to main content

Mastra Local

Agent index: llms.txt

AtomicMemory support for Mastra is planned. The adapter will wrap MemoryClient as a Mastra-compatible memory provider for agents that need durable recall across runs.

Planned

This adapter is on the roadmap. The API below is the intended shape, not a shipped package.

What you get

  • Mastra memory adapter. A planned atomicMemory() adapter for Mastra agents.
  • Lifecycle mapping. Mastra memory hooks mapped to AtomicMemory search and ingest.
  • Backend-agnostic SDK path. The adapter will use the AtomicMemory SDK provider registry.

Planned API

APIPurpose
atomicMemory()Mastra memory adapter backed by AtomicMemory.
Lifecycle mappingMastra memory hooks mapped to AtomicMemory search and ingest.
Telemetry envelopeAtomicMemory observability surfaced through Mastra telemetry.

Intended usage

import { Agent } from '@mastra/core';
import { atomicMemory } from '@atomicmemory/mastra';

const agent = new Agent({
name: 'support',
instructions: 'Answer with durable customer context when relevant.',
model,
memory: atomicMemory({
client: memoryClient,
scope: { user: userId, namespace: 'support' },
}),
});

See also