memory

memory is a command for Claude Code from greppable/greppable-cc-plugin. It costs 19 tokens per session (716 once invoked), scanned B, original, MIT.

A command that turns automatic extraction of useful notes from past coding sessions on or off.

In plain words
What is it for?
Use it to check the current setting or enable or disable session-memory extraction for a project or globally.
Why use it?
It lets you control whether previous session transcripts are converted into searchable memory records.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; positional $N argument; mentions Claude Code.

Part of the greppable plugin — 8 skills, 8 commands, 3 hooks shipped together

Good fit Use it to check the current setting or enable or disable session-memory extraction for a project or globally.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/greppable/greppable-cc-plugin/memory
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/greppable/greppable-cc-plugin

Made for: Claude Code.

Or install greppable, the plugin that ships this one along with the rest of its 8 skills, 8 commands, 3 hooks.

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 memory

README.md
[![agentmods](https://agentmods.dev/badge/commands/greppable/greppable-cc-plugin/memory/github.svg)](https://agentmods.dev/commands/greppable/greppable-cc-plugin/memory)
Your own site
<a href="https://agentmods.dev/commands/greppable/greppable-cc-plugin/memory"><img src="https://agentmods.dev/badge/commands/greppable/greppable-cc-plugin/memory/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 memory

Your own site · 80×15
<a href="https://agentmods.dev/commands/greppable/greppable-cc-plugin/memory"><img src="https://agentmods.dev/badge/commands/greppable/greppable-cc-plugin/memory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 716 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00019 $0.00716
Opus 5.5 $0.00008 $0.00286
Sonnet 5.5 $0.00004 $0.00143
Haiku 4.5 $0.00002 $0.00072

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

Security

Grade B, and why

memory scanned grade B with 1 finding 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

project_val=$(grep -m1 '^memory:' .claude/greppable.local.md 2>/dev/null | awk '{print $2}')
commands/memory.md · 52 lines

How it starts

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

/greppable:memory — Toggle Session Memory Extraction

Usage

/greppable:memory — show current status /greppable:memory on — enable memory extraction /greppable:memory off — disable memory extraction

Flow

  1. Read current config — check .claude/greppable.local.md (project) and ~/.claude/greppable.local.md (global) for memory key. Use:
project_val=$(grep -m1 '^memory:' .claude/greppable.local.md 2>/dev/null | awk '{print $2}')
global_val=$(grep -m1 '^memory:' ~/.claude/greppable.local.md 2>/dev/null | awk '{print $2}')
val="${project_val:-$global_val}"
[[ "$val" == "true" ]] && echo "enabled" || echo "disabled"
  1. If no argument (status only):

    • Report: "Session memory extraction is currently enabled/disabled."
    • If enabled, show where memories are written: <gdl_root>/memory/active/
    • If disabled, explain: "Run /greppable:memory on to enable. When a new session starts, the previous session's transcript is processed into searchable .gdlm memory records."
  2. If argument is on:

    • Find the config file. Prefer project-scope (.claude/greppable.local.md). If only global exists, use that. If neither exists, tell user to run /greppable:onboard first.
    • If memory: key exists and value is false, change memory: false → memory: true using Edit tool.
    • If memory: key exists and value is already true, confirm: "Memory extraction is already enabled."
    • If memory: key doesn't exist, add memory: true on a new line after discovery_auto_prompt: using Edit tool.
    • Confirm: "Memory extraction enabled. When your next session starts, the previous session will be processed into .gdlm records. Restart Claude Code for changes to take effect."
  3. If argument is off:

    • Same config detection as on.
    • If memory: key exists and value is true, change memory: true → memory: false using Edit tool.
    • If memory: key exists and value is already false, confirm: "Memory extraction is already disabled."
    • If memory: key doesn't exist, add memory: false on a new line after discovery_auto_prompt: using Edit tool.
    • Confirm: "Memory extraction disabled. Session transcripts will no longer be processed. Restart Claude Code for changes to take effect."

Read the full file on GitHub · 52 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 · 52 lines · 19 tokens per session scan B f4ea584ada78

Subscribe to this mod's changes

memory is a command published in the GitHub repository greppable/greppable-cc-plugin (3 stars, last pushed 6mo ago), licensed MIT. It adds 19 tokens to every session and 716 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.