AWS Builder Center
Kiro Memory | Give Your AI Coding Assistant a Memory!

Kiro Memory | Give Your AI Coding Assistant a Memory!

A Builder's Perspective on Personalized AI Coding & Kiro Memory.

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.

What Did I Build & Why?

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:

  • I prefer Python and Boto3 for AWS Lambda development.
  • I use AWS SAM for serverless application development.
  • I prefer modular and reusable code.
  • I follow specific naming conventions for Lambda functions and AWS resources.
  • I have already investigated certain issues and identified approaches that work.

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.

How Does Kiro Memory Work?

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:

  • Development preferences.
  • Repository-specific commands and conventions.
  • Corrections made during development.
  • Debugging insights.
  • Approaches that have already been explored or ruled out.

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.

Understanding Memory Types | Preference vs. Fact

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.

Examples:


These memories help Kiro understand the technical environment and history of a project.

What about Memory Location?

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.

For example:


This separation is useful because your personal development preferences may apply everywhere, while technical details should remain associated with the relevant codebase.

Memory Architecture

At a high level, the process looks like this:

  • You start a development task with Kiro.
  • Kiro works with your current conversation and project context.
  • Useful information is identified and saved as Memory.
  • You start a new session.
  • Kiro retrieves relevant memories when needed.
  • Kiro uses that context to help with your new task.

Let's Build Something | Exploring Kiro Memory

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:

  • Browse global and repository-specific memories.
  • Search memories.
  • Filter by memory type and location.
  • Open individual memories to inspect their content.
  • Refresh or delete memories.

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.

Memory vs. Steering – What's the Difference?

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.

What Did I Learn?

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.

Conclusion

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!

Thanks,

𝒢𝒾𝓇𝒾𝓈𝒽 ℬ𝒽𝒶𝓉𝒾𝒶
𝘈𝘞𝘚 𝘊𝘰𝘮𝘮𝘶𝘯𝘪𝘵𝘺 𝘉𝘶𝘪𝘭𝘥𝘦𝘳 | 𝘈𝘐 𝘌𝘯𝘨𝘪𝘯𝘦𝘦𝘳𝘪𝘯𝘨
𝘈𝘞𝘚 𝘊𝘦𝘳𝘵𝘪𝘧𝘪𝘦𝘥 𝘚𝘰𝘭𝘶𝘵𝘪𝘰𝘯 𝘈𝘳𝘤𝘩𝘪𝘵𝘦𝘤𝘵
𝘈𝘞𝘚 𝘊𝘦𝘳𝘵𝘪𝘧𝘪𝘦𝘥 𝘋𝘦𝘷𝘦𝘭𝘰𝘱𝘦𝘳 𝘈𝘴𝘴𝘰𝘤𝘪𝘢𝘵𝘦
𝘈𝘞𝘚 𝘊𝘦𝘳𝘵𝘪𝘧𝘪𝘦𝘥 𝘎𝘦𝘯𝘈𝘐 𝘗𝘳𝘢𝘤𝘵𝘪𝘵𝘪𝘰𝘯𝘦𝘳
𝘈𝘞𝘚 𝘊𝘦𝘳𝘵𝘪𝘧𝘪𝘦𝘥 𝘊𝘭𝘰𝘶𝘥 𝘗𝘳𝘢𝘤𝘵𝘪𝘵𝘪𝘰𝘯𝘦𝘳
𝘈𝘞𝘚 𝘊𝘭𝘰𝘶𝘥 𝘛𝘦𝘤𝘩𝘯𝘰𝘭𝘰𝘨𝘺 𝘌𝘯𝘵𝘩𝘶𝘴𝘪𝘢𝘴𝘵
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article