remember

remember is a command for Claude Code from ErebusEnigma/context-memory. It costs 8 tokens per session (1,071 once invoked), scanned A, original, MIT.

A command that saves a summary of the current coding session to persistent context memory. The saved record can include decisions, solved problems, technologies, topics, and the session’s outcome.

In plain words
What is it for?
Use it to record what was accomplished, why key choices were made, which problems were solved, and what tools or technologies were involved.
Why use it?
It prevents useful details from being lost when the session ends, so they can be found and recalled later.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: reads .claude/ paths.

Part of the context-memory plugin — 1 skill, 2 commands, 2 hooks, 1 MCP server shipped together

Good fit Use it to record what was accomplished, why key choices were made, which problems were solved, and what tools or technologies were involved.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/erebusenigma/context-memory/remember
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/ErebusEnigma/context-memory

Made for: Claude Code.

Or install context-memory, the plugin that ships this one along with the rest of its 1 skill, 2 commands, 2 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for remember

README.md
[![agentmods](https://agentmods.dev/badge/commands/erebusenigma/context-memory/remember/github.svg)](https://agentmods.dev/commands/erebusenigma/context-memory/remember)
Your own site
<a href="https://agentmods.dev/commands/erebusenigma/context-memory/remember"><img src="https://agentmods.dev/badge/commands/erebusenigma/context-memory/remember/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for remember

Your own site · 80×15
<a href="https://agentmods.dev/commands/erebusenigma/context-memory/remember"><img src="https://agentmods.dev/badge/commands/erebusenigma/context-memory/remember.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 8 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,071 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00008 $0.01071
Opus 5.5 $0.00003 $0.00428
Sonnet 5.5 $0.00002 $0.00214
Haiku 4.5 $0.00001 $0.00107

Measured 1mo ago against content hash 82dec08393e7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

remember scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/remember.md · 140 lines

How it starts

The opening of the file, as written. The whole thing — 140 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/remember Command

Save the current session to context memory with an optional annotation.

Usage

/remember [note]

Arguments:

  • note (optional): A personal annotation or tag to help find this session later

Examples

/remember
/remember "Fixed the auth bug with refresh tokens"
/remember "Important: OAuth2 implementation details"

Workflow

When the user runs /remember:

  1. Generate Session Summary

    Analyze the current conversation and create:

    • brief: A single sentence summarizing what was accomplished
    • detailed: 2-3 paragraphs with full context of what happened
    • key_decisions: List of important decisions made during the session
    • problems_solved: List of problems that were resolved
    • technologies: List of technologies, frameworks, or tools discussed
    • outcome: One of: success, partial, abandoned
  2. Extract Topics

    Identify 3-8 relevant topics from the conversation. Use lowercase, common terms like:

    • Technology names: react, python, sqlite
    • Concepts: authentication, debugging, refactoring
    • Domains: api, frontend, database
  3. Identify Key Code

    If significant code was written or discussed, extract important snippets with:

    • The code itself
    • The programming language
    • A brief description of what it does
    • The file path if applicable
  4. Extract Key Messages

    Select 5-15 important messages from the conversation that capture:

    • The initial request/problem statement
    • Key decisions and their reasoning
    • Solution descriptions
    • Important caveats or warnings
  5. Pipe JSON via Stdin and Save to Database

    Pipe JSON directly via --json - (stdin). This is the only save path that preserves all fields:

    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
    

Read the full file on GitHub · 140 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 140 lines · 8 tokens per session scan A 82dec08393e7

Subscribe to this mod's changes

remember is a command published in the GitHub repository ErebusEnigma/context-memory (7 stars, last pushed 8mo ago), licensed MIT. It adds 8 tokens to every session and 1,071 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.