Kanshō

Docs / Memory and context /

MemoryFactCard

Card for a single memory entry: claim, source, confidence rating, and forget action.

Preview

ActiveUser92% conf

User prefers TypeScript over JavaScript for all new projects.

Owner: kansho-agentSource: conversation msg-334Created: 2 Jun 2026Last used: used yesterday· decays slowly

Variants

High confidence — active

ActiveUser98% conf

Repo name: kansho-ui — the component library being built in public.

Owner: kansho-agentSource: tool:list_reposCreated: 28 May 2026Last used: used 3 hours ago

Medium confidence — stale

StaleSession61% conf

Current deadline: end of Q2 for the public launch of the component catalog.

Owner: kansho-agentSource: conversation msg-102Created: 1 Jun 2026· expires in 6d

Low confidence — active

CandidateUser38% conf

User may prefer dark mode — inferred from screenshot, not confirmed.

Owner: kansho-agentSource: conversation msg-11Created: 20 May 2026· expires in 3d

Irreversible — no controls

ActiveOrg100% confirreversible

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

Owner: billing-agentSource: webhook:stripe/invoice.paidCreated: 14 Jun 2026

Props

PropTypeDescription
fact*MemoryFactThe memory fact object to display. See MemoryFact interface.
onRollback(id: string) => voidCalled with the fact ID when the user triggers rollback. Omit to hide the button.
onDelete(id: string) => voidCalled with the fact ID after the user confirms deletion. Omit to hide the button.
classNamestringAdditional CSS classes for the card root.

* required.

Usage

import { MemoryFactCard } from "@/components/memory/memory-fact-card";
import type { MemoryFact } from "@/components/memory/memory-fact-card";

const fact: MemoryFact = {
  id: "f-001",
  fact: "User prefers TypeScript over JavaScript.",
  scope: "user-scoped",
  state: "active",
  owner: "kansho-agent",
  confidence: 0.92,
  source: "conversation msg-334",
  createdAt: "2 Jun 2026",
};

<MemoryFactCard
  fact={fact}
  onRollback={(id) => console.log("rollback", id)}
  onDelete={(id) => console.log("delete", id)}
/>