<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/spring-ai-automemorytools-vpr6yuiaq" -->

---
title: Spring AI AutoMemoryTools | daily.dev
description: Spring AI AutoMemoryTools is a Spring AI Community library that gives AI agents persistent, file-based long-term memory beyond conversation history. It...
canonical: https://daily.dev/posts/spring-ai-automemorytools-vpr6yuiaq
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Spring AI AutoMemoryTools | daily.dev
og:description: Spring AI AutoMemoryTools is a Spring AI Community library that gives AI agents persistent, file-based long-term memory beyond conversation history. It...
og:url: https://daily.dev/posts/spring-ai-automemorytools-vpr6yuiaq
og:image: https://api.daily.dev/og/posts/vPR6yuIAQ.png
og:image:alt: Spring AI AutoMemoryTools
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Spring AI AutoMemoryTools

**[Baeldung](https://daily.dev/sources/baeldung)** · 7 min read · 0 upvotes · 0 comments

## Summary

Spring AI AutoMemoryTools is a Spring AI Community library that gives AI agents persistent, file-based long-term memory beyond conversation history. It supports four memory types (User, Feedback, Project, Reference) and exposes six tools (MemoryView, MemoryCreate, MemoryStrReplace, MemoryInsert, MemoryDelete, MemoryRename). The library can be used in three modes: a sandboxed AutoMemoryToolsAdvisor with defaults, a custom sandboxed setup with additional system prompts, or an unrestricted mode using FileSystemTools and ShellTools. A Spring Boot chatbot example demonstrates how the agent persists and recalls information across different conversation sessions using a local Ollama Qwen model.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://feeds.feedblitz.com/~/967131095/0/baeldung>

## Questions this post answers

### How does Spring AI AutoMemoryTools differ from ChatMemory for conversation history?

AutoMemoryTools implements BaseChatMemoryAdvisor like MessageChatMemoryAdvisor, but instead of storing conversation turns it persists long-term facts as Markdown files covering user identity, feedback preferences, project context, and references to external systems. ChatMemory and RAG handle conversation and external knowledge lookup respectively, while AutoMemoryTools answers what an agent should permanently remember about a user or project.

_Developers designing agent memory architectures can compare these advisor patterns on daily.dev._

### What are the six tools provided by Spring AI AutoMemoryTools for managing memory files?

The six tools are MemoryView (reads or lists memory files), MemoryCreate (creates a new memory file), MemoryStrReplace (replaces exact text in an existing file), MemoryInsert (inserts content at a location), MemoryDelete (removes a file or directory), and MemoryRename (renames or relocates a file while preserving contents). These operate within a sandboxed memory directory by default.

_Anyone wiring tool-calling agents can track library capabilities like these via daily.dev._

### What Maven dependency versions are needed to use Spring AI AutoMemoryTools with OpenAI models?

Add spring-ai-starter-model-openai version 2.0.0 and spring-ai-agent-utils version 0.10.0 as Maven dependencies. The first integrates any OpenAI-compatible API with Spring AI, while the second contains the AutoMemoryTools classes such as AutoMemoryToolsAdvisor and AutoMemoryTools.

_Java developers pinning Spring AI dependency versions can follow ecosystem updates on daily.dev._

## Similar posts on daily.dev

- [Spring AI : Chat Memory](https://daily.dev/posts/spring-ai-chat-memory-efyzhftcv) · SivaLabs · 2 upvotes · 0 comments
- [Building an AI-Powered Operations Assistant with Spring AI and MongoDB Atlas — Part 2: Conversational Memory](https://daily.dev/posts/building-an-ai-powered-operations-assistant-with-spring-ai-and-mongodb-atlas-part-2-conversationa-zq3na1mno) · Foojay.io · 0 upvotes · 0 comments
- [I added this open-source tool to my local AI stack, and my local LLM finally has persistent memory](https://daily.dev/posts/i-added-this-open-source-tool-to-my-local-ai-stack-and-my-local-llm-finally-has-persistent-memory-bnkzpwkve) · XDA Developers · 0 upvotes · 0 comments
- [Spring AI Agentic Patterns \(Part 3\): Why Your AI Agent Forgets Tasks \(And How to Fix It\)](https://daily.dev/posts/spring-ai-agentic-patterns-part-3-why-your-ai-agent-forgets-tasks-and-how-to-fix-it--guhvpnwb4) · Spring · 1 upvotes · 0 comments

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents), [#java](https://daily.dev/tags/java), [#spring-boot](https://daily.dev/tags/spring-boot), [#spring-ai](https://daily.dev/tags/spring-ai)

[View this post on daily.dev](https://daily.dev/posts/spring-ai-automemorytools-vpr6yuiaq)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Spring AI AutoMemoryTools","url":"https://daily.dev/posts/spring-ai-automemorytools-vpr6yuiaq","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/spring-ai-automemorytools-vpr6yuiaq"},"datePublished":"2026-08-07T03:36:28.782Z","dateModified":"2026-09-14T06:05:03.781Z","description":"Spring AI AutoMemoryTools is a Spring AI Community library that gives AI agents persistent, file-based long-term memory beyond conversation history. It...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/0aef58ddf52c2c440b51fefe6f0b7baa?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/0aef58ddf52c2c440b51fefe6f0b7baa?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Baeldung","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Baeldung","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/52cccfb454d946c4b7dfa5e816f9e576","url":"https://daily.dev/sources/baeldung"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/spring-ai-automemorytools-vpr6yuiaq","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ai-agents,java,spring-boot,spring-ai","timeRequired":"PT7M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Baeldung","item":"https://daily.dev/sources/baeldung"},{"@type":"ListItem","position":3,"name":"Spring AI AutoMemoryTools"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/spring-ai-automemorytools-vpr6yuiaq#faq","mainEntity":[{"@type":"Question","name":"How does Spring AI AutoMemoryTools differ from ChatMemory for conversation history?","acceptedAnswer":{"@type":"Answer","text":"AutoMemoryTools implements BaseChatMemoryAdvisor like MessageChatMemoryAdvisor, but instead of storing conversation turns it persists long-term facts as Markdown files covering user identity, feedback preferences, project context, and references to external systems. ChatMemory and RAG handle conversation and external knowledge lookup respectively, while AutoMemoryTools answers what an agent should permanently remember about a user or project. Developers designing agent memory architectures can compare these advisor patterns on daily.dev."}},{"@type":"Question","name":"What are the six tools provided by Spring AI AutoMemoryTools for managing memory files?","acceptedAnswer":{"@type":"Answer","text":"The six tools are MemoryView (reads or lists memory files), MemoryCreate (creates a new memory file), MemoryStrReplace (replaces exact text in an existing file), MemoryInsert (inserts content at a location), MemoryDelete (removes a file or directory), and MemoryRename (renames or relocates a file while preserving contents). These operate within a sandboxed memory directory by default. Anyone wiring tool-calling agents can track library capabilities like these via daily.dev."}},{"@type":"Question","name":"What Maven dependency versions are needed to use Spring AI AutoMemoryTools with OpenAI models?","acceptedAnswer":{"@type":"Answer","text":"Add spring-ai-starter-model-openai version 2.0.0 and spring-ai-agent-utils version 0.10.0 as Maven dependencies. The first integrates any OpenAI-compatible API with Spring AI, while the second contains the AutoMemoryTools classes such as AutoMemoryToolsAdvisor and AutoMemoryTools. Java developers pinning Spring AI dependency versions can follow ecosystem updates on daily.dev."}}]}
```

