Building Persistent Memory for Claude Code: A Complete Guide

Step-by-step guide to adding persistent memory to Claude Code so you never lose project context between sessions.

Installation

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

Building Memory

Use the remember tool to capture decisions, constraints, and preferences. Squish derives durable beliefs from observations automatically.

Recall and Knowledge Graph

Use recall to search memory semantically. The knowledge graph connects related memories for deeper context retrieval.

Squish documentation