# Context Memory

Saves and searches past Claude Code sessions so context, decisions, and code persist...

- Repository: https://github.com/ccplugins/awesome-claude-code-plugins (991 stars)
- Category: AI and agents
- License: MIT
- Last updated: 2026-08-12
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add ccplugins/awesome-claude-code-plugins --skill context-memory -g -a claude-code -y`
Codex: `npx skills add ccplugins/awesome-claude-code-plugins --skill context-memory -g -a codex -y`
Cursor: `npx skills add ccplugins/awesome-claude-code-plugins --skill context-memory -g -a cursor -y`
Gemini CLI: `npx skills add ccplugins/awesome-claude-code-plugins --skill context-memory -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add ccplugins/awesome-claude-code-plugins`

## Description

Saves and searches past Claude Code sessions so context, decisions, and code persist across conversations. Use when user says 'remember this', 'save this session', 'recall', 'search past sessions', 'what did we discuss about', or 'find previous work on'. Do NOT use for general file storage, note-taking, or bookmark management.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Context Memory Skill

Saves and searches past Claude Code sessions so context, decisions, and code persist across conversations.

## Trigger Phrases

Activate this skill when the user says:
- "remember this" / "save this session" / "store this for later"
- "recall" / "search past sessions"
- "what did we discuss about..."
- "find previous work on..."
- "look up past decisions about..."
- "context memory"

## Features

- **Cross-session memory** - Save and recall past work across Claude Code sessions
- **Structured AI summaries** - Rich summaries with decisions, problems solved, technologies, outcome
- **Full-text search** - FTS5 with Porter stemming for fast, fuzzy search
- **Two-tier retrieval** - Summary-ranked search (<10ms) + deep content fetch (<50ms)
- **Auto-save on exit** - Stop hook captures session context automatically
- **Pre-compact checkpoints** - Saves full conversation before context compaction
- **Web dashboard** - Full SPA with analytics (optional, requires flask)
- **MCP server** - Six tools for programmatic access (optional, requires Python >= 3.10)

## Installation

```bash
git clone https://github.com/ErebusEnigma/context-memory.git
cd context-memory
python install.py
```

## Commands

### /remember [note]
Save the current session with an optional annotation.

### /recall <query> [options]
Search past sessions.
- `--project`: Limit to current project
- `--detailed`: Include full message content and code snippets
- `--limit N`: Maximum results (default: 10)

## Source Repository

https://github.com/ErebusEnigma/context-memory

