Kanshō/Memory viewer

Memory / context viewer

What the agent currently believes, where it learnt it, and how sure it is. Editable so the user can correct drift.

Included in the single kansho full pack. Components are not offered as separate installs.

Full memory

Delete and Undo are live; Edit is a static-preview callback
Memory5 facts
  • persistent
    Customer prefers Postmark for outbound transactional email.
    from onboarding chat 2026-03-1295% conf· 8w ago
  • persistent
    Stripe API key in this workspace is restricted to read + refund scopes.
    from tool config99% conf· 2d ago
  • working
    Working set: 23 overdue invoices grouped into 17 customers.
    from this run100% conf· just now
  • persistent
    User typically reviews dunning copy before send.
    from prior run 2026-04-3068% conf· 3w ago
  • persistent
    Quiet hours: do not send between 21:00 and 08:00 user-local.
    from manual fact42% conf· stale

Working memory only

Working set1 fact
  • working
    Working set: 23 overdue invoices grouped into 17 customers.
    from this run100% conf· just now

Component documentation

Memory Viewer

components/agent/memory-viewer.tsx

Purpose

Lists working or persistent memory facts with source, confidence, update time, and optional edit/delete controls.

Appropriate use

Use for inspecting an agent's current memory set when operators may manage individual facts.

Example

components/agent/memory-viewer.tsx has a representative live example in the "Full memory" section on /components/memory-viewer.

States

Kinds are working or persistent; lists may be empty or populated and controls appear only when their callbacks exist.

API and props

MemoryViewer accepts items, title, onEdit, onDelete, and className; each item contains id, fact, kind, source, confidence, and updatedAt.

Dependencies

Direct imports are React, Lucide icons, Tag, InlineConfirmButton, and cn.

Accessibility

Edit and delete controls have accessible names; deletion uses the shared two-step confirmation control.

Limitations

It does not persist edits, explain confidence, paginate large sets, or announce completed mutations; the host owns those outcomes.

Source

Source: components/agent/memory-viewer.tsx.

Full pack

components/agent/memory-viewer.tsx is documented at /components/memory-viewer and installs only through the single Kansho full pack; no individual component install is offered.