New
Apps 6,394Makers 6,373This week 12
Promote your app−30%
Synapse screenshot 1
3views in
the last 30 days

Synapse

Claude Code plugin — don't sync memory across machines, link it

Built with Claude Code

by smaurier · Unclaimed · from FRFrance · added Oct 29, 2026
no ratings0 comments

Synapse

Don't sync memory across machines — link it.

Most tools that keep Claude Code's memory consistent across machines sync it: copy files back and forth, merge on conflict, hope nothing diverges. Synapse takes a different position — there is exactly one physical copy of your memory (a git repo you own), and every machine, every project, references it through a filesystem link (an NTFS junction on Windows, a symlink elsewhere). Nothing to merge, because nothing is ever duplicated in the first place.

                        ┌───────────────────────┐
                        │   hub — a git repo     │
                        │   you own, ONE copy    │
                        └───────────┬───────────┘
                        junction / symlink, never a copy
              ┌─────────────────────┼─────────────────────┐
      ┌───────▼───────┐     ┌───────▼───────┐     ┌───────▼───────┐
      │ machine A      │     │ machine B      │     │ machine A      │
      │ project 1      │     │ project 1      │     │ project 2      │
      │ .claude/memory │     │ .claude/memory │     │ .claude/memory │
      └───────────────┘     └───────────────┘     └───────────────┘

How it works

  1. You point Synapse at a private git repo — the hub. It gets cloned once per machine.
  2. Every project that wants memory gets a link (<project>/.claude/memory by default) pointing straight at that one clone. Read or write through the link, and you're reading or writing the hub directly — no sync step in between.
  3. A SessionStart hook keeps a local RAG index fresh (semantic + exact-match search) when the hub changed since last time. A SessionEnd hook commits and pushes automatically, gated by a secret scan — nothing with a shape resembling a credential ever gets committed silently.

That's the whole mechanism. Everything else (linting the memory, watching for stale links, flagging probable duplicates, tracking the competitive landscape) is built on top of it, never a second source of truth.

Why link instead of sync

Sync-based tools Synapse
Physical copies One per machine, reconciled Exactly one, ever
Conflicts Possible — needs a merge strategy Structurally impossible — nothing to merge
New machine A sync/merge step Just a link, reading the same file the others do
Hub unreachable Sync fails or partially applies Nothing to write; nothing to reconcile once it's back

See docs/DESIGN.md for the full reasoning and trade-offs, not just the pitch.

Commands

Command What it does
/synapse-init First-time setup: clone/link the hub for this project. Idempotent — safe to re-run.
/brain-search Hybrid search (semantic + exact match) across the hub.
/brain-new Scaffold a new memory file with the conventional frontmatter.
/brain-status Quick health snapshot for the current project: link state, corpus size, last audit.
/brain-lint Frontmatter validity, expired entries, probable duplicates, split candidates — report only.
/synapse-doctor Broader periodic audit (link, index, lint, remembered project roots, device registry) in one report. Auto-fixes only a broken link — never a wrong-target one, that's a human call.
/synapse-config Read or edit the hub's shared config, or forget a retired machine — never by hand-editing a file.
/synapse-refresh-projects Link every Claude Code project found under a given root, in one pass — the root is remembered, so /synapse-doctor keeps re-scanning it on its own afterwards.
/synapse-sync Manual commit + push, in case the automatic hook didn't run.
/synapse-market-watch Read-only GitHub scan of comparable projects — never acts on what it finds.
/synapse-uninstall Remove the link and local config for this project. The hub itself is never touched.

Install

/plugin marketplace add smaurier/claude-synapse
/plugin install synapse@synapse

(This repo doubles as its own marketplace — no separate listing to submit to.) Dev mode also works, without registering a marketplace:

claude --plugin-dir /path/to/claude-synapse

Then run /synapse-init and give it the URL of a private git repo to use as your hub (Synapse refuses to link a public one on GitHub — memory doesn't belong in a public repo). Requires Node >= 22.5 (the local search index uses node:sqlite, a builtin only available from that version on).

Status

Core mechanism built and tested: 471 tests, real-hub validation (not just fixtures) surfaced and fixed several real bugs along the way — a lexical fallback for bare-acronym search, word- boundary matching to avoid false positives, incremental indexing, and (item 44) two deterministic rules for probable duplicates — a slug-stem collision and a verbatim n-gram overlap — replacing a cosine-similarity detector that scored unrelated fiches (0.832-0.834) higher than some genuinely related ones (0.69-0.83): no threshold could separate the two populations. Scale-tested too, not just assumed: search stays fast into the thousands of files; the old embedding-based duplicate detector was the one piece that didn't (O(n²) over a per-file model call), and rather than guard it against a file-count ceiling it was replaced outright — both new rules are O(n²) over cheap in-memory set operations, no model call and no ceiling needed. Self-hosted marketplace listing added — see Install above. /synapse-init still configures one project at a time by hand, but a root scanned once via /synapse-refresh-projects now stays covered automatically on every later periodic audit.

Learn more

docs/DESIGN.md covers the architecture decisions behind each piece, the trade-offs made on purpose, and the limitations documented as such rather than left implicit.

License

MIT

Description taken from the repository README.

Ratings

–
0 ratings
5 0
4 0
3 0
2 0
1 0

Rate this app

Sign in to rate

Comments 0

Sign in to comment

No comments yet.

Related apps

#claude-code-plugin · #memory