Have you ever started a new conversation with an AI coding assistant and found yourself explaining the same things all over again?
Your coding preferences, project conventions, architecture decisions, debugging discoveries, and even approaches you have already tried?
What if your AI coding assistant could learn from your previous interactions and remember important details for your next session?
That's exactly what Kiro Memory brings to the table!
Recently introduced in Kiro IDE and Kiro CLI, Memory allows Kiro to capture useful context from your development sessions and recall it when needed in future sessions.
In this article, let's explore Kiro Memory, understand how it works, and try it with a practical example.
For this hands-on exercise, I wanted to explore how Kiro Memory could improve my day-to-day development experience.
I use Kiro across multiple projects, particularly when building serverless applications using AWS services, Python, and infrastructure as code.
Over time, I establish preferences and discover project-specific conventions.
For example:
Until now, I would often need to provide this context again when starting a new session.
With Kiro Memory, I wanted to see whether Kiro could learn these details and apply them in subsequent sessions.
Kiro Memory introduces two important capabilities:
1. Learn
While working with Kiro, it can identify useful information from your interactions and create or refine memories.
These could include:
2. Recall
When you start another session, Kiro can retrieve relevant memories and use them as additional context while working on your request.
This means you don't have to repeat everything you have already explained.
When exploring the Memories view in Kiro IDE, you will notice two memory types: Preference and Fact.
What is the difference?
Preference tells Kiro how you like to work. Fact tells Kiro what it needs to know about you or your project.
Let's look at each one.
1. Preference
Preferences capture your personal working and development preferences.
Examples:
These memories help Kiro adapt its approach to the way you like to work.
2. Fact
Facts capture information about your development environment, project, or repository.
These memories help Kiro understand the technical environment and history of a project.
Apart from memory type, Kiro also organizes memories by location.
There are two locations:
Global: Memories that apply across your projects and workspaces.
Repository: Memories that are specific to an individual repository.
This separation is useful because your personal development preferences may apply everywhere, while technical details should remain associated with the relevant codebase.
At a high level, the process looks like this:
Let's try a simple experiment.
Step 1: Enable Kiro Memory
Open Kiro IDE and locate the Memories icon in the Activity Bar.
Open the Memory view and select the settings gear.
Navigate to:
Kiro Agent: Memory
You will find four access levels:
For this exercise, select Use and learn.
Note: Memory is off by default. Changes to the setting that enable or disable Memory apply to new sessions.
Step 2: Teach Kiro Your Preferences
Let's start with a simple interaction.
In Kiro Chat, enter the following prompt:
"Remember that I prefer using Python and Boto3 for AWS Lambda development. I use AWS SAM for serverless application development and prefer modular, reusable code with clear separation of responsibilities."
Continue working with Kiro as you normally would.
With Memory enabled, Kiro can identify useful information and create or refine a memory from the interaction.
Step 3: Explore What Kiro Remembers
Navigate back to the Memories view.
You should be able to review the memories Kiro has created.
You can:
This is particularly useful because you can see what Kiro has learned rather than treating Memory as a black box.
Step 4: Test Memory Across Sessions
Now comes the interesting part!
Start a new Kiro chat session in a separate project or workspace. This allows you to test memory recall without modifying your existing applications.
Try the following prompt:
"I want to build a simple AWS Lambda function that retrieves customer information from DynamoDB. Help me design the implementation."
Observe how Kiro approaches the task.
Does it suggest Python and Boto3? Does it consider AWS SAM? Does it follow the development preferences you previously shared?
Here is the Global memory It created based on prior work.
For this design, it used this memory to create the design based on Python, Boto3 and SAM. Here is the folder structure it created as part of this function design.
This is where Memory becomes useful.
Instead of repeatedly explaining your development preferences, Kiro can carry relevant context forward.
One question that naturally comes up is: How is Memory different from Steering?
Both provide context to Kiro, but they serve different purposes.
Memory is what Kiro learns from working with you. Steering is what you explicitly tell Kiro to follow.
If a particular coding standard or security requirement must always be followed, put it in Steering rather than relying on Memory.
Memory complements Steering; it does not replace it.
Here are a few takeaways from exploring Kiro Memory:
Continuity across sessions: Kiro can carry useful context forward instead of starting from scratch.
Personalized development experience: It can learn preferences and conventions from your interactions.
Memory categorization: Preferences and Facts help distinguish how you like to work from what Kiro needs to know.
Repository awareness: Memories can be scoped globally or to individual repositories.
Transparency and control: You can inspect, search, and delete memories.
Memory governance: You control whether Kiro can learn, use existing memories, or operate in read-only mode.
One important consideration: Memory is local to your machine and user account. It is not a mechanism for sharing development conventions across your entire team. For shared project guidance, continue using Steering files.
Also, remember that learned context can become outdated. Review memories periodically, particularly when project architecture or development conventions change.
In this article, I explored how Kiro Memory can make AI-assisted development more personalized and consistent across sessions. I looked at how Kiro captures and recalls useful information, the difference between Preferences and Facts, and how memories can be organized globally or at the repository level.
I also walked through the Memory settings and explored how Kiro can learn development preferences and reuse that context in a new session.
The main lesson for me is that an AI coding assistant becomes more useful when it understands not just the task at hand, but also how you prefer to work and the context of the project. Memory helps bridge that gap by carrying useful knowledge across conversations. At the same time, features like Steering remain important when you need to define explicit project rules and development guidelines.
If you are using an AI coding assistant, think about the context you find yourself repeating in every session. Those preferences, project conventions, and lessons learned are exactly the kind of information worth exploring with Memory.
Thanks for reading, and keep learning!
Watch the video here:
Thanks,
๐ข๐พ๐๐พ๐๐ฝ โฌ๐ฝ๐ถ๐๐พ๐ถ
๐๐๐ ๐๐ฐ๐ฎ๐ฎ๐ถ๐ฏ๐ช๐ต๐บ ๐๐ถ๐ช๐ญ๐ฅ๐ฆ๐ณ | ๐๐ ๐๐ฏ๐จ๐ช๐ฏ๐ฆ๐ฆ๐ณ๐ช๐ฏ๐จ
๐๐๐ ๐๐ฆ๐ณ๐ต๐ช๐ง๐ช๐ฆ๐ฅ ๐๐ ๐๐ถ๐ด๐ช๐ฏ๐ฆ๐ด๐ด ๐๐ต๐ณ๐ข๐ต๐ฆ๐จ๐ช๐ด๐ต
๐๐๐ ๐๐ฆ๐ณ๐ต๐ช๐ง๐ช๐ฆ๐ฅ ๐๐ฐ๐ญ๐ถ๐ต๐ช๐ฐ๐ฏ ๐๐ณ๐ค๐ฉ๐ช๐ต๐ฆ๐ค๐ต
๐๐๐ ๐๐ฆ๐ณ๐ต๐ช๐ง๐ช๐ฆ๐ฅ ๐๐ฆ๐ท๐ฆ๐ญ๐ฐ๐ฑ๐ฆ๐ณ ๐๐ด๐ด๐ฐ๐ค๐ช๐ข๐ต๐ฆ
๐๐๐ ๐๐ฆ๐ณ๐ต๐ช๐ง๐ช๐ฆ๐ฅ ๐๐ฆ๐ฏ๐๐ ๐๐ณ๐ข๐ค๐ต๐ช๐ต๐ช๐ฐ๐ฏ๐ฆ๐ณ
๐๐๐ ๐๐ฆ๐ณ๐ต๐ช๐ง๐ช๐ฆ๐ฅ ๐๐ญ๐ฐ๐ถ๐ฅ ๐๐ณ๐ข๐ค๐ต๐ช๐ต๐ช๐ฐ๐ฏ๐ฆ๐ณ
๐๐๐ ๐๐ญ๐ฐ๐ถ๐ฅ ๐๐ฆ๐ค๐ฉ๐ฏ๐ฐ๐ญ๐ฐ๐จ๐บ ๐๐ฏ๐ต๐ฉ๐ถ๐ด๐ช๐ข๐ด๐ต