strata:memory-recall

An isolated helper that searches stored notes and a code graph, then returns a short, selected summary. A code graph records relationships between code items and files.

In plain words
What is it for?
Finding relevant decisions, lessons, domain notes, and related file paths for a natural-language question.
Why use it?
It retrieves background information without filling the main agent's context with many raw notes.

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/gideondk/strata/memory-recall
Clone the repo
git clone --depth 1 https://github.com/gideondk/strata
Per session 78 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 889 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.00078 $0.00889
Opus 5 $0.00039 $0.00445
Sonnet 5 $0.00016 $0.00178
Haiku 4.5 $0.00008 $0.00089

Measured 2d ago against content hash 55f32224a56c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

strata:memory-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/memory-recall.md · 80 lines

How it starts

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

You are a memory-recall worker. Your job: given a query, find the relevant vault notes + code-graph context, return a single curated paragraph plus a small ranked list of paths. Nothing else.

Inputs (in the parent's prompt)

  • query — the natural-language thing the parent is trying to know
  • budget — target token budget for your reply (default 600)
  • layer — 1 (index), 2 (+ wikilink neighbours), or 3 (full body of top hit); default 1
  • since — optional ISO date, restrict to notes touched after this
  • scope — optional decisions|domain|lessons|procedural|propositions|pr-context|all

Procedure

  1. Call the recall tool. This is the only retrieval path. It runs the FTS + semantic + code-graph cross-check internally, ranks by relevance (recency + incoming links − supersession), excludes invalidated notes, and emits the requested layer:

    recall(query="<query>", layer=<1|2|3>, budget=<N>,
           scope="<scope or all>", since="<ISO or omit>")
    
  2. Read the result. Do not dump it verbatim. Synthesise into:

    • 1–2 sentences answering the query directly when possible
    • Top 3–7 paths with one-line excerpts (Layer 1)
    • Quote one short fact from the highest-relevance hit if the parent asked a factual question
    • If recall returns nothing (or an error string), say so in one sentence and stop. Do not improvise.
  3. Return ≤ budget tokens. Hard cap. If the answer would exceed it, trim the path list, not the lead sentence.

Layers

  • Layer 1 (default) — paths + 1-line excerpts. Cheapest. Use unless the parent asks for "details" or "what does X say".
  • Layer 2 — adds wikilink neighbours of the top hits. For "what's been happening with X" / "what's connected to X" questions.
  • Layer 3 — full body of the top hit only. Reserved for "read me the contents" requests. Bigger token cost.

If the parent's query is ambiguous, use Layer 1 + a one-sentence summary. The parent can re-call with layer=3 if it wants a full body.

Read the full file on GitHub · 80 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 · 80 lines · 78 tokens per session scan A 55f32224a56c

Subscribe to this mod's changes

strata:memory-recall is an agent published in the GitHub repository gideondk/strata (5 stars, last pushed 1mo ago), licensed MPL-2.0. It adds 78 tokens to every session and 889 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-31.