---
name: "Preserve Claude Code session memory with Claude Mem"
slug: "preserve-claude-code-session-memory-with-claude-mem"
description: "Use Claude Mem to capture Claude Code sessions, compress the useful context, and re-inject relevant memory so future coding-agent runs start with project-specific continuity."
github_stars: 74413
verification: "security_reviewed"
source: "https://github.com/thedotmack/claude-mem"
author: "thedotmack"
publisher_type: "open_source_project"
category: "Developer Tools"
framework: "Claude Code"
tool_ecosystem:
  github_repo: "thedotmack/claude-mem"
  github_stars: 74413
  npm_package: "claude-mem"
  npm_weekly_downloads: 0
---

# Preserve Claude Code session memory with Claude Mem

Use Claude Mem to capture Claude Code sessions, compress the useful context, and re-inject relevant memory so future coding-agent runs start with project-specific continuity.

## Prerequisites

Claude Code, Claude Mem, local project workspace, configured model/API access required by upstream

## Installation

Requirements and caveats from upstream:
- <img src="https://img.shields.io/badge/node-%3E%3D18.0.0-brightgreen.svg" alt="Node">
- **Node.js**: 18.0.0 or higher
- **uv**: Python package manager for vector search (auto-installed if missing)

Basic usage or getting-started notes:
- <a href="#quick-start">Quick Start</a> •
- Claude-Mem seamlessly preserves context across sessions by automatically capturing tool usage observations, generating semantic summaries, and making them available to future sessions. This enables Claude to maintain...
- **[Installation Guide](https://docs.claude-mem.ai/installation)** - Quick start & advanced installation

- Source: https://github.com/thedotmack/claude-mem
- Extracted from upstream docs: https://raw.githubusercontent.com/thedotmack/claude-mem/HEAD/README.md

## Documentation

- https://claude-mem.ai

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/preserve-claude-code-session-memory-with-claude-mem/)
