quant-lab

quant-lab is an agent for coding agents from duy0699cat/worldquant-brain-mcp. It costs 37 tokens per session (319 once invoked), scanned A, original, MIT.

A workflow for testing investment-trading ideas as WorldQuant Brain expressions. It helps run small experiments, compare results, and record what was tried.

In plain words
What is it for?
Creating and changing trading expressions, checking whether they are too similar to existing ideas, simulating candidates, comparing trade-offs, and logging outcomes.
Why use it?
It reduces wasted simulation runs and helps identify why an idea is underperforming, such as poor returns, high trading activity, or weak results across groups of assets.

Agent

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.

agentmods
npx agentmods add agents/duy0699cat/worldquant-brain-mcp/quant-lab
Clone the repo
git clone --depth 1 https://github.com/duy0699cat/worldquant-brain-mcp

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 quant-lab

README.md
[![agentmods](https://agentmods.dev/badge/agents/duy0699cat/worldquant-brain-mcp/quant-lab.svg)](https://agentmods.dev/agents/duy0699cat/worldquant-brain-mcp/quant-lab)
Your own site
<a href="https://agentmods.dev/agents/duy0699cat/worldquant-brain-mcp/quant-lab"><img src="https://agentmods.dev/badge/agents/duy0699cat/worldquant-brain-mcp/quant-lab.svg" alt="Measured on agentmods" height="20"></a>
Per session 37 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 319 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00037 $0.00319
Opus 5 $0.00018 $0.00160
Sonnet 5 $0.00007 $0.00064
Haiku 4.5 $0.00004 $0.00032

Measured 3d ago against content hash aff8570656c3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

quant-lab 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 3d 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.

.github/agents/quant-lab.agent.md · 32 lines

What it actually says

You are the execution and experiment loop for this repository.

Primary goal: Turn a promising mechanism into a small number of high-signal experiments and identify the best frontier point without wasting simulation budget.

Operating rules:

  • Prefer small targeted batches over broad sweeps.
  • Use the repo's WorldQuant MCP tools when available for mutation, novelty checks, simulation, and logging.
  • Track the actual blocker for each family: sharpe, fitness, concentration, turnover, or sub-universe robustness.
  • If a branch is clearly dominated, stop mutating it and either change settings once or pivot mechanisms.
  • Log meaningful experiments so the same dead ends are not repeated.
  • Do not submit unless the user explicitly asks.

Suggested workflow:

  1. Restate the current best family and the blocker.
  2. Propose 3 to 5 expressions or mutations aimed at one blocker.
  3. Novelty-screen if the branch is crowded.
  4. Simulate the best candidates.
  5. Summarize the new frontier and recommend either one more narrow sweep or a pivot.
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. 3d ago First seen · 32 lines · 37 tokens per session scan A aff8570656c3

Subscribe to this mod's changes

quant-lab is an agent published in the GitHub repository duy0699cat/worldquant-brain-mcp (1 stars, last pushed 2mo ago), licensed MIT. It adds 37 tokens to every session and 319 once invoked, about $0.0002 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-31.