mcp-recall: Instructions file for Claude Code

CLAUDE.md

mcp-recall CLAUDE.md is an instructions file for Claude Code from sakebomb/mcp-recall. It costs 3,364 tokens per session, scanned A, original, MIT.

Project instructions for mcp-recall, a Claude Code plugin that compresses large tool results, stores the full results in a searchable SQLite database, and retrieves details when needed. They also document the project’s Bun, TypeScript, SQLite, Zod, and TOML setup.

In plain words
What is it for?
Understanding the project architecture, running its tests, type checks, builds, and server commands, and using its recall tools to fetch stored details.
Why use it?
They help agents work within the project’s conventions and avoid filling the conversation with large outputs that can exhaust available context.

Instructions file for Claude Code

Written for Claude Code: SessionStart hook event. Also seen: reads .claude/ paths; mentions .claude-plugin; mentions CLAUDE.md.

This is sakebomb/mcp-recall's own configuration. It tells Claude Code how to work on mcp-recall itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mcp-recall configures →

Reuse

Borrowing it

Nothing to install: this file belongs to sakebomb/mcp-recall. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/sakebomb/mcp-recall/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/sakebomb/mcp-recall

Made for: Claude Code.

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 mcp-recall CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/sakebomb/mcp-recall/claude-md/github.svg)](https://agentmods.dev/instructions/sakebomb/mcp-recall/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/sakebomb/mcp-recall/claude-md"><img src="https://agentmods.dev/badge/instructions/sakebomb/mcp-recall/claude-md/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 mcp-recall CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/sakebomb/mcp-recall/claude-md"><img src="https://agentmods.dev/badge/instructions/sakebomb/mcp-recall/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,364 This file is loaded in full into every session.
When invoked 3,364 The same file — it is already loaded in full.
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.03364 $0.03364
Opus 5.5 $0.01346 $0.01346
Sonnet 5.5 $0.00673 $0.00673
Haiku 4.5 $0.00336 $0.00336

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

Security

Grade A, and why

mcp-recall CLAUDE.md 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.

CLAUDE.md · 194 lines

How it starts

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

CLAUDE.md – mcp-recall

Project-level conventions. Global ~/.claude/CLAUDE.md guardrails always take precedence on conflicts.

Project Overview

mcp-recall is a Claude Code plugin that intercepts large MCP tool outputs (Playwright snapshots, GitHub API responses, large file reads), compresses them, stores full versions in SQLite with FTS, and delivers brief summaries to Claude. When Claude needs detail, it retrieves via recall__* tools. Goal: enable 3+ hour sessions by preventing context window exhaustion.

Tech Stack

  • Runtime: Bun (package manager + test runner — use bun not npm)
  • Language: TypeScript strict mode, ESNext target
  • Database: SQLite with FTS5 (built into Bun via bun:sqlite)
  • Schema validation: Zod
  • Config format: TOML (smol-toml)

Commands

bun test              # run all tests
bun test --watch      # watch mode
bun run typecheck     # tsc --noEmit
bun run build         # bundle src/ → plugins/mcp-recall/dist/
bun run start         # MCP server
bun run dev           # MCP server in watch mode
bun run sandbox:binary  # standalone-binary checks in a throwaway, offline Docker container
bun run quality       # public quality benchmark over benchmark/corpus/ (--write regenerates results.md, --check verifies)

No just / make in this project. Use bun test directly (not just test).

Releases follow the weekly train in CONTRIBUTING.md (Releases): merge any day, release Wednesday morning ET on the maintainer's go, hotfix only for security or a broken install/hook. Do not propose publishing outside it.

Architecture

bin/recall              Entrypoint used by hooks/hooks.json (session-start, post-tool-use)
                        and as the npm `bin`. Resolves symlinks before locating src/.
src/
  server.ts             MCP server — exposes the recall__* tools listed below
  cli.ts                Hook CLI dispatcher (mcp-recall install / learn / profiles / serve / …)
  binary.ts             Standalone-binary startup (#361): extracts embedded profiles, then cli main.
                        Built by scripts/build-binary.ts (`bun run build:binary`) into dist/bin/.
                        install/ detects the binary (detectLaunch) and registers it as hooks + server
  config.ts             TOML config loader (Zod-validated, cached)
  config-schema.ts      The Zod config schema, required only once a config file is read (#416)
  project-key.ts        Git root detection + SHA256 path hash
  log.ts                Unified stderr logging — info/warn/error/debug, gated on RECALL_DEBUG=1
  format.ts             Shared byte-size and relative-time formatting utilities
  hints.ts              Extracts salient search terms for the summary header (deterministic)
  tools.ts              Tool handler logic for all recall__* tools (pure functions; server.ts wires to MCP SDK)
  denylist.ts           Built-in + configurable denylist
  secrets.ts            Secret pattern detection before any write
  db/
    types.ts            All TypeScript interfaces for the DB layer
    schema.ts           DDL, migrations, getDb / closeDb / initSchema / defaultDbPath
    chunking.ts         CHUNK_SIZE, chunkText(), sanitizeFtsQuery()
    queries.ts          Core CRUD — storeOutput, retrieveOutput, evictIfNeeded, forgetOutputs, …
    analytics.ts        Aggregation queries — getStats, getContext, getSessionSummary, getSuggestions, …
    index.ts            Re-export barrel (all db/* in one import surface)
  handlers/             Compression handlers. The dispatch order is documented
                        canonically above getHandler() in index.ts — read it there rather
                        than trusting a paraphrase. The consequential part: user and
                        community profiles BEAT the TypeScript registry, bundled profiles
                        LOSE to it, and native Bash is routed first, before any of them.
                        Counting handlers is ambiguous (registry entries vs files vs
                        fallbacks), so HANDLER_REGISTRY is the source of truth.
  hooks/                Hook implementations (SessionStart, PostToolUse)
  gc/                   mcp-recall gc — classifies every project DB and reclaims disk.
                        Deletion policy lives in STATUS_POLICY; see the safety note below.
  discover/             mcp-recall discover — ranks fallback-routed output by bytes, with
                        reduction and retrieval rate (#341). Read-only over every store.
                        A NULL `handler` means "stored before #341", never a fallback.
  import/               mcp-recall import — restores a recall__export dump into a store
  install/              mcp-recall install / uninstall / status — writes to ~/.claude.json, settings.json, CLAUDE.md
  learn/                mcp-recall learn — reads ~/.claude.json, spawns MCP servers via stdio, generates TOML profiles
  profiles/             mcp-recall profiles subcommands (list, install, update, remove, seed, feed, check, test, info, available, retrain)
tests/                  Bun tests, co-located by module name
.claude-plugin/         Root plugin manifest (local dev / manual install)
hooks/hooks.json        Hook definitions — canonical source, copied to plugins/ on build
plugins/mcp-recall/     Marketplace-installable plugin bundle
  dist/                 Bundled server.js + cli.js (bun build --target bun)

Read the full file on GitHub · 194 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 Changed · +1 lines · +38 tokens per session bca943faa824
  2. 5d ago Changed · +1 lines · +24 tokens per session 456559a1aa70
  3. 9d ago Changed · +6 lines · +133 tokens per session 15957cf9b51e
  4. 10d ago Changed · +4 lines · +80 tokens per session 34d10c91a579
  5. 17d ago Changed · +78 tokens per session 215df5bef46a
  6. 22d ago Changed · +26 tokens per session 77a6f7efda9e
  7. 1mo ago Changed · -3 tokens per session df3b54dbd173
  8. 1mo ago Changed · +65 tokens per session 3b5e2db5be32
  9. 2mo ago First seen · 182 lines · 2,923 tokens per session scan A 354ab614f61a

Subscribe to this mod's changes

mcp-recall CLAUDE.md is an instructions file published in the GitHub repository sakebomb/mcp-recall (9 stars, last pushed 4d ago), licensed MIT. It adds 3,364 tokens to every session, about $0.0135 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.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,461 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,750 tokens

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens