recall

recall is a command for Claude Code from mnemox-ai/tradememory-protocol. It costs 9 tokens per session (424 once invoked), scanned A, original, MIT.

A command for finding earlier trades made in similar market conditions and ranking them by their results, similarity, age, and confidence accuracy.

In plain words
What is it for?
Use it when considering a trade to review matching symbols, market conditions, strategies, timeframes, entries, exits, and profits or losses.
Why use it?
It gives a trader relevant past examples instead of relying only on memory or starting the analysis from scratch.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the tradememory-plugin plugin — 3 skills, 5 commands, 1 MCP server shipped together

Good fit Use it when considering a trade to review matching symbols, market conditions, strategies, timeframes, entries, exits, and profits or losses.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/mnemox-ai/tradememory-protocol/recall
About the project

TradeMemory is a memory and audit layer for AI trading agents that records trading decisions, outcomes, and context in a tamper-evident history. It is for traders and automated trading systems that need agents to recall past decisions and document their reasoning. Catalogue add-ons provide skills, commands, MCP tools, and related workflow components for using it.

mnemox-ai/tradememory-protocol · 1,416 stars · on GitHub · mnemox.ai

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.

Clone the repo
git clone --depth 1 https://github.com/mnemox-ai/tradememory-protocol

Made for: Claude Code.

Or install tradememory-plugin, the plugin that ships this one along with the rest of its 3 skills, 5 commands, 1 MCP server.

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 recall

README.md
[![agentmods](https://agentmods.dev/badge/commands/mnemox-ai/tradememory-protocol/recall.svg)](https://agentmods.dev/commands/mnemox-ai/tradememory-protocol/recall)
Your own site
<a href="https://agentmods.dev/commands/mnemox-ai/tradememory-protocol/recall"><img src="https://agentmods.dev/badge/commands/mnemox-ai/tradememory-protocol/recall.svg" alt="Measured on agentmods" height="20"></a>
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 424 The whole file, excluding the scripts and references it only reads on demand.
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.00009 $0.00424
Opus 5 $0.00005 $0.00212
Sonnet 5 $0.00002 $0.00085
Haiku 4.5 $0.00001 $0.00042

Measured 8d ago against content hash 2dfc99306427, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 8d 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.

tradememory-plugin/commands/recall.md · 57 lines

What it actually says

Recall Similar Trades

Search your trading memory for past trades that match the current market context. Results are ranked by Outcome-Weighted Memory (OWM) score — winning trades in similar contexts surface first.

Workflow

Step 1: Define Query Context

If context is provided, use it. Otherwise ask:

  • Symbol: What are you trading?
  • Market conditions: Trending/ranging, volatility level, session
  • Strategy: Which strategy are you considering?
  • Timeframe: What timeframe are you analyzing?

Step 2: Execute Recall

Use the recall_memories MCP tool:

recall_memories({
  query: "market context description",
  memory_types: ["episodic", "semantic", "procedural"],
  limit: 10
})

OWM scoring formula weights:

  • P&L outcome (40%) — profitable trades score higher
  • Context similarity (30%) — matching market conditions
  • Recency (20%) — recent trades weighted more
  • Confidence calibration (10%) — well-calibrated confidence scores weighted more

Step 3: Present Results

For each recalled trade, show:

  1. OWM Score — composite relevance score
  2. Trade summary — symbol, direction, entry/exit, P&L
  3. Context match — what made this trade similar
  4. Lesson — the reflection/takeaway from that trade

Step 4: Synthesize

After listing individual trades, provide:

  • Pattern summary: What do the top results have in common?
  • Win rate in similar contexts
  • Average P&L in similar contexts
  • Recommendation: Based on past experience, should you take this trade?

Example

User: /recall ranging market, low volatility, Asian session, XAUUSD
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. 8d ago First seen · 57 lines · 9 tokens per session scan A 2dfc99306427

Subscribe to this mod's changes

recall is a command published in the GitHub repository mnemox-ai/tradememory-protocol (1,416 stars, last pushed 27d ago), licensed MIT. It adds 9 tokens to every session and 424 once invoked, about $0.0000 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.