Memory Retrieval

Memory Retrieval is a skill for Claude Code, Codex from lukacf/meerkat. It costs 15 tokens per session (327 once invoked), scanned A, original, Apache-2.0.

A guide to searching saved conversation content that was removed by compaction. Semantic search finds related meaning rather than only exact words.

In plain words
What is it for?
Use it to retrieve older session context and source ranges. Use live files or other authoritative stores when the information must be current or exact.
Why use it?
It helps recover earlier discussion when the current conversation no longer contains enough detail, while distinguishing recalled material from verified current facts.

Skill for Claude CodeCodex

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 skills/lukacf/meerkat/memory-retrieval
Any agent
npx skills add lukacf/meerkat --skill memory-retrieval
Clone the repo
git clone --depth 1 https://github.com/lukacf/meerkat

Made for: Claude Code, Codex.

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 Retrieval

README.md
[![agentmods](https://agentmods.dev/badge/skills/lukacf/meerkat/memory-retrieval.svg)](https://agentmods.dev/skills/lukacf/meerkat/memory-retrieval)
Your own site
<a href="https://agentmods.dev/skills/lukacf/meerkat/memory-retrieval"><img src="https://agentmods.dev/badge/skills/lukacf/meerkat/memory-retrieval.svg" alt="Measured on agentmods" height="20"></a>
Per session 15 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 327 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.1 $0.00015 $0.00327
Opus 5 $0.00008 $0.00163
Sonnet 5 $0.00003 $0.00065
Haiku 4.5 $0.00002 $0.00033

Measured 5d ago against content hash ac022fccf713, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

Memory Retrieval 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 5d 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.

meerkat-memory/skills/memory-retrieval/SKILL.md · 37 lines

What it actually says

Memory Retrieval

Use memory for knowledge retrieval and long-horizon context recall. Memory is not live work state, not a scheduler, and not a commitment graph.

Operating Rules

  • Memory is scoped to the current session: it recalls turns compacted away earlier in this session, including turns compacted before a restart or resume of the same session.
  • Use memory_search when compacted context from earlier in this session would materially improve the current answer. It accepts query and an optional limit (default 5, capped at 20).
  • Treat matches as recalled evidence with similarity scores, not as current truth. Verify against live stores, files, APIs, or WorkGraph when correctness matters.
  • Search results carry source message ranges when available. Use that typed provenance rather than guessing which later turn caused the compaction.
  • Compaction summaries and host-injected context are intentionally excluded from memory indexing. Memory indexes eligible content discarded by compaction, not every message the model has seen.
  • Use WorkGraph for pending, blocked, claimed, or terminal work.
  • Use Schedule for future wakeups and recurrence.
  • Use builtin tasks for private scratch tracking.

Scores

  • Scores range from 0.0 to 1.0.
  • Higher scores are more similar, not automatically more authoritative.
  • Prefer several corroborating matches over one weak match.
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. 5d ago First seen · 37 lines · 15 tokens per session scan A ac022fccf713

Subscribe to this mod's changes

Memory Retrieval is a skill published in the GitHub repository lukacf/meerkat (20 stars, last pushed today), licensed Apache-2.0. It adds 15 tokens to every session and 327 once invoked, about $0.0001 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.

Related

Other skills, from other repositories

task-agent-eliza-bridge

Use when spawning a Claude Code, Codex, Gemini, Aider, or other CLI task agent whose work needs parent Eliza runtime context. Covers the read-only loopback bridge for character, room, memory, and active workspace state.

elizaOS/eliza · 55 tokens

kb-builder

Build an Obsidian-compatible knowledge base from public web sources using the TinyFish CLI. Use this skill when a user wants a builder-grade markdown knowledge base on a technical topic, asks for a structured research vault, or wants a topic compiled from live public sources into interlinked markdown files. Supports…

tinyfish-io/tinyfish-cookbook · 158 tokens

self-improve-with-tinyfish

Enables Hermes to create new reusable skills for itself by researching live web sources with TinyFish Search and Fetch, analyzing source coverage, writing SKILL.md files, and installing them into Hermes memory. Use when the user asks Hermes to learn, teach itself, upgrade itself, or save a reusable capability.

tinyfish-io/tinyfish-cookbook · 68 tokens

aidd-context:02:project-init

Initialize or refresh the project memory bank, scaffold the rules directory, and ensure AI context files contain the project memory block. Use when running aidd init for the first time, bootstrapping a new project, or re-running the init flow on an existing project. Do NOT use for updating individual memory files…

ai-driven-dev/framework · 102 tokens

weknora-shared

Use when driving a WeKnora RAG server through the weknora CLI as an agent — authenticating, managing knowledge bases / documents / sessions / agents, running search or chat, or interpreting the CLI's JSON envelopes and exit codes. Read this before any other weknora- skill.

Tencent/WeKnora · 68 tokens

02-project-memory

Build the project's memory of its architecture, conventions, and decisions, and wire it into your AI tools. Use when the user wants to set up or refresh project memory, or rewire it into a tool. Not for editing one existing memory file.

ai-driven-dev/framework · 54 tokens