Skip to content

Show & tell: cross-device store sync without changing mnemonΒ #54

@b1rdex

Description

@b1rdex

Thanks for mnemon β€” the LLM-supervised design is lovely to build on. πŸ™

I run Claude Code on two machines and wanted the same memory on both. Since a store is just a SQLite DB, I put together a small external tool (more duct tape than engineering) that keeps stores in sync across devices without changing mnemon at all.

Repo: https://github.com/b1rdex/mnemon-sync

The gist: instead of file-syncing the live .db (which corrupts and can't be merged), each machine publishes a per-device snapshot and the other side merges them back with last-writer-wins β€” converging without ever losing a memory. It leans on things mnemon already does right (UUID ids, soft-delete, an updated_at on every row) and runs automatically via Claude Code hooks.

I used Syncthing to move the files around because it's private (device-to-device, nothing on third-party servers) and free β€” but the tool doesn't care how the folder gets synced, so in theory iCloud / Dropbox / whatever should work too (haven't tested those).

Not asking for anything to be merged β€” just sharing in case it's useful to anyone else running mnemon on more than one machine, and happy to be corrected if I've misread any internals. Thanks again!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions