recall

recall is a command for Claude Code from ErebusEnigma/context-memory. It costs 7 tokens per session (859 once invoked), scanned A, original, MIT.

A command for searching stored records of earlier coding sessions. It can search all saved sessions or limit results to the current project, with an option to show more detailed content.

In plain words
What is it for?
Use it to find previous sessions by topic, restrict the search to a project, request detailed results, set a result limit, or return results as JSON or Markdown.
Why use it?
It saves time when useful decisions, fixes, or code examples are buried in past conversations. Instead of reconstructing earlier context, you can search for terms such as an authentication issue or database migration.

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 find previous sessions by topic, restrict the search to a project, request detailed results, set a result limit, or return results as JSON or Markdown.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/erebusenigma/context-memory/recall
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 recall

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/erebusenigma/context-memory/recall"><img src="https://agentmods.dev/badge/commands/erebusenigma/context-memory/recall.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 7 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 859 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.00007 $0.00859
Opus 5.5 $0.00003 $0.00344
Sonnet 5.5 $0.00001 $0.00172
Haiku 4.5 $0.00001 $0.00086

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

Security

Grade A, and why

recall 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/recall.md · 139 lines

How it starts

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

/recall Command

Search past sessions stored in context memory.

Usage

/recall <query> [options]

Arguments:

  • query (required): Search terms to find relevant sessions

Options:

  • --project: Limit search to current project only
  • --detailed: Include full message content and code snippets
  • --limit N: Maximum number of results (default: 10)
  • --format: Output format: json or markdown (default: markdown)

Examples

/recall authentication
/recall "database migration" --project
/recall jwt --detailed --limit 5
/recall "error handling" --project --detailed

Workflow

When the user runs /recall:

  1. Parse Query and Options

    Extract the search query and any flags:

    • --project -> filter by current project path
    • --detailed -> include tier 2 content
    • --limit N -> cap results
  2. Execute Search

    Run the search script:

    python "~/.claude/skills/context-memory/scripts/db_search.py" "<query>" [--project "$(pwd)"] [--detailed] [--limit N] --format markdown
    
  3. Present Results

    Display results in a clear, scannable format:

    # Context Memory Results
    **Query**: "authentication"
    **Results**: 3 sessions
    
    ---
    ## 1. 2026-01-15 | my-app (Match #1)
    **Summary**: Implemented JWT auth with refresh token rotation
    **Topics**: authentication, JWT, security, Node.js
    **Decisions**:
    - Use RS256 for token signing
    - 15-minute access token expiry
    
    <details><summary>Full Context</summary>
    [Detailed content when --detailed flag is used]
    </details>
    
  4. Offer Follow-up Actions

    If results are helpful, offer to:

    • Show more details for a specific session
    • Apply learnings from a past session to current work
    • Search with different terms

    If results are insufficient:

    • Suggest broader search terms
    • Offer to search in messages (deeper search)
    • Suggest removing --project filter

Search Tips

The search uses FTS5 full-text search with Porter stemming:

Read the full file on GitHub · 139 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 · 139 lines · 7 tokens per session scan A d5f8ee4767ff

Subscribe to this mod's changes

recall is a command published in the GitHub repository ErebusEnigma/context-memory (7 stars, last pushed 8mo ago), licensed MIT. It adds 7 tokens to every session and 859 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.