Skip to content
Sign in
AgentsMemory inspectorMenu

Memory inspectorPro

The developer view of agent memory: source, author, last use and use count per entry, with undoable deletes.

ProMemories with source, author and use, filtered by scope; deletes wait out an undo.

Installation

$ pnpm dlx shadcn@latest add @chatcn-pro/memory-inspector

Usage

tsx
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

PropTypeNotes
memoriesInspectedMemory[]{ id, content, source, sourceDetail?, createdBy, createdAt, lastUsedAt?, uses, scope }
onDelete(id) => voidCalled after the undo window
undoMsnumberDefault 5000
nownumberFixes 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.