Agent Memory

card-ui list-ui description-list-ui code-ui drawer-ui

Surfaces for inspecting and editing what the agent remembers — facts the user has set ("call me Kim"), workspace context ("we use OKLCH for tokens"), and session-scoped state. Three shapes — a memory list, a single-entry detail view, and an editor for adding or revising.

When to use

Whenever an agent has persistent memory the user can audit. Two distinct surfaces: an admin/settings page where the user sees and curates the full memory store, and an inline drawer the agent can pop ("I remembered X — keep / discard / edit"). Both reuse the same primitives; the difference is host and presence of the bulk actions.

Memory list

Read-only inventory grouped by source (user / workspace / session). Each row carries a one-line fact, source tag, and last-updated time. Click-through opens the detail view.

Agent memory 14 entries across 3 sources
From a chat on 2026-04-12 user From the AdiaUI styleguide workspace From AGENTS.md workspace Current session session

Memory detail

Single-entry view. description-list-ui for metadata; code-ui for any structured payload (e.g. JSON facts). Footer carries delete + edit actions.

Uses OKLCH tokens, never raw hex workspace
Source AdiaUI styleguide · component-token-contract.md First seen 2026-03-14 Last referenced 2026-04-29 · 4 minutes ago Times applied 142 { "fact": "no raw hex / rgb / oklch in component CSS", "source": ".claude/docs/specs/component-token-contract.md#tokens", "scope": ["packages/web-components/components/**/*.css"], "exceptions": ["styles/colors/semantics.css", "styles/tokens.css"] }

Memory editor

Inline drawer pop the agent fires when proposing a memory. Three controls: a textarea-ui for the fact, a radio-ui for scope, and primary/ghost actions in the footer. Errors carry through field-ui's error slot.

Save this as a memory? The agent proposed a fact during this conversation.

Composition rules

See also