recall

recall is a command for coding agents from SukinShetty/Nemp-memory. It costs 8 tokens per session (1,387 once invoked), scanned A, original, MIT.

A command for retrieving a saved memory by its exact key or by a natural-language search. It searches both project-specific and global memory files, including memory keys and stored values.

In plain words
What is it for?
Use it to recall project decisions, preferences, paths, tools, or other saved notes with /nemp:recall followed by a key or search query.
Why use it?
It avoids manually opening memory files and helps find information even when you do not remember the exact key. The search can also match related terms such as package-manager names.

Command

Part of the Nemp-memory plugin — 1 skill, 24 commands, 1 hook shipped together

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.

agentmods
npx agentmods add commands/sukinshetty/nemp-memory/recall
Clone the repo
git clone --depth 1 https://github.com/SukinShetty/Nemp-memory

Or install Nemp-memory, the plugin that ships this one along with the rest of its 1 skill, 24 commands, 1 hook.

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/sukinshetty/nemp-memory/recall.svg)](https://agentmods.dev/commands/sukinshetty/nemp-memory/recall)
Your own site
<a href="https://agentmods.dev/commands/sukinshetty/nemp-memory/recall"><img src="https://agentmods.dev/badge/commands/sukinshetty/nemp-memory/recall.svg" alt="Measured on agentmods" 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,387 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00008 $0.01387
Opus 5 $0.00004 $0.00694
Sonnet 5 $0.00002 $0.00277
Haiku 4.5 $0.00001 $0.00139

Measured 4d ago against content hash 33584a1a0ff8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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 · 154 lines

How it starts

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

/nemp:recall

Retrieve a memory by exact key or fuzzy search.

Usage

/nemp:recall

Arguments

  • key-or-query: Either an exact memory key OR a natural language query to search memories

Instructions

When the user invokes /nemp:recall, follow these steps:

1. Load All Memories

Read from both storage locations and merge:

# Read project memories if exists
[ -f ".nemp/memories.json" ] && cat .nemp/memories.json

# Read global memories if exists
[ -f "$HOME/.nemp/memories.json" ] && cat $HOME/.nemp/memories.json

2. Search Strategy

Phase 1: Exact Key Match

  • Look for a memory where key exactly matches the query
  • If found, return immediately

Phase 2: Partial Key Match

  • Look for memories where the key CONTAINS the query (case-insensitive)
  • Example: query "bun" matches key "user-prefers-bun"

Phase 3: Value Search

  • Search the value field for the query terms (case-insensitive)
  • Rank by number of matching words

Phase 4: Fuzzy/Semantic Match (Basic)

  • If no matches found, look for semantically related terms
  • Example: "package manager" might match "npm", "bun", "yarn" mentions
  • This is basic keyword expansion for now; semantic embeddings come later

3. Log the Read Operation

IMPORTANT: Always log read operations for audit trail.

After finding a match, append to .nemp/access.log:

echo "[$(date -u +%Y-%m-%dT%H:%M:%SZ)] READ key=<key> agent=${CLAUDE_AGENT_NAME:-main} query=<original-query>" >> .nemp/access.log

3b. Update Vitality Tracking

After logging to access.log, update the matched memory's vitality counters in memories.json:

  1. Load the memory from the appropriate storage file (project or global)
  2. If the memory lacks vitality fields, initialize with defaults first:
    • type: "fact"
    • confidence: {"score": 0.65, "source": "agent-inferred", "reason": "Pre-cortex memory"}
    • vitality: all counters set to 0, score: 50, state: "active", trend: "stable", last_read: null, decay_rate: 0.01
    • links: {"goals": [], "conflicts": [], "supersedes": null, "superseded_by": null, "causal": []}
  3. Update these fields:
    vitality.reads += 1
    vitality.reads_7d += 1
    vitality.reads_30d += 1
    vitality.last_read = <current ISO-8601 timestamp>
    
  4. Recalculate vitality.score using the formula:
    vitality = (
      (reads_7d × 15) +
      (reads_30d × 3) +
      (foresight_load_ratio × 20) +
      (agent_reference_ratio × 25) +
      (update_frequency × 10) +
      (goal_link_active × 15) -
      (correction_events × 10) -
      (days_since_last_read × decay_rate)
    )
    clamped to 0-100
    
    Where:
    • foresight_load_ratio = foresight_loads / (foresight_loads + foresight_skips), default 0 if both are 0
    • agent_reference_ratio = agent_references / reads, default 0 if reads is 0
    • update_frequency = update_count / max(1, days_since_created)
    • goal_link_active = 1 if links.goals has any active goal, else 0
  5. Set vitality.state based on score:
    • 80-100: "thriving"
    • 50-79: "active"
    • 20-49: "fading"
    • 1-19: "dormant"
    • 0: "extinct"
  6. Write the updated memory back to memories.json

Read the full file on GitHub · 154 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. 4d ago First seen · 154 lines · 8 tokens per session scan A 33584a1a0ff8

Subscribe to this mod's changes

recall is a command published in the GitHub repository SukinShetty/Nemp-memory (128 stars, last pushed 2mo ago), licensed MIT. It adds 8 tokens to every session and 1,387 once invoked, about $0.0000 per session on Opus 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-30.