Why JSON instead of DB, how workspaces are isolated, and the storage format in detail.
Each project gets its own folder under ~/.context-memory/. No project sees another's data. Name is sanitized: special chars removed, lowercase.
The index (index.json) is a flat key-value store: node ID → metadata. Actual content lives as Markdown in nodes/. This way the index can be searched quickly without reading all files.
history.json logs every action. Max 500 entries, FIFO. Concurrent access: last-write-wins. No locking, but documented in log.