Kanshō

Docs / Memory and context /

MemoryWriteReceipt

Confirmation receipt after an agent writes a fact to memory: claim, layer, and timestamp.

Preview

Memory storedActive2 Jun 2026 · 14:32

User prefers TypeScript over JavaScript for all new projects.

Why
Mentioned explicitly by the user — high-signal preference worth keeping across sessions.
Where
User layer
Reversible

Variants

Irreversible write

Memory storedActive14 Jun 2026 · 09:00

Organisation billing plan upgraded to Pro — confirmed via Stripe webhook.

Why
Billing event is authoritative and permanent; stored at org scope for all agents.
Where
Organization layer
Irreversible

Agent-private layer

Memory storedActive17 Jun 2026 · 11:45

Scratch note: user seems to be iterating on the timeline component — watch for layout questions.

Why
Internal working note — not exposed to the user directly.
Where
Agent-private layer
Reversible

Props

PropTypeDescription
fact*stringThe fact that was written to memory.
reason*stringWhy the agent stored this fact — shown to the user as a transparency signal.
layer*MemoryLayerWhich memory layer the fact landed in.
timestamp*stringWhen the write occurred.
reversible*booleanWhether this write can be undone. Controls the footer label and undo button.
onUndo() => voidCalled when the user clicks "Undo". Only rendered when reversible is true.
classNamestringAdditional CSS classes for the section root.

* required.

Usage

import { MemoryWriteReceipt } from "@/components/memory/memory-write-receipt";

<MemoryWriteReceipt
  fact="User prefers TypeScript over JavaScript."
  reason="Mentioned explicitly — high-signal preference worth keeping."
  layer="user"
  timestamp="2 Jun 2026 · 14:32"
  reversible
  onUndo={() => undoWrite()}
/>