Skip to content
Development
Command

/memory

Use when: user asks to remember something, after solving a non-obvious problem, or to capture key session findings

From plugin
claude-mem-lite
607 skills7 commands7 hooks1 MCP
Install
> /plugin marketplace add sdsrss/claude-mem-lite
> /plugin install claude-mem-lite@sdsrss

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/memory

Context preview

What this command does when you run it.

Use when: user asks to remember something, after solving a non-obvious problem, or to capture key session findings

Command definition

memory.md
name: memory
description: "Use when: user asks to remember something, after solving a non-obvious problem, or to capture key session findings"

Memory Save

Save important content to your long-term memory database.

Commands

  • `/mem:memory <content>` — Save the given content directly to memory
  • `/mem:memory` (no args) — Auto-summarize recent session highlights and save key findings

Instructions

When the user invokes `/mem:memory`, determine the intent:

With explicit content

If the user provides content after the command:

1. Analyze the content to determine appropriate type (decision, bugfix, feature, refactor, discovery, change) 2. Generate a concise title from the content 3. Call `mem_save` with:

  • `content`: the provided text
  • `title`: auto-generated title
  • `type`: inferred type (default: "discovery")
  • `importance`: 2 (notable — user explicitly requested save)

With instructions/prompt

If the user provides instructions like "save the database schema we discussed" or "remember the fix for the auth bug":

1. Review recent conversation context 2. Extract the relevant information per the user's instruction 3. Call `mem_save` with extracted content, appropriate title and type, importance=2

No arguments (auto-save)

If no content is provided:

1. Review the current session's recent key findings 2. Identify: decisions made, bugs fixed, patterns discovered, important code changes 3. For each significant finding (max 5), call `mem_save` with:

  • Clear title and structured content
  • Appropriate type and importance level (1=routine, 2=notable)

4. Skip trivial or already-saved items 5. Report what was saved in a concise summary

Always set importance=2 for explicit saves (user chose to save), importance=1 for auto-saves of routine items, importance=2 for auto-saves of notable discoveries.

Read more
Ships withclaude-mem-lite

claude-mem-lite is a persistent memory (also called long-term memory or cross-session context) system for Claude Code — Anthropic's CLI coding agent.

Get the whole plugin
Stats
60
Stars
11
Forks
Active
Maintenance
JavaScript
Language
MIT
License
2d ago
Last commit
7mo ago
Created

Repo: sdsrss/claude-mem-lite

Other commands on claude-mem-lite.