Export and Import
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
- Preview:
mem-sync preview --project my-app - Export:
mem-sync export --project my-app - Wait for CI: confirm
merged/my-app/latest.json - Import:
mem-sync import --project my-app
First rollout
Use remote.autoMerge: false until filters and review policy are validated.