How to Add Persistent Memory to Windsurf

Windsurf is powerful but stateless. Here is how to give it memory that persists across sessions.

Windsurf's Memory Problem

Windsurf's built-in context is session-scoped. When you close a session, all project knowledge is lost.

Adding Memory with Squish

Squish runs as an MCP server that Windsurf connects to. It stores decisions, constraints, and preferences that persist across all sessions.

Getting Started

Install with npm i -g squish-memory && squish install. Add the MCP server config to Windsurf and you are ready to go.

Squish documentation