MemorySync
Integrations

Devin & Windsurf Memory

Long-term memory for Devin Desktop and the Devin CLI — the product formerly named Windsurf. MemorySync connects through Devin’s MCP config on both the current and legacy paths, ships first-vendor hook wiring for the Devin CLI’s hooks.v1 system, and includes an always-on recall rule for Devin Desktop.

Devin Desktop uses rules plus MCP, Devin CLI adds hooks.v1 automatic memory, and cloud sessions use MCP only.

The rename, and what works where

Cognition renamed Windsurf to Devin Desktop on June 2, 2026, and the legacy Cascade agent reaches end-of-life on July 1. The rename moved the config paths: current installs read ~/.config/devin/ (Windows: %APPDATA%\devin\), while the old ~/.codeium/windsurf/ path is still honoured for unmigrated setups. MemorySync supports both — no other memory vendor documents the rename at all.

SurfaceMemorySync support
Devin Desktop (GUI)MCP tools via mcp_config.json + an always-on rules file for recall (.devin/rules/memorysync.md).
Devin CLIMCP plus full hook wiring: hooks.v1.json accepts Claude-shaped additionalContext — injected recall at session start and per prompt, and every prompt sent for fact extraction.
Legacy WindsurfThe installer still writes ~/.codeium/windsurf/mcp_config.json (serverUrl key) when it exists — updates, never creates.
Devin cloud sessionsMCP via Settings → Connections on app.devin.ai; SessionStart/SessionEnd hooks do not run in cloud sessions (Cognition’s limitation, all vendors).
Mem0SupermemoryZepMemorySync
Documents Devin (post-rename)✗ stale “Windsurf” page (404)✗ nothing✗ nothing✓ both names, both paths
Devin CLI hooks (automatic memory)✗✗✗✓ first vendor
Installer writes current + legacy config✗✗✗✓ both, safely
Recall in Devin Desktop✗✗✗✓ always-on rule + MCP tools

Install

BASH
# Get an API key at https://app.memorysync.io, then:
# macOS/Linux: export MEMORYSYNC_API_KEY=ms_...
# Windows: setx MEMORYSYNC_API_KEY ms_...

Option A: One command (recommended)

BASH
# Writes the current Devin path (and the legacy Windsurf file when present):
npx memorysync-mcp-install --client devin-desktop

Option B: Devin’s own CLI

BASH
devin mcp add memorysync https://mcp.memorysync.io/mcp
devin mcp login memorysync # OAuth sign-in

Option C: By hand

~/.config/devin/mcp_config.json
{ "mcpServers": { "memorysync": {
"url": "https://mcp.memorysync.io/mcp", "transport": "http" } } }

Windows path: %APPDATA%\devin\mcp_config.json. Project-level config works too: .devin/mcp_config.json in a repo configures MCP for everyone who opens it. For Devin cloud sessions, add the same URL under Settings → Connections with an X-API-Key auth header.

Devin CLI hooks — automatic memory

The Devin CLI’s hook system (hooks.v1.json) accepts the same hookSpecificOutput.additionalContext payloads as Claude Code, and MemorySync’s plugin scripts speak it natively under the devin platform argument. Copy examples/devin/hooks.v1.json from github.com/memorysyncio/memorysync-plugins into ~/.config/devin/hooks.v1.json (or a repo’s .devin/hooks.v1.json) and point the paths at a checkout of the plugin scripts.

MomentWhat happens
Session start / resumeRecalls your profile and this project’s context, injected as additional context.
Every promptSends your prompt for fact extraction in a detached process, one add per prompt. Only the durable facts in it are stored. Prompts of 24 characters or more also recall memories relevant to the prompt.
Reply finishes (Stop)Nothing is sent — replies are not stored.
Any failure — no key, network down, quota exhaustedSilent skip, exit 0. The hooks cannot block or break a Devin session, by contract and by test.

The recall rule (Devin Desktop)

Devin Desktop reads rules from .devin/rules/ (which takes precedence over legacy .windsurf/rules/). The plugin repo ships examples/devin/rules/memorysync.md with trigger: always_on frontmatter: it keeps the agent searching memory before answering questions about past work, saving durable facts as they appear (never secrets), and treating recalled text as background data — never instructions. Legacy Windsurf’s built-in auto-memories are absent from current Devin docs; this rule plus the MCP tools fills that gap.

Supported versions

SurfaceRequiresVerified on
MCP (Devin Desktop / CLI / cloud)Any Devin build; legacy Windsurf still worksInstaller verified live on Devin Desktop (Windows): detection, write, documented {url, transport} shape
Devin CLI hooksDevin CLI with hooks.v1, Node.js 18+Hook contract suite 52/52 — the shared scripts run under the devin platform argument: prompts sent, replies never sent, both monthly-quota server modes

Devin’s hook payloads follow Claude Code’s shapes, and CI pins that assumption on every push. Devin’s closed-beta plugin system loads Claude-format plugins, so devin plugins install memorysyncio/memorysync-plugins is expected to work as access opens up.

Where to go next

Was this page helpful?