Memory inspectorPro
The developer view of agent memory: source, author, last use and use count per entry, with undoable deletes.
On this page
ProMemories with source, author and use, filtered by scope; deletes wait out an undo.
Installation
Usage
import { MemoryInspector } from "@/components/ui/chatcn/pro/memory-inspector"
<MemoryInspector memories={memories} onDelete={forget} />Where the free memory-manager is for end users, this is for the people who build the agent: it shows which conversation or tool wrote each memory, who wrote it, and how often it is pulled into context. onDelete runs only after the undo window closes.
Examples
States
ProNothing remembered yet and read only.
Props
| Prop | Type | Notes |
|---|---|---|
memories | InspectedMemory[] | { id, content, source, sourceDetail?, createdBy, createdAt, lastUsedAt?, uses, scope } |
onDelete | (id) => void | Called after the undo window |
undoMs | number | Default 5000 |
now | number | Fixes relative times for screenshots and tests |
Accessibility
- The undo notice is a status message.
- Delete buttons show on hover and focus with a pointer, and always on touch.