Export and Import

Motivazione

Export and import are explicit so developers control what leaves and enters their local memory database.

sequenceDiagram participant Dev as Developer CLI participant DB as claude-mem.db participant Repo as Shared repo participant CI as CI merge Dev->>DB: read filtered observations Dev->>Repo: push contribution CI->>Repo: merge and cap Dev->>Repo: pull merged/latest.json Dev->>DB: insert new observations
  1. Preview: mem-sync preview --project my-app
  2. Export: mem-sync export --project my-app
  3. Wait for CI: confirm merged/my-app/latest.json
  4. Import: mem-sync import --project my-app
First rollout

Use remote.autoMerge: false until filters and review policy are validated.