/context-memory:remember [note]from context-memory
Saves the current Claude Code session to persistent context memory with optional annotation. Generates a structured summary including key decisions, code snippets, and messages.
Ships in context-memory. Installing the plugin adds it to Claude Code.
Save the current session to context memory with an optional annotation.
/remember [note]
Arguments:
note (optional): A personal annotation or tag to help find this session later/remember
/remember "Fixed the auth bug with refresh tokens"
/remember "Important: OAuth2 implementation details"
When the user runs /remember:
Generate Session Summary
Analyze the current conversation and create:
success, partial, abandonedExtract Topics
Identify 3-8 relevant topics from the conversation. Use lowercase, common terms like:
react, python, sqliteauthentication, debugging, refactoringapi, frontend, databaseIdentify Key Code
If significant code was written or discussed, extract important snippets with:
Extract Key Messages
Select 5-15 important messages from the conversation that capture:
Pipe JSON via Stdin and Save to Database
Pipe JSON directly via --json - (stdin):
python "~/.claude/skills/context-memory/scripts/db_save.py" --json - << 'ENDJSON'
{
"session_id": "<UNIQUE_ID>",
"project_path": "<PROJECT_PATH>",
"messages": [
{"role": "user", "content": "The initial question or request"},
{"role": "assistant", "content": "The response or solution"}
],
"summary": {
"brief": "One-line summary of what was accomplished",
"detailed": "2-3 paragraphs with full context...",
"key_decisions": ["Decision 1", "Decision 2"],
"problems_solved": ["Problem 1", "Problem 2"],
"technologies": ["python", "sqlite", "fts5"],
"outcome": "success"
},
"topics": ["topic1", "topic2", "topic3"],
"code_snippets": [
{
"code": "def example(): pass",
"language": "python",
"description": "What this code does",
"file_path": "src/example.py"
}
],
"user_note": "User's note if provided, or null"
}
ENDJSON
Confirm to User
Report back: confirmation, brief summary, topics, message/snippet counts, user note.
git clone https://github.com/ErebusEnigma/context-memory && cd context-memory && python install.py/recall to search past sessionsWhat the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub ccplugins/awesome-claude-code-plugins --plugin context-memoryOther plugins' commands for the same job