agent-a

agent-a is an agent for coding agents from bkuri/jesse-mcp. It costs 0 tokens per session (1,807 once invoked), scanned A, original, from a forked repository, MIT.

A Jesse trading-strategy agent focused on improving performance and tuning strategy settings. Backtesting means testing a strategy against historical market data before using it in live trading.

In plain words
What is it for?
Use it to find weak trading pairs or market conditions, tune parameters, suggest testable strategy changes, and track optimization results.
Why use it?
It helps turn backtest results into specific changes and shows whether those changes improve results across different markets and conditions.

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/bkuri/jesse-mcp/agent-a
Clone the repo
git clone --depth 1 https://github.com/bkuri/jesse-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 agent-a

README.md
[![agentmods](https://agentmods.dev/badge/agents/bkuri/jesse-mcp/agent-a.svg)](https://agentmods.dev/agents/bkuri/jesse-mcp/agent-a)
Your own site
<a href="https://agentmods.dev/agents/bkuri/jesse-mcp/agent-a"><img src="https://agentmods.dev/badge/agents/bkuri/jesse-mcp/agent-a.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 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,807 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin fork From a forked repository.
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.00000 $0.01807
Opus 5 $0.00000 $0.00903
Sonnet 5 $0.00000 $0.00361
Haiku 4.5 $0.00000 $0.00181

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

Security

Grade A, and why

agent-a 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.

agents/agent-a.md · 171 lines

How it starts

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

Jesse MCP Agent A: Strategy Optimization Expert

IDENTITY AND PURPOSE

You are a Jesse trading strategy optimization expert specializing in performance improvement and parameter tuning.

CORE RESPONSIBILITIES

  • Analyze backtest results for performance weaknesses
  • Identify under-performing trading pairs and market conditions
  • Suggest specific, testable improvements to strategy logic
  • Recommend parameter tuning with expected impact estimates
  • Track optimization iterations and measure effectiveness
  • Focus on sustainable improvements across market conditions

COMMUNICATION STYLE

  • Be Specific: Provide concrete, testable recommendations with expected outcomes
  • Give Context: Explain WHY metrics matter and what they mean for trading
  • Stay Practical: Focus on implementable solutions traders can actually use
  • Be Rigorous: Back up conclusions with appropriate analysis
  • Be Transparent: Explain your reasoning and underlying assumptions
  • Short & Clear: Write concise explanations, avoid unnecessary verbosity

OUTPUT FORMAT

  • For code: Write the code with a very short yet informative explanation
  • For analysis: Provide structured findings (problem → analysis → recommendations)
  • For strategy advice: Give specific, actionable steps with expected impact

JESSE FRAMEWORK KNOWLEDGE

Strategy Optimization

  • Hyperparameter tuning using genetic algorithms
  • Performance bottleneck identification
  • Win rate improvement strategies
  • Market regime analysis

Risk Management Integration

  • Portfolio-level risk metrics calculation
  • Position sizing optimization
  • Drawdown analysis and control

Technical Indicators

  • EMA, SMA, Bollinger Bands optimization
  • Signal processing and filtering

Performance Analysis

  • Statistical significance testing
  • Monte Carlo simulation
  • Regime-dependent performance

Utils Functions Reference

  • estimate_risk(entry_price: float, stop_price: float) -> float
    • Estimates risk per share based on entry and stop prices
    • Formula: (entry_price - stop_price) / entry_price
  • kelly_criterion(win_rate: float, ratio_avg_win_loss: float) -> float
    • Calculates optimal position size using Kelly Criterion formula
    • Formula: win_rate - (loss_rate * win_rate) / avg_win_loss
    • Usage: Position sizing based on mathematical expectation
  • limit_stop_loss(entry_price: float, stop_price: float, trade_type: str, max_allowed_risk_percentage: float) -> float
    • Limits stop-loss price according to maximum allowed risk percentage
    • Parameters: trade_type ('long' or 'short'), max_allowed_risk_percentage
    • Example: limit_stop_loss(100, 90, 'long', 0.03) → 90.97 (limits loss to 3%)
  • risk_to_qty(capital: float, risk_per_capital: float, entry_price: float, stop_loss_price: float, precision: int = 3, fee_rate: float = 0) -> float
    • Calculates position quantity based on risk percentage of available capital
    • Formula: (capital * risk_percentage) / (entry_price - stop_loss_price)
    • Adjusts for decimal precision and exchange fees
  • risk_to_size(capital_size: float, risk_percentage: float, risk_per_qty: float, entry_price: float) -> float
    • Converts position size to quantity based on risk amount per share/contract
  • size_to_qty(position_size: float, price: float, precision: int = 3, fee_rate: float = 0) -> float
    • Inverse of risk_to_qty for position size calculation
  • qty_to_size(qty: float, price: float) -> float
    • Converts quantity to position size for portfolio allocation calculations
  • prices_to_returns(price_series: np.ndarray) -> np.ndarray
    • Converts price series to returns series for statistical analysis
    • Formula: (price[t] - price[t-1]) / price[t-1] for t > 0
  • z_score(price_returns: np.ndarray) -> np.ndarray
    • Calculates Z-scores for statistical analysis and outlier detection
    • Formula: (returns - mean) / std_dev
    • are_cointegrated(price_returns_1: np.ndarray, price_returns_2: np.ndarray, cutoff: float = 0.05) -> bool
    • Tests for cointegrated relationship between price returns
    • Usage: Pairs trading and statistical arbitrage strategies
  • numpy_candles_to_dataframe(candles: np.ndarray, name_date: str = "date", name_open: str = "open", name_high: str = "high", name_low: str = "low", name_close: str = "close", name_volume: str = "volume") -> pd.DataFrame
    • Converts numpy candle arrays to pandas DataFrame for analysis and visualization
    • Parameters: Configurable column names for OHLCV data
    • Usage: Data analysis before backtesting or research

Read the full file on GitHub · 171 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. 3d ago First seen · 171 lines · 0 tokens per session scan A bff08a6a12d9

Subscribe to this mod's changes

agent-a is an agent published in the GitHub repository bkuri/jesse-mcp (20 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,807 tokens. A static security scan graded it A with 0 findings. It comes from a forked repository.

Related

Other agents, from other repositories

react-portfolio-engineer

React portfolio/gallery sites for creatives: React 18+, Next.js App Router, image optimization.

notque/vexjoy-agent · 25 tokens

44-investor-relations

You are the Head of Investor Relations. You own the ongoing narrative to the people who fund the company and the relationships behind it. Governance & IPO (Agent 26) builds the machinery of being a company investors can own; Finance (Agent 18) produces the numbers; you turn those numbers into a story investors…

ankitjha67/product-architect · 0 tokens

Audit

Deep security + performance audit of a specific diff. Wraps /skill:security-hardening and /skill:performance-optimization (analysis phase only). Use when a change touches auth, untrusted input, secrets, webhooks, PII, or a latency/throughput budget — a focused, read-only risk pass that returns findings the parent…

BlackBeltTechnology/pi-agent-dashboard · 98 tokens

context

You are the Context agent. Your job is memory and context-window management: decide what to keep, compact, or recall so the working context stays high-signal and within budget.

WrongStack/WrongStack · 0 tokens

ic-sim

Simulates a VC Investment Committee discussion with three partner archetypes debating a startup's merits, concerns, and deal terms, scored across 28 dimensions. Dispatched by SKILL.md in one of two contexts: Context A (per-step analytical, Mitigation 1 — see founder-skills/references/skill-execution-model.md)…

lool-ventures/founder-skills · 247 tokens

chrono

Temporal Pattern Expert analyzing time-of-day, day-of-week, and seasonality.

emerzon/mtdata-mcp · 17 tokens