Kanshō

Docs / Memory and context /

MemoryCleanupPanel

Panel for reviewing and pruning stale or low-confidence memory entries in bulk.

Preview

Cleanup4 flagged
  • Dormantunused 41d

    User was exploring React Query v4 migration path for the XFA dashboard.

  • Low confidence32% conf

    Joey mentioned wanting to try Bun for the build pipeline.

  • Expiredexpired 18d ago

    Q1 sprint planning complete — shipping authentication redesign.

  • Duplicateduplicates f-001

    User prefers TypeScript (duplicate of f-001 with lower confidence).

Variants

Empty state

Cleanup0 flagged

Memory is tidy — nothing flagged.

Props

PropTypeDescription
candidates*CleanupCandidate[]Facts flagged for cleanup. Empty array renders the "memory is tidy" state.
onPurge(id: string) => voidCalled with the candidate ID after the user confirms a single purge.
onPurgeAll() => voidCalled after the user confirms "Purge all". Only shown when candidates is non-empty.
classNamestringAdditional CSS classes for the section root.

* required.

Usage

import { MemoryCleanupPanel } from "@/components/memory/memory-cleanup-panel";

<MemoryCleanupPanel
  candidates={flaggedFacts}
  onPurge={(id) => removeFact(id)}
  onPurgeAll={() => removeAll()}
/>