---
title: "Discussion on \"Add long-term memory to a Mastra agent (input/output processors, per-user recall)\" | Hashnode"
description: "Discussion on \"Add long-term memory to a Mastra agent (input/output processors, per-user recall)\". Mastra's Memory keeps threads and message history. Here's how to add per-user facts that follow a user across threads, using Mastra's native processor pipeline, plus five memory tools."
url: "https://hashnode.com/posts/mastra-agent-long-term-memory-processors/6adcd7dda32ffd6842d305bd"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Add long-term memory to a Mastra agent (input/output processors, per-user recall)](https://memorysync.hashnode.dev/mastra-agent-long-term-memory-processors?utm_source=hashnode&utm_medium=feed)

Mastra's Memory keeps threads and message history. Here's how to add per-user facts that follow a user across threads, using Mastra's native processor pipeline, plus five memory tools.

Oct 24 · 7 min read · memorysync.hashnode.dev  
Read the article

-   [#ai](https://hashnode.com/tag/ai)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#mastra](https://hashnode.com/tag/mastra)
-   [#agents](https://hashnode.com/tag/agents)
-   [#llm](https://hashnode.com/tag/llm)

## Written by

[MemorySync](https://hashnode.com/@memorysync)

@memorysync · San Francisco, USA

  
[View profile](https://hashnode.com/@memorysync)

Building MemorySync (memorysync.io) — persistent memory infrastructure for AI agents, Cursor, and Claude Code.

Building MemorySync (memorysync.io) — persistent memory infrastructure for AI agents, Cursor, and Claude Code.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
