agentleFS
mnemox-aimnemox-ai/tradememory-protocol/llms.txt

tradememory-protocol

llms.txt1.4k starsChanged 9 months agoMITView on GitHub

Open-source, local-first memory and brake for AI trading agents, over MCP. It syncs fills (Hyperliquid by address, Alpaca read-only), finds where a trader's own history loses money, returns losing trades from similar conditions before the next order, and can refuse orders that break the trader's rules before they reach the broker (Alpaca MCP proxy, preview). TradeMemory Protocol is an open-source memory layer for AI-assisted trading systems. The memory server never places orders; tradememory sync reads fills from a venue, and…

  • Installs packages

Trending

More talk lately.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 2 mentionsMar 2026: 3 mentionsApr 2026: 0 mentionsMay 2026: 1 mentionJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 1 mentionOct 2026: 1 mentionNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the mnemox-ai/tradememory-protocol repository that our weekly crawl found: only 8 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about mnemox-ai/tradememory-protocol

The biggest 5 of 8 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 8

Talked about on GitHub and Hacker News (8 times).

On GitHub · 7

2 more on GitHub

On Hacker News · 1

The file

We split this llms.txt into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Add to claude_desktop_config.json: { "mcpServers": { "tradememory": { "command": "uvx", "args": ["tradememory-protocol"] } } }

    line 21

≈ “Common” is an estimate: at least 1 in 5 of the 1,484 llms.txt files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
llms.txt
# TradeMemory Protocol

> Open-source, local-first memory and brake for AI trading agents, over MCP. It syncs fills (Hyperliquid by address, Alpaca read-only), finds where a trader's own history loses money, returns losing trades from similar conditions before the next order, and can refuse orders that break the trader's rules before they reach the broker (Alpaca MCP proxy, preview).

TradeMemory Protocol is an open-source memory layer for AI-assisted trading systems. The memory server never places orders; `tradememory sync` reads fills from a venue, and the optional proxy sits in front of a broker's MCP server. Memory is organized in three layers:

- L1 (Raw Trades): Every trade recorded automatically with full metadata
- L2 (Patterns): AI discovers what works and what doesn't across trade history
- L3 (Strategy): Memory becomes judgment — adaptive risk and strategy refinement

Key capabilities:
- 20 MCP tools, including remember_trade, recall_memories (order="losses_first" before a trade), get_behavioral_analysis, check_trade_legitimacy, and the audit-chain tools
- tradememory sync hyperliquid / alpaca: fills to closed trades to memory, plus a descriptive loss report
- tradememory proxy (preview): a policy brake in front of Alpaca's MCP server
- MT5 and Binance spot sync scripts in scripts/
- SHA-256 hash-chained, tamper-evident decision records with daily Merkle roots

## Install

### Claude Desktop
Add to claude_desktop_config.json:
{
  "mcpServers": {
    "tradememory": {
      "command": "uvx",
      "args": ["tradememory-protocol"]
    }
  }
}

### Claude Code
claude mcp add tradememory -- uvx tradememory-protocol

### pip
pip install tradememory-protocol

## Documentation

- [README](https://github.com/mnemox-ai/tradememory-protocol#readme): Full documentation with architecture diagrams.
- [PyPI](https://pypi.org/project/tradememory-protocol/): Install via `pip install tradememory-protocol`.
- [Connect your agent](https://github.com/mnemox-ai/tradememory-protocol#connect-your-agent): Claude Desktop, Claude Code, source, Docker.

## MCP Tools

- Memory: remember_trade, recall_memories, get_strategy_performance, get_trade_reflection, get_behavioral_analysis, get_agent_state, create_trading_plan, check_active_plans
- Audit: export_audit_trail, verify_audit_hash, verify_audit_chain, get_daily_root
- Checks: validate_strategy, check_trade_legitimacy, compute_dqs
- Evolution (research): evolution_fetch_market_data, evolution_discover_patterns, evolution_run_backtest, evolution_evolve_strategy, evolution_get_log

## Optional

- [Getting Started](https://github.com/mnemox-ai/tradememory-protocol/blob/master/docs/GETTING_STARTED.md): Trader and developer walkthroughs.
- [MT5 Setup](https://github.com/mnemox-ai/tradememory-protocol/blob/master/docs/MT5_SYNC_SETUP.md): Syncing MetaTrader 5 trades.
- [Alpaca brake walkthrough](https://github.com/mnemox-ai/tradememory-protocol/blob/master/docs/recipes/alpaca-brake.md): The proxy in front of Alpaca's MCP server, with real outputs.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.