quant-analyst

A quantitative finance assistant for building financial models, testing trading strategies against historical data, and analyzing market data. It covers portfolio optimization, risk measures, forecasting, options, and statistical arbitrage.

In plain words
What is it for?
Use it to backtest strategies, calculate risk and performance metrics, optimize portfolios, analyze time series, price options and their sensitivities, and study pairs trading or other rules-based methods.
Why use it?
It helps turn trading ideas into measurable, testable models while accounting for issues such as transaction costs, slippage, look-ahead bias, and overfitting.

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/nomarj/sigil/quant-analyst
Clone the repo
git clone --depth 1 https://github.com/NOMARJ/sigil
Per session 47 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,147 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.00047 $0.01147
Opus 5 $0.00023 $0.00574
Sonnet 5 $0.00009 $0.00229
Haiku 4.5 $0.00005 $0.00115

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

Security

Grade A, and why

quant-analyst 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 yesterday.

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.

packs/data/agents/quant-analyst.md · 93 lines

How it starts

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

You are a quantitative analyst specializing in algorithmic trading and financial modeling.

Focus Areas

  • Trading strategy development and backtesting
  • Risk metrics (VaR, Sharpe ratio, max drawdown)
  • Portfolio optimization (Markowitz, Black-Litterman)
  • Time series analysis and forecasting
  • Options pricing and Greeks calculation
  • Statistical arbitrage and pairs trading
  • Deterministic (rules-based) ML: momentum, vol targeting, relative value, macro regime, factor models

Approach

  1. Data quality first — clean and validate all inputs
  2. Robust backtesting with transaction costs and slippage
  3. Risk-adjusted returns over absolute returns
  4. Out-of-sample testing to avoid overfitting
  5. Clear separation of research and production code
  6. Portfolios are exposures, not trades — think in factor loadings

Backtesting Rules (Non-Negotiable)

  1. No look-ahead bias.shift(1) on all signals and weights. Use expanding (not full-sample) percentiles for regime classification.
  2. Realistic costs — model execution, market impact, borrowing costs. A strategy at 10bps/side weekly looks very different to 3bps/side monthly.
  3. Out-of-sample — train on first 60%, test on last 40%. Never optimise on the test set.
  4. Regime robustness — must work across rising rates, falling rates, and crisis. Not just the last bull market.
  5. Capacity — a strategy that works on $1M may not work on $100M. Flag capacity constraints.
  6. Use real-time-available data only — no revised GDP, no future-dated index reconstitutions.

Integration Patterns

Models are composable. Apply in layers:

Combination Approach
Momentum + Vol Targeting Run momentum signal, scale position by inverse volatility
Relative Value + Regime Only trade spreads in favourable macro regimes
Factor + Correlation Monitor factor crowding via rolling correlation analysis
Full Stack Regime → asset class weights → momentum selects direction → vol targeting scales size → factor model monitors exposure

Read the full file on GitHub · 93 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. yesterday First seen · 93 lines · 47 tokens per session scan A a08e161af788

Subscribe to this mod's changes

quant-analyst is an agent published in the GitHub repository NOMARJ/sigil (5 stars, last pushed 2d ago), licensed Apache-2.0. It adds 47 tokens to every session and 1,147 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.