install
source · Clone the upstream repo
git clone https://github.com/LewenW/claude-memory-bridge
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/LewenW/claude-memory-bridge "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/memory-management" ~/.claude/skills/lewenw-claude-memory-bridge-memory-management && rm -rf "$T"
manifest:
skills/memory-management/SKILL.mdsource content
Memory Bridge — Cross-Project Memory Sharing
When to use
- User mentions something they've "already told Claude" in another project
- User says "same as in project X" or "like we do in the other project"
- User sets up conventions that clearly apply across multiple projects
- Session start: check if current project subscribes to any shared namespaces
How it works
This plugin provides shared memory across Claude projects via namespaces. Think of namespaces like shared folders that multiple projects can subscribe to.
Three-layer model:
- Global (
) — loaded everywhere (Claude native)~/.claude/CLAUDE.md - Namespace (
) — opt-in shared layer (memory-bridge)~/.claude/shared-memory/<ns>/ - Project (
) — project-only (Claude native)~/.claude/projects/<project>/memory/
At session start
- Use
to check available namespacesmanage_namespaces(action="list") - Use
to find relevant shared knowledgesearch_memories(query="...", scope="shared") - If no namespaces exist yet, mention memory-bridge is available
When user teaches something generalizable
If the user provides feedback or corrections applicable beyond this project (coding style, tool preferences, team conventions), suggest: "This seems useful across projects. Want me to save it to a shared namespace so your other projects can use it too?"
Then use
promote_memory to save it.
Available tools
— Search across all projects and shared namespacessearch_memories
— Move a project memory to a shared namespacepromote_memory
— View what's in shared namespaceslist_shared_memories
— Copy a memory to specific projectssync_memory
— Check for duplicates, stale memories, statsget_memory_health
— Create/delete namespaces, subscribe/unsubscribe projectsmanage_namespaces
Token efficiency
- Always pass
to search to avoid flooding contextlimit - Prefer
over broad searches for browsinglist_shared_memories - Use
sparingly — it scans everythingget_memory_health