
I stopped re-explaining my repo to Kiro. Here's how Memory works in the IDE, CLI, and Web
Every new session with a coding agent used to start with the same five minutes of context: which package manager, how to seed the database, what we already ruled out. Kiro Memory fixes that. In this post I show how it works in Kiro IDE and Kiro CLI, how it relates to Kiro Web, a real example of Kiro remembering a fix across sessions, and the patterns and trade-offs I've seen in practice.
Every new chat with a coding agent used to start the same way for me.
"We use pnpm, not npm." "Integration tests only pass after you seed the local database." "We already tried upgrading that ORM, it broke the connection pool." Five minutes of context before any real work, every single session.
Kiro now has Memory, and it targets exactly that problem. I've been using it across Kiro IDE and Kiro CLI, and in this post I'll show you how it works on each surface, how it relates to Kiro Web, and the patterns that actually paid off for me.
What Memory is (and what it isn't)
Memory lets Kiro carry useful context from one chat session to the next. Think repository commands and conventions, corrections you made, debugging insights, approaches you already ruled out, and how you like to work.
The part I like most: it is not a replay of old conversations. Each memory is a small record with a title, a description, and content. When a later task needs it, Kiro retrieves the matching memory instead of dragging your whole history along.
Three details matter more than they look:
- It's off by default. Nothing is learned until you turn it on.
- It's stored locally, per user account, not per workspace. Each memory applies either globally or to a specific repository.
- Kiro IDE and Kiro CLI on the same machine share the same memories, but each app has its own Memory setting.
That last point is the one that made it click for me. Something Kiro learns in a terminal session on Monday shows up in the IDE on Wednesday.

Memory vs. Steering: the rule I use
Kiro already had Steering, so the first question I get from customers is "which one do I use?"
- Steering is what you write on purpose. Markdown rules in
.kiro/steering/, versioned with the code, shared with the team.
- Memory is what Kiro learns while you work. Personal, local, and recalled only when relevant.
My rule of thumb: if something must apply every time, for everyone, put it in Steering. Memory is for the context that shows up in the middle of the work and would otherwise live only in your head.
Turning it on in Kiro IDE
You need Kiro IDE 1.4.0 or later.
- Select the Memories icon in the activity bar.
- Select the settings gear. It opens the Kiro Agent: Memory setting.
- Pick an access level.
The four levels:
- Use and learn: Kiro uses memories and creates or refines them automatically.
- Use but don't learn: Kiro uses memories and only changes them when you ask.
- Use only: read-only. Kiro never creates, updates, or deletes memories, even if you ask.
- Off: the default.
Two gotchas. Turning Memory on or off, or switching to or from Use only, applies to new sessions (the IDE offers a Start new session shortcut). And it's a user setting, so putting it in workspace settings does nothing. You can't force Memory per repository.
Turning it on in Kiro CLI
Memory works in local V3 sessions, which became the default in Kiro CLI 3.0. It's been available since CLI 2.29.0.
Inside a chat, type
/memories and select config. You get three options: read & write, read only, or off. With read & write, you can also turn on Automatic memory updates, which lets Kiro create and refine memories on its own, even after a session ends.Access changes apply in your next session. The automatic updates toggle applies immediately.
/memories → list lets you search, preview, and open what Kiro saved. Since CLI 2.34.0 you can also delete memories from there.If you're mapping between the two apps: Use and learn is closest to read & write with automatic updates on, Use but don't learn to read & write with updates off, and Use only to read only.

A real example: the database seed
This is the scenario that convinced me, and it's also the example in the official docs.
On Monday, in Kiro CLI, I asked Kiro to run the integration tests of a
checkout-api service and fix what was failing. It ran the suite, hit connection errors and missing data, dug around, and figured out that Postgres had to be up and seeded first. With read & write and automatic updates on, Kiro saved that as a repository memory, something like:Seed the database before integration tests (Fact · checkout-api) Rundocker compose up -d postgresandnpm run db:seedbeforenpm run test:integration.
On Wednesday I opened the same repository in Kiro IDE and asked for a related change. Kiro started the database and ran the seed before touching the tests. No rediscovery, no wasted tool calls.
You can see this happening. In the IDE chat, Kiro groups the activity into collapsible entries like Memory accessed (1) or Memory created (1), with the memory titles. Hover a title for its type and summary, or select it to open the memory. In the CLI, a recalled memory shows up as a Memory entry with
command=get and the title while Kiro is still working.Reviewing and fixing what Kiro remembers
Memories go stale. A command changes and suddenly a helpful memory becomes a wrong one. So I review them.
In the IDE, the Memory view lists Global memories plus the ones for repositories open in the window. Each memory has a type (Preference for how you like Kiro to work, Fact for something true about the repo) and a location. You can search, filter by type or location, open a memory in a tab, and delete it (Kiro asks for confirmation).
To change a memory's content, just ask in the chat. These are prompts I actually use:
- "Remember that this repo uses pnpm, not npm."
- "Update the seed memory: the command is now
make seed."
- "Forget the memory about pinning the PDF library. We fixed that."
Edits from chat need Use and learn or Use but don't learn, in a trusted workspace. In an untrusted workspace, Kiro can read memories but can't add, change, or delete them. I like that: a freshly cloned repo can't rewrite what Kiro remembers about you.
What about Kiro Web?
Kiro Web runs in cloud sessions: a managed sandbox that can't access your machine. That changes the mental model.
- Your local memories and your
~/.kiro/folder stay on your laptop. They are not applied in cloud sessions.
- Everything committed under
.kiro/in the repo (Steering, specs, custom agents, hooks, MCP) arrives with the clone, so it applies automatically.
- For personal config, use Agent Config > Cloud Config in Kiro Web to upload it.
- Kiro Web also learns on its own side. It uses learnings from your previous code reviews, and only your PR feedback influences them, not other reviewers'. You'll find Memory under Agent Config, next to Steering, Skills, and Workflows.
So if you move between local and Web, my advice is simple. Anything that must hold in both worlds goes into Steering in the repo, or into Cloud Config. Let Memory handle the context that emerges from your own workflow on each side.
Five patterns that paid off
- Record dead ends. "We tried the ORM v7 upgrade and it broke pooling." Kiro stops proposing it every week.
- Let corrections stick. If Kiro puts business logic in a controller and you correct it, that correction becomes context for next time.
- Separate personal from project. Each memory is Global or scoped to one repository, so your commit style can follow you everywhere while the seed command stays with
checkout-api.
- Give sub-agents the same context. In IDE 1.4.121+ and CLI 3.1.0+, sub-agents can read the parent session's memories, but can't change them. The sub-agent that runs your tests also knows about the seed.
- Promote what matters to Steering. When a memory proves critical for the whole team, turn it into a versioned Steering file that loads only when it's relevant:
---inclusion: fileMatchfileMatchPattern: "tests/integration/**"---Before `npm run test:integration`, run`docker compose up -d postgres` and `npm run db:seed`.The trade-offs
Memory isn't free context. Recalled memories become part of what Kiro reads, so they can increase context usage, and that means credits. Keep memories lean and review them now and then.
If you want to measure it, Kiro CLI 3.1.0 shows the credits a session has used in
/usage , and you can add a Session credits segment to the status line under /settings display . Run the same task with and without Memory and compare.Also remember that Memory is personal and local. It is not a team knowledge base, and recall isn't guaranteed on every request. For hard rules, Steering is still the right tool.
Takeaways
- Turn Memory on with Use and learn (IDE) or read & write + automatic updates (CLI) in a repo you know well, and work normally for a week.
- Watch the Memory accessed / created entries to see what Kiro is actually using.
- Review the Memory view or
/memories listregularly, and fix stale memories by asking in the chat.
- Use Steering for team rules and Memory for the things you'd otherwise keep repeating.
- On Kiro Web, rely on repo Steering and Cloud Config for anything that must travel with you.
For me, the best sign that it works is boring: I don't think about it anymore. Sessions just start closer to where I left off.
What's the one thing you're tired of explaining to your coding agent every morning?
Useful links
- Memory docs: https://kiro.dev/docs/memory/
- Announcement: https://kiro.dev/blog/memory-in-ide-cli/
- CLI 2.29 changelog: https://kiro.dev/changelog/cli/2-29/
- Steering docs: https://kiro.dev/docs/steering/
- Cloud sessions: https://kiro.dev/docs/cloud-sessions/
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article