recall

A command that searches Gnosys memories and returns relevant saved context for an agent or host application. It can filter results by project, user, or global scope.

In plain words
What is it for?
Use it to retrieve context for a query, return JSON or host-friendly output, limit results, or search across configured scopes.
Why use it?
It saves time by finding prior decisions and information instead of making you search memory stores manually.

Command

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/proticom/gnosys/recall
Clone the repo
git clone --depth 1 https://github.com/proticom/gnosys
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 558 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.00000 $0.00558
Opus 5 $0.00000 $0.00279
Sonnet 5 $0.00000 $0.00112
Haiku 4.5 $0.00000 $0.00056

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

docs/commands/recall.md · 65 lines

How it starts

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

gnosys recall

Return relevant memories as injectable context for agents and hosts.

Usage

gnosys recall "auth tokens"
gnosys recall "auth tokens" --host
gnosys recall "auth tokens" --json
gnosys recall "auth tokens" --federated --scope project,user
gnosys recall "auth tokens" --aggressive --trace-id my-trace-001

Options

Option Description
--limit <n> Max memories to return (default from config, federated default 10)
--aggressive Force aggressive mode (inject medium-relevance memories)
--no-aggressive Force filtered mode (hard cutoff at minRelevance)
--trace-id <id> Trace ID for audit correlation (legacy path)
--json Output raw JSON
--host Host-friendly <gnosys-recall> XML-like format
--federated Federated search with tier boosting
--scope <scope> Filter scopes: project, user, global (comma-separated)
-d, --directory <dir> Project directory for federated context

Federated path

When --federated or --scope is set:

  1. Opens central DB; exits if unavailable.
  2. Calls federatedSearch with project detection and scope filter.
  3. Outputs recall-like JSON structure, <gnosys-recall> host format, or human list.

Legacy path (default)

When not using federated/scope:

  1. Creates GnosysResolver, resolves stores; exits if none.
  2. Initializes audit via initAudit(storePath).
  3. Loads config and merges aggressive override from CLI flags.
  4. Builds search index and calls recall(query, ...).
  5. Outputs JSON, formatRecall (host), or formatRecallCLI (human).
  6. Closes audit via closeAudit().

Output formats

  • JSON — structured recall result (legacy) or federated memory list
  • Host (--host)<gnosys-recall> wrapper for MCP/host injection
  • CLI default — human-readable formatted recall block

Validation

cd gnosys-public
npm run cli -- recall --help
  • gnosys discover / gnosys search — browse without recall formatting.
  • gnosys ask — LLM synthesis over retrieved memories.

Read the full file on GitHub · 65 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 · 65 lines · 0 tokens per session scan A 527a17bc8330

Subscribe to this mod's changes

recall is a command published in the GitHub repository proticom/gnosys (4 stars, last pushed 16d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 558 tokens. 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.