Borrowing it
Nothing to install: this file belongs to ed-donner/tradewars. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/ed-donner/tradewars/main/CLAUDE.mdgit clone --depth 1 https://github.com/ed-donner/tradewarsWrote 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/instructions/ed-donner/tradewars/claude-md)<a href="https://agentmods.dev/instructions/ed-donner/tradewars/claude-md"><img src="https://agentmods.dev/badge/instructions/ed-donner/tradewars/claude-md/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/instructions/ed-donner/tradewars/claude-md"><img src="https://agentmods.dev/badge/instructions/ed-donner/tradewars/claude-md.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.03779 | $0.03779 |
| Opus 5.5 | $0.01512 | $0.01512 |
| Sonnet 5.5 | $0.00756 | $0.00756 |
| Haiku 4.5 | $0.00378 | $0.00378 |
Grade A, and why
tradewars CLAUDE.md 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 202 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Tradewars
A battle arena where 4 LLM agents day-trade live US equities for a fixed duration. Each trader starts with $1,000,000, sees realtime market data through the Massive (Polygon) MCP, can persist notes via a per-trader Memory MCP, and competes against three rivals running different frontier models. The clock auto-liquidates everyone at the end and the highest portfolio value wins.
Built with the OpenAI Agents SDK (Python, async), FastAPI + SSE, a Vite + vanilla-TS frontend with uPlot charts, and packaged as a single multi-stage Docker image.
Running locally
Dev (fast inner loop):
# terminal 1 — backend
uv run uvicorn --factory backend.api.app:create_app --port 8000
# terminal 2 — frontend (vite proxies /arena/* to :8000)
cd frontend && npm run dev
# → http://localhost:5173
Container (single port, prod-like):
./scripts/start_mac.sh # builds image, runs with --env-file .env
# → http://localhost:8000
./scripts/stop_mac.sh
Tests:
uv run pytest # 82 unit tests (~4 s)
uv run pytest -m integration # opt-in 90 s real arena via gpt-oss-120b
The integration test is gated behind the integration marker so it doesn't fire on every pytest run — it spawns real MCP subprocesses and hits OpenRouter + Massive.
Required env vars (in .env at repo root): MASSIVE_API_KEY, OPENAI_API_KEY, ANTHROPIC_API_KEY, GOOGLE_API_KEY, DEEPSEEK_API_KEY, OPENROUTER_API_KEY.
Repo layout
backend/
environment/ accounts.py (SQLite), prices.py (Massive REST)
traders/ templates.py (system prompt), models.py (provider factory),
mcp_servers.py (MCP factories), tools.py (get_state/trade),
trader.py (decision-cycle loop)
arena/ arena.py (lifecycle), config.json (model catalog + presets)
api/ app.py (FastAPI: /arena/start|stop|tick|stream|config)
test/ pytest suite + opt-in integration test
frontend/
src/ api.ts, state.ts, theme.ts, topbar.ts, chart.ts (uPlot),
heatmap.ts, log.ts, panel.ts, main.ts, styles.css
index.html sidebar (clock + duration + slot pickers + presets +
start/stop) + 2×2 panels grid
vite.config.ts dev proxy to :8000
scripts/ start_mac.sh, stop_mac.sh
Dockerfile multi-stage (node frontend → python+uv runtime)
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.
- 2mo ago First seen · 202 lines · 3,779 tokens per session scan A dc59b952296d
tradewars CLAUDE.md is an instructions file published in the GitHub repository ed-donner/tradewars (22 stars, last pushed 5mo ago), licensed MIT. It adds 3,779 tokens to every session, about $0.0151 per session on Opus 5.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.
tradewars CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| tradewars CLAUDE.mded-donner/tradewars | Instructions file | 22 | 5mo ago | MIT | A | 3,779 | Claude Code |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,649 | GitHub Copilot |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |
| vscode model-prompts.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 2,022 | GitHub Copilot |