Architecture Overview
Architecture Overview
flowchart TB
CLI[mem-sync CLI] --> CM[(claude-mem.db)]
Hook[PostToolUse hook] --> AR[(access.db)]
CLI --> AR
CLI --> Git[Git provider]
Git --> CI[CI merge bot]
CI --> Git
CLI --> Dash[Local dashboard]
| Component | Responsibility |
|---|---|
| CLI | export, import, config, merge, profile, distill, schedule, dashboard |
| Hook | record memory access events |
| Shared repo | transport and audit log |
| CI | merge, dedupe, cap, profile |
| Dashboard | local visibility |
Write boundary
Export and hook access are read-only against claude-mem.db; import is the write path.
ADR: Git as transport
Git gives teams permissions, reviews, CI triggers, history, and rollback without running a new service.