Skip to content

neuron sync — Force a Markdown/SQLite Rebuild

neuron sync synchronizes memories between markdown files and the SQLite database. Relevant for any category resolving to md storage (the top-level storage.mode, or a per-category override) — SQLite is a rebuildable semantic-search index for those categories, and sync is the explicit, forced rebuild. Ordinary commands (memory add, memory query, and so on) already reconcile markdown into the index automatically; sync exists for cases where you’ve hand-edited a .md file directly and want the index caught up without waiting for the next command to trigger it.

FlagEffect
--dry-runReport what would change without writing
--forceRe-process entries even when hashes match
--category <name> (-c)Restrict sync to one category instead of every category neuron.yaml declares

If an entry’s content differs between the vector DB and its markdown file, and neither side is known to be fresher, sync leaves it untouched rather than guessing which one wins — it reports the conflicting category/id pairs and exits non-zero. Re-run with --force to make markdown authoritative for those entries.

Terminal window
neuron sync # reconcile every declared category
neuron sync --dry-run # preview without writing
neuron sync --category learning --force