Memory Manager
Every memory with where it came from and when it changed, searchable and filtered by category. Pin, edit in place and forget with a confirmation in your own words, and switch memory off without losing the list. Each change waits for your backend and shows its error on the row.
Ready for AI tools one file typed props installs by name prompt included
The decision inside it
It does not promise more than it knows
Forgetting says what your backend says it does. The component never claims every copy is gone, and nothing is stored in the component itself.
Installation
How you get it
Paste this into Claude Code, Cursor, Codex or any coding agent. It installs the file and uses it as it is, instead of writing a new one.
Use Layro's Memory Manager for this.
Install it: npx shadcn@latest add @layro/memory-manager
Import it from @/components/ui/memory-manager.
Do not rewrite or restyle it. Pass my data through its props
and keep its built-in states.For the full brief with every prop and the mistakes assistants usually make, use Copy prompt above. Pro components install through the @layro registry with your CLI token: see the Namespaced tab.
API
“Copy prompt” above puts a full brief on your clipboard — install command, dependencies, props, and the mistakes an assistant usually makes with this component.
Props
Read from the component’s own TypeScript interface when the site is built, so this table cannot drift from the file you install.
| Prop | Type | Notes |
|---|---|---|
memoriesrequired | AIMemory[] | — |
memoryEnabled | boolean | Whether the assistant uses memory. Leave out to hide the switch. |
onMemoryEnabledChange | (enabled: boolean) => void | Promise<void> | — |
onEdit | (id: string, content: string) => void | Promise<void> | Adds Edit. May return a promise. |
onDelete | (id: string) => void | Promise<void> | Adds Forget. May return a promise; the row leaves when it resolves. |
onPinChange | (id: string, pinned: boolean) => void | Promise<void> | Adds Pin. May return a promise. |
onSearch | (query: string) => void | Search yourself. Without it, the list is filtered here. |
deletionNote | React.ReactNode | What forgetting does, from your backend's point of view. |
disabledNote | React.ReactNode | What switching memory off does. |
assistantName | string | The assistant's name, for the sentences. Default "the assistant". |
Dependencies
npm packages
clsxframer-motionlucide-reacttailwind-mergeLayro foundations, installed alongside it
layro-themebuttoninputstateswitchtabstextareatooltipLifetime access
Every component, and everything we ship next.
- All 112 components, source included
- The template, and everything released after you buy
- shadcn CLI or download — React 18/19, Tailwind v4
- One payment. No subscription.
More in AI Chat
All AI Chat componentsAI Chat
BlockFreeA whole chat window: greeting, streaming answers, stop, retry and regenerate.
Chatbot
BlockFreeOne chat in four places: a floating widget, an embedded panel, a copilot sidebar or a full page.
Chat Message
FreeOne turn in a conversation, for the person or the assistant, with sources and attachments.
Streaming Response
FreeAn answer arriving word by word that looks finished at every moment in between.
Thinking State
FreeThe wait before the first word: what it is doing, for how long, and the trail so far.
Message Actions
FreeCopy, regenerate and rate an answer, with every button confirming in place.