What if your AI agent could remember not just the current conversation, but facts about users across sessions? A few months ago, I built a custom three-tier memory system with PostgreSQL, Testcontainers, and AI-powered summarization. It worked, but required significant code and infrastructure.
Now there’s a simpler way. The Spring AI Amazon Bedrock AgentCore starter I’ve been contributing to integrates with Amazon Bedrock AgentCore Memory - a fully managed service that handles both short-term conversation history and long-term knowledge extraction for you.
In this post, I’ll show you how to build an AI agent with persistent memory in under 50 lines of Java using JBang - no Maven project setup required. Your agent will remember previous messages and automatically extract facts from conversations - all without managing a database.













