Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/mahmoud20138/Tradecraftnpx agentmods add skills/mahmoud20138/tradecraft/brain-ecosystem-mcpWrote 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.
[](https://agentmods.dev/skills/mahmoud20138/tradecraft/brain-ecosystem-mcp)<a href="https://agentmods.dev/skills/mahmoud20138/tradecraft/brain-ecosystem-mcp"><img src="https://agentmods.dev/badge/skills/mahmoud20138/tradecraft/brain-ecosystem-mcp/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/mahmoud20138/tradecraft/brain-ecosystem-mcp"><img src="https://agentmods.dev/badge/skills/mahmoud20138/tradecraft/brain-ecosystem-mcp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00057 | $0.37388 |
| Opus 5 | $0.00028 | $0.18694 |
| Sonnet 5 | $0.00011 | $0.07478 |
| Haiku 4.5 | $0.00006 | $0.03739 |
Grade C, and why
brain-ecosystem-mcp scanned grade C with 2 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 12d 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.
Downloads and executes remote codehighSupply chain
curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.
curl -fsSL https://cdn.jsdelivr.net/gh/ruvnet/claude-flow@main/scripts/install.sh | bash Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -fsSL https://cdn.jsdelivr.net/gh/ruvnet/claude-flow@main/scripts/install.sh | bash How it starts
The opening of the file, as written. The whole thing — 4,438 lines — stays where its author put it; the contents beside it link to each section on GitHub.
brain-ecosystem-mcp
USE FOR:
- "self-learning AI brain for Claude Code"
- "persistent memory MCP server"
- "autonomous research agent with hypothesis testing"
- "trading brain with adaptive strategies"
- "MCP server with 280+ tools"
- "AI that learns from errors across sessions"
- "dream mode memory consolidation" tags: [MCP, self-learning, autonomous, Claude-Code, Trading-Brain, error-memory, knowledge-graph, CCXT, persistent-memory, Hebbian] kind: tool category: mcp-integration
What Is Brain Ecosystem?
3 autonomous self-learning AI brains running as MCP servers, designed for Claude Code.
- Repo: https://github.com/timmeck/brain-ecosystem
- Install:
npm install -g @timmeck/brain && brain setup - Architecture: Each brain = separate process, separate SQLite DB, separate port
- Communication: IPC named pipes between brains (Hebbian synapse network)
- Dashboard: Command Center at
localhost:7790(13 pages of metrics)
"117+ autonomous engines run in feedback loops — observing, detecting anomalies, forming hypotheses, testing and falsifying them statistically"
Three Brains
| Brain | Port | Tools | Specialty |
|---|---|---|---|
| Brain | 7777-7778 | 280 | Error memory, code intelligence, autonomous research |
| Trading Brain | 7779-7780 | 181 | Adaptive trading, paper trading, signal learning, backtesting |
| Marketing Brain | 7781-7782 | 177 | Content strategy, cross-platform optimization |
| Command Center | 7790 | — | Unified dashboard, 13 monitoring pages |
Installation
# Main brain
npm install -g @timmeck/brain
brain setup # configures Claude Code MCP automatically
# Trading brain
npm install -g @timmeck/trading-brain
trading setup
# Marketing brain
npm install -g @timmeck/marketing-brain
marketing setup
For Cursor/Windsurf/Cline (HTTP/SSE):
{
"mcpServers": {
"brain": {
"url": "http://localhost:7778/sse"
}
}
}
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.
- 12d ago First seen · 4,438 lines · 0 tokens per session scan C b3b7bd94600f
brain-ecosystem-mcp is a skill published in the GitHub repository mahmoud20138/Tradecraft (15 stars, last pushed 4mo ago), licensed MIT. It adds 57 tokens to every session and 37,388 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
self-improve
Extract lessons from the current session, or sweep the project's past sessions when asked, and route them to the appropriate knowledge layer (project AGENTS.md, auto memory, existing skills, or new skills). Use when the user asks to "self-improve", "distill this session", "distill past sessions", "sweep past…
recall-reasoning
Recall the reasoning behind a past change by locating the Claude Code transcript that produced it. Use when the user asks to "recall reasoning", "find reasoning", "look up reasoning", "recall implementation reasoning", "find the rationale", "why did I do X", "recall from transcripts", or "find the transcript for this…
install-memu
Install or uninstall memU for whatever agent you are — identify your host, print its packaged guide, and follow it to wire (or unwire) both seams (record and inject). Use when the user asks to install, set up, integrate, remove, or uninstall memU.
agent-wiki
Incremental LLM-friendly wiki generator for Obsidian note vaults. Use when: (1) Building wiki from notes, (2) Ingesting notes to wiki, (3) Obsidian LLM wiki, (4) Incremental knowledge base management. Triggers: 'build wiki from notes', 'ingest notes to wiki', 'Obsidian LLM wiki', 'incremental knowledge base'.
capability-evolver
Self-evolution workflow for the agent. Before substantive work, recall past outcomes from evolution memory; while editing, detect improvement signals; at task end, record the outcome; when reusable, distill or search the EvoMap network for proven genes/capsules. Use when the user starts non-trivial work (a feature, a…
agent-memory-mcp
A hybrid memory system that provides persistent, searchable knowledge management for AI agents (Architecture, Patterns, Decisions).