DeepTraderX: Instructions file for Codex

AGENTS.md

DeepTraderX AGENTS.md is an instructions file for Codex, OpenCode from armandcismaru/DeepTraderX. It costs 3,147 tokens per session, scanned A, original, MIT.

A project instruction file for DeepTraderX, academic software that trains an automated trading agent inside a simulated stock market.

In plain words
What is it for?
Use it when developing or testing the LSTM trading agent, its simulated market, or the project's documentation and security notes.
Why use it?
It distinguishes the research simulator from real trading and records how to run, verify, and handle known defects securely.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

This is armandcismaru/DeepTraderX's own configuration. It tells Codex and OpenCode how to work on DeepTraderX itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything DeepTraderX configures →

Reuse

Borrowing it

Nothing to install: this file belongs to armandcismaru/DeepTraderX. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/armandcismaru/DeepTraderX/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/armandcismaru/DeepTraderX

Made for: Codex, OpenCode.

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 DeepTraderX AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/armandcismaru/deeptraderx/agents-md/github.svg)](https://agentmods.dev/instructions/armandcismaru/deeptraderx/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/armandcismaru/deeptraderx/agents-md"><img src="https://agentmods.dev/badge/instructions/armandcismaru/deeptraderx/agents-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.

agentmods 80×15 button for DeepTraderX AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/armandcismaru/deeptraderx/agents-md"><img src="https://agentmods.dev/badge/instructions/armandcismaru/deeptraderx/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,147 This file is loaded in full into every session.
When invoked 3,147 The same file — it is already loaded in full.
Security scan A 1 finding. 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.03147 $0.03147
Opus 5.5 $0.01259 $0.01259
Sonnet 5.5 $0.00629 $0.00629
Haiku 4.5 $0.00315 $0.00315

Measured 2mo ago against content hash 05d5cfd2ec71, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

DeepTraderX AGENTS.md scanned grade A with 1 finding 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

2. **`os.system()` with f-string interpolation.**
AGENTS.md · 220 lines

How it starts

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

AGENTS.md — Guidance for AI agents working on DeepTraderX

This file orients coding agents (and humans) working in this repository. It covers what the project is, how to run and verify it, the conventions to follow, and a catalogue of known bugs, latent defects, and security concerns found by scanning the codebase. Detailed end-user/architecture documentation lives in docs/.

⚠️ docs/ is published publicly via GitHub Pages (.github/workflows/pages.yml). Keep security findings and internal notes in this file and CLAUDE.md (repo root, not published) — never in docs/.


1. What this project is

DeepTraderX (DTX, trader code DTR) is an LSTM-based automated trading agent that competes inside TBSE — the Threaded Bristol Stock Exchange, a Python multi-threaded simulation of a continuous-double-auction limit-order-book market. It is academic research code (an MEng dissertation + ICAART 2024 paper), not a production trading system. There is no live money, no broker, no network listener; it is a self-contained Monte-Carlo market simulator.

The codebase is largely a faithful fork of Dave Cliff's BSE / Michael Rollins's TBSE, with the DeepTrader agent and an offline ML training pipeline added.

2. How to run & verify

# from repo root
python3 -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
cd deep_trader_tbse          # IMPORTANT: run from here
python3 tbse.py              # config-driven run
python3 tbse.py 0 0 0 5 0 0 5   # 5 AA + 5 DTR per side
python3 tbse.py markets.csv     # batch run (prints "Done Now" when finished)
  • Always run from deep_trader_tbse/. Imports (import src.config) and the model path (./src/deep_trader/Models/...) are CWD-relative.
  • The CSV mode prints Done Now on success — that string is what simulation-check.yml greps for. Don't remove it.
  • Lint/format before committing: pylint (config .pylintrc, max line 120) and black. ./checks.sh runs both over every *.py.

Read the full file on GitHub · 220 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. 2mo ago First seen · 220 lines · 3,147 tokens per session scan A 05d5cfd2ec71

Subscribe to this mod's changes

DeepTraderX AGENTS.md is an instructions file published in the GitHub repository armandcismaru/DeepTraderX (22 stars, last pushed 13d ago), licensed MIT. It adds 3,147 tokens to every session, about $0.0126 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

DeepTraderX AGENTS.md compared with instructions from other repositories

DeepTraderX AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
DeepTraderX AGENTS.mdarmandcismaru/DeepTraderXInstructions file2213d agoMITA3,147Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot