Skip to main content

Module agent_native_memory

Module agent_native_memory 

Source
Expand description

Durable, location-consistent mirror of each agent’s native (Claude Code) memory files. See db_agent_native_memory in migrations.rs (SHARED_STORE_SCHEMA_VERSION v6 / OBJECT_SCHEMA_VERSION v14) and docs/specs/SPEC_NATIVE_MEMORY_DURABLE_SYNC_2026_08_07.md for the full design.

Keyed by (agent_id, filename), where agent_id is the stable AgentDefinition.id — NOT any live filesystem path, which is channel-relative by design and therefore not the same across channels/instances for the same logical agent.

Structs§

NativeMemoryMirrorRow
NativeMemoryMirrorRowWithAgent
One db_agent_native_memory row, with its agent_id — the shape agent_native_memory_list_all_rows returns for the (not agent-scoped) full-table scan a one-time migration needs; every other reader in this module is scoped to a single agent_id and doesn’t need this.