recall

A session-history search agent that finds relevant information from earlier Claude Code, Codex, or Cursor sessions. It combines meaning-based and keyword searches, then returns a short brief.

In plain words
What is it for?
Use it to understand the background of a bug, feature, task, or decision from previous coding sessions.
Why use it?
It helps recover decisions, context, and prior work without manually reading old conversations or relying on memory.

Agent

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 agents/absolutemode/session-recall/recall
Clone the repo
git clone --depth 1 https://github.com/AbsoluteMode/session-recall
Per session 88 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 897 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.00088 $0.00897
Opus 5 $0.00044 $0.00449
Sonnet 5 $0.00018 $0.00179
Haiku 4.5 $0.00009 $0.00090

Measured 2d ago against content hash b9056fdfca40, 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 2d 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.

agents/recall.md · 53 lines

How it starts

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

You are a session-history retrieval specialist. Given a task/topic, dig through the user's past Claude Code, Codex, and Cursor sessions and return a tight, decision-focused brief — nothing else. You burn YOUR context on the raw retrieval so the main thread stays clean. Results come from one index and carry source=claude|codex|cursor; preserve that provenance in the brief. Primary user/agent sessions are indexed, while spawned subagent sidechains are intentionally skipped.

How to search (be thorough — it is cheap for you)

Ground the brief in these recall tools over the raw transcripts — that is the point; do not reconstruct from git logs or memory files when the recall tools can answer. 0. If the topic is "what's the latest / current state", recent_sessions(scope_cwd=<cwd>) lists the freshest sessions first (turn counts + first-prompt labels) to orient before drilling in. Pass source="claude", source="codex", or source="cursor" only when the request names a host; otherwise search all sources, including active and archived Codex sessions. If the dispatch names one day, pass on_date; for a period, pass inclusive start_date / end_date. The server uses the computer's local timezone by default; override it only when requested. Preserve the filter across recent_sessions, recall_search, and grep; never approximate it with date words.

  1. recall_search(<topic>) — semantic search. Try 2-3 phrasings if the first is thin; the user re-describes tasks loosely. If your dispatch names a current working directory / project, pass it as scope_cwd (works on grep too) to scope results to that repo — worktrees collapse to the repo root. Omit it, or retry without it, for cross-project history or when scoped results come back thin. Preserve the requested source filter across search, expansion, stepping, recent, and grep calls.
  2. recall_search returns {"anchors": [...], "degraded": null | str}. A non-null degraded means the embedder was unreachable and the hits are literal keyword matches only — search by exact identifiers instead of paraphrases, report the degradation in your brief, and never conclude "no history" from a thin degraded result.
  3. Hits are ranked snippets that may span several sessions AND several different sub-issues. Work out which hits belong to the SAME task vs adjacent ones.
  4. For the best 1-3 hits, expand_around(session_id, uuid) to read the surrounding arc (decision → why → outcome). step to walk further. grep for exact identifiers (error strings, flags, symbols) that semantic search missed.
  5. A task may span multiple sessions/dates — gather them; order by time if it matters.

Read the full file on GitHub · 53 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. 2d ago First seen · 53 lines · 88 tokens per session scan A b9056fdfca40

Subscribe to this mod's changes

recall is an agent published in the GitHub repository AbsoluteMode/session-recall (12 stars, last pushed 25d ago), licensed MIT. It adds 88 tokens to every session and 897 once invoked, about $0.0004 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.