Memory
Memory lets Kiro carry useful context from one chat session to the next. It can remember repository commands and conventions, corrections, debugging insights, approaches already ruled out, and how you prefer to work. When that context matters again, Kiro can use it in later work. You spend less time rebuilding context and more time continuing the task.
Memory is part of the Kiro agent harness, the system that assembles context and runs the agent. It solves two linked problems: deciding what from your work is useful enough to keep, and finding the relevant memory for the task in front of you. Each memory is a record with a title, description, and content, not a copy of a past conversation. Memories are stored on your machine per user account, not per workspace, and Kiro IDE and Kiro CLI on the same machine share them. In Kiro IDE 1.6.2 and Kiro CLI 3.8.0 or later, they also share one Memory setting. When you turn on memory sync, Kiro also keeps your memories in your Kiro account, so they follow you to every device you sign in to and to Kiro Web. See Sync memories across devices.
Memory adds learning and recall to the context Kiro already uses:
- Start with the current task. Your request, current conversation, and Steering enter the agent harness as current context.
- Learn from the work. The harness can identify useful context and create or refine a memory.
- Recall when relevant. In a later session, Kiro can retrieve a matching memory while it works on your request.
Memory works alongside other context in the agent harness:
- Memory: Context Kiro learns from your work and can recall in a later session.
- Steering: Rules and guidance you write when you want explicit control over what Kiro follows.
- Session history: The conversation and work already in progress when you continue or resume the same session.
- Compaction: A summary of older conversation history that keeps a long session within its context limit.
- Knowledge bases (CLI): Reference material you choose and index for Kiro to search when needed.
These forms of context can work together. Memory adds learned context; it does not replace your current conversation, Steering, or reference material. If a rule must apply consistently, write it in Steering.
Choose your app to see how learning and recall are controlled.
In Kiro IDE 1.4.236 or later, choose a Memory level from the settings menu in the Memories view. The agent keeps this choice. The Kiro Agent: Memory setting is deprecated and directs you to this menu. In Kiro IDE 1.4.215 or later, the default level is named Don't use. Before 1.4.215, it was named Off. Kiro IDE 1.4.215 renamed all four levels; the stored setting and behavior are unchanged, and a level you chose under its earlier name is kept. Before 1.4.215, the levels were named Use and learn, Use but don't learn, Use only, and Off.
- Select the Memories icon in the activity bar to open the Memories view.
- In Kiro IDE 1.4.236 or later, select the gear in the view's title bar, then choose an access level.
- In earlier versions, select the Memory settings gear, then choose an access level in the Kiro Agent: Memory setting.
In Kiro IDE 1.4.236 or later, confirm the change by opening the gear menu again and checking that your chosen level is selected. In earlier versions, confirm the chosen value in the Kiro Agent: Memory setting.
In Kiro IDE 1.5.11 or later, the menu offers three levels. You can also run Kiro: Change Memory Setting from the Command Palette.
| Access level | What it does |
|---|---|
| Use and create new memories | Use memories and create new ones automatically or when asked. |
| Use but don't create | Use existing memories, but don't create new ones. |
| Don't use | Don't use memories. This is the default. |
If you chose Use and create automatically or Use and create when asked in an earlier version, Kiro IDE 1.5.11 shows it as Use and create new memories.
Before Kiro IDE 1.5.11, the menu offers four levels:
| Access level | What it does |
|---|---|
| Use and create automatically | Kiro uses memories and can change them, subject to your permissions. It also creates and refines memories automatically. |
| Use and create when asked | Kiro uses memories and can change them when you ask, subject to your permissions. It does not create or update memories automatically. |
| Use but don't create | Kiro uses existing memories but never creates, updates, or deletes them, even when you ask. Memory is read-only. |
| Don't use | Kiro does not use or change memories. This is the default. |
Turning Memory on or off, or switching to or from Use but don't create, applies to new sessions. The IDE shows the notice "Memory settings updated. The change applies to new sessions." with a Start new session action. Switching between Use and create automatically and Use and create when asked takes effect immediately in open local sessions.
The Memory setting is a user setting. A value in workspace settings has no effect.
In Kiro IDE 1.4.121 or later, a sub-agent that Kiro dispatches can read the local memories available to its parent session. It cannot add, change, or delete them.
Choose your app to see how to inspect stored memories.
Select the Memories icon in the activity bar to open the Memories view. It lists Global memories and memories scoped to the repositories open in the current window.
Each memory has a type, which identifies what kind of information it holds, and a location, which shows where it applies: Global or the name of a repository. Most memories show the type Preference or Fact. A type the IDE cannot name shows as Other.
- Each row shows the title, how long ago the memory was created, a one-line summary, its type, and its location.
- Type in Search memories... to filter by title or summary. Select Sort to order the list by date created, newest or oldest first. Select Filter to narrow it by Type and by Applies to (Global or a repository); Clear filters shows every memory again. The footer shows how many memories are stored, for example
3 of 12 memorieswhile a filter is active. - Select a row to open the memory in an editor tab. The tab shows its type, location, creation time, Summary, and Content, with a Delete button.
- In the tab, hover over or focus the type badge to read what the type means: How you like Kiro to work. for Preference, Something true about this repository. for Fact, and Not a preference or a fact. for Other.
- Hover over or focus the location badge to read where the memory is used: Used in every workspace. for Global, or Used only in followed by the repository name for a repository memory.
- To delete a memory, right-click its row and choose Delete, or select Delete in its tab. Kiro asks you to confirm before it deletes the memory.
- In Kiro IDE 1.4.215 or later, the view and any open memory tabs update automatically when a chat adds, edits, or deletes a memory, and when you return to them, and there is no Refresh button. Before 1.4.215, select Refresh Memories in the view's title bar, or Refresh in a memory tab, to reload. If the view reads Memory is not available, select Retry.
You can delete a memory from the Memories view even with Use but don't create. To fix a memory's content, ask Kiro in the chat. Kiro can make the change only with Use and create automatically or Use and create when asked in a trusted workspace.
Memory sync keeps your memories in your Kiro account, so what Kiro learns on one machine is there on every other machine you sign in to and in Kiro Web. To use synced memories in Kiro Crew, turn on its Kiro Memory Preview. Memory sync requires your separate consent, which defaults to off. For profiles using Enterprise Management enforcement, an administrator must first allow users to opt in; this does not turn sync on for them. See When sync is unavailable.
Memory sync is one setting for your whole account. Turning it on in Kiro CLI turns it on in Kiro IDE and on every other device signed in to that account, and turning it off does the same. Only devices with Memory turned on sync.
In Kiro IDE 1.6.2 or later:
- Select the Memories icon in the activity bar to open the Memories view.
- Select the gear in the view's title bar.
- Select Sync memories across your account. A check mark shows that sync is on.
You can also run Kiro: Change Memory Sync from the Command Palette and choose On or Off.
The top of the Memories view shows the sync status, such as Up to date with the time of the last sync. To sync now, select Sync Memories in the view's title bar.
Kiro syncs when a session starts and about every five minutes while it runs. A memory that another device syncs reaches the agent in your next session, not the one already open. When you add a memory on one device, it reaches your other devices at their next sync.
- Memory is off on this device. Turn on Memory to sync memories across your account.
- You are not signed in. Sign in to Kiro to sync your memories. In Kiro CLI, memory sync is not available with an API key sign-in.
- Your organization has not allowed memory sync. For profiles using Enterprise Management enforcement,
cloud_memory.enableddefaults tofalseand blocks memory sync. An administrator can allow users to opt in by turning on Cloud Memory in the Kiro console or settingcloud_memory.enabledtotruein Enterprise Management. This does not turn sync on: each user's separate consent defaults tofalse, and each user must opt in. In Kiro IDE, the setting shows Managed by your organization. In Kiro CLI, it shows Disabled by your organization. Contact your administrator to request changes.
When memory sync is on, the current implementation uploads each memory's title, summary, content, type, and scopes. It also uploads the creation time and, where applicable, the session ID. Usage metadata is uploaded when enabled.
Cloud memory metadata and content are encrypted at rest using AWS KMS. The cloud Memory service operates in US East (N. Virginia) (us-east-1) and Europe (Frankfurt) (eu-central-1).
Memories do not expire.
Kiro stores memories locally on each device. The storage location depends on whether memory sync is enabled:
| Memory type | Storage location |
|---|---|
| Synced memories | ~/.kiro/ |
| Local-only memories | ~/.kiro/ |
With memory sync on, deleting a memory removes it from the cloud and that device. Your other devices remove their copy at their next sync.
With memory sync off, deleting a memory affects only that device. The cloud copy and copies on other devices are unchanged. Deletions made while sync is off are not uploaded when you turn sync back on. To delete the cloud copy, use a device that still has the memory with sync enabled, or delete it in Kiro Web.
Turning memory sync off stops syncing on every device signed in to your account. Existing cloud and local memories remain. New memories and edits stay local while sync is off.
When you turn memory sync back on, Kiro uploads new memories and edits made while sync was off, but not deletions made while it was off.
Bring memories into Kiro from another AI assistant, such as Claude Code, Codex, or Kiro Crew, or save your Kiro memories to a file. Import and export work in Kiro IDE 1.6.2 or later and Kiro CLI 3.8.0 or later, even when Memory is off.
- In the Memories view, select the gear, then Import memories….
- In Export, select Copy prompt, then run the prompt in your other assistant. It saves your memories to a
.jsonlfile in your Downloads folder, or prints them for you to copy. You can edit the prompt to leave out anything sensitive. Select Next: upload. - In Upload, select Upload file… and choose the file, or paste its lines into the box. Select Add to memory.
- In Review, check Added memories and any lines that were not added, with the reason for each. Select Done.
Kiro checks each line for format, scope, secrets, and duplicates. It does not review what a memory says, so read the file before you import it. Importing the same file twice adds nothing the second time. Kiro can store up to 1,000 memories. Importing cannot add memories beyond that limit. Imported memories sync like any other memory when memory sync is on.
- IDE: In the Memories view, select the gear, then Export memories….
- CLI: Type
/memories, selectexport, then choose Copy to clipboard, Save to Downloads, or Save to another folder. Kiro saves the file askiro-memories.jsonl.
When you turn on its Kiro Memory Preview, Kiro Crew can read the memories Kiro IDE and Kiro CLI keep on the same machine, including ones synced from your other devices. A new personal chat then starts with what Kiro already knows about how you work. Crew reads these memories only. It never adds, changes, or deletes them. See Kiro Memory in Crew.
Suppose Kiro learns while debugging that a repository's integration tests fail until the local database is seeded. A memory can record that insight. In a later session, Kiro can recall it and seed the database first instead of rediscovering the cause.
When Kiro uses memories, the chat groups that activity into collapsible entries such as Memory accessed (1), Memory created (1), or Memory updated (1). Each entry lists the titles of the memories involved. Hover a title to see the memory's type and summary. In the accessed, created, updated, and listed entries, select a title to open the memory. A Memory deleted entry names memories removed from the view, and a Memory imported entry names the import source, so their titles do not open.
The debugging example could show:
Memory accessed (1)
seed-db-before-integration-tests
The recalled memory tells Kiro to seed the local database before it runs the integration tests.
A memory call that failed or that Kiro could not confirm appears as its own card instead, such as Couldn't save memory or Memory not saved, with the agent's result text. When available, the card also shows the memory name.
Recalled memories also use context. Select the context usage indicator in the chat input to open Context Usage. A Memory row appears after Steering files when memories use context.