---
title: "Discussion on \"Add persistent memory to a LlamaIndex agent (Memory, memory blocks and a retriever)\" | Hashnode"
description: "Discussion on \"Add persistent memory to a LlamaIndex agent (Memory, memory blocks and a retriever)\". Disclosure: I'm Mohammed, founder of MemorySync. I drafted this article with AI assistance and reviewed it for accuracy against the official MemorySync and LlamaIndex docs. The code is adapted from th"
url: "https://hashnode.com/posts/llamaindex-agent-persistent-memory/6adb87684854b822eedc70c9"
---

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

Discussion

# [Add persistent memory to a LlamaIndex agent (Memory, memory blocks and a retriever)](https://memorysync.hashnode.dev/llamaindex-agent-persistent-memory?utm_source=hashnode&utm_medium=feed)

Disclosure: I'm Mohammed, founder of MemorySync. I drafted this article with AI assistance and reviewed it for accuracy against the official MemorySync and LlamaIndex docs. The code is adapted from th

Oct 23 · 6 min read · memorysync.hashnode.dev  
Updated Oct 24  
Read the article

-   [#ai](https://hashnode.com/tag/ai)
-   [#python](https://hashnode.com/tag/python)
-   [#llamaindex](https://hashnode.com/tag/llamaindex)
-   [#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.
