jesse AGENTS.md

A repository guide for Jesse, an open-source Python system for testing crypto trading strategies against historical data and running live trading tools. It explains the codebase and the instructions available to coding agents.

In plain words
What is it for?
Use it when navigating the Jesse repository, finding its agent instructions, or deciding which project-specific guide applies to a task.
Why use it?
It gives an agent the project structure, technology context, and rules it must check before changing code. This reduces guesswork in a large, multi-repository trading project.

Instructions file for CodexOpenCode

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 instructions/jesse-ai/jesse/agents-md
Clone the repo
git clone --depth 1 https://github.com/jesse-ai/jesse

Made for: Codex, OpenCode.

Per session 2,749 This file is loaded in full into every session.
When invoked 2,749 The same file — it is already loaded in full.
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.02749 $0.02749
Opus 5 $0.01375 $0.01375
Sonnet 5 $0.00550 $0.00550
Haiku 4.5 $0.00275 $0.00275

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

Security

Grade A, and why

jesse AGENTS.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 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.md · 219 lines

How it starts

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

Jesse Repository Guide for AI Agents

Overview

The jesse repository is the core open-source framework of the Jesse trading system. It contains the main Python codebase for backtesting trading strategies, importing historical data from crypto exchanges, running optimizations, and providing the API backend for the dashboard. It glues together the other repositories and makes them work together.

Skills

This repo stores shared Agent Skills in .claude/skills/ — focused, task-specific playbooks used by Claude Code and Codex. Codex also discovers them through the repository-relative .agents/skills symlink.

Before starting a task, scan the YAML frontmatter of every .claude/skills/*/SKILL.md. When a skill's description matches the task, read that SKILL.md completely before acting. A matching skill is the authoritative reference for what it covers, and its details are deliberately kept out of this file. This scan is the cross-platform fallback if native skill discovery or symlink support is unavailable.

  • jesse-strategy-tests — conventions for writing Jesse strategy and engine tests.

Key Characteristics

Central Framework

  • jesse-live depends on this - Changes here affect live trading
  • jesse-rust integrates here - Rust functions are called from this codebase
  • dashboard consumes this API - Frontend uses the FastAPI routes and controller files.

Technology Stack

  • Python - Primary language
  • FastAPI - API framework for all routes
  • NumPy - Array operations and calculations
  • keewee - ORM for the database

Development Workflow

Making Changes

When implementing features or fixing bugs:

  1. Understand the scope - Determine if other repositories such as the dashboard need updates
  2. Implement the code in the appropriate module
  3. Write/update tests - Maintain test coverage
  4. Run tests to verify changes:
    cd-jesse && pytest
    
  5. Consider jesse-live - Does this affect live trading?
  6. Update API routes if needed - Follow FastAPI patterns
  7. Don't restart server unless specifically asked

Read the full file on GitHub · 219 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 · 219 lines · 2,749 tokens per session scan A 79f34f705b37

Subscribe to this mod's changes

jesse AGENTS.md is an instructions file published in the GitHub repository jesse-ai/jesse (8,405 stars, last pushed 6d ago), licensed MIT. It adds 2,749 tokens to every session, about $0.0137 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-30.

Related

Other instructions, from other repositories

decker-ai CLAUDE.md

Instructions for gigshow/decker-ai, covering decker — agent session notes (this repo), what this repo is, start here, skills (summary) and conventions.

gigshow/decker-ai · 325 tokens

binance-trading-bot AGENTS.md

AGENTS.md instructions for chrisleekr/binance-trading-bot, covering engineering charter, project, architecture principles, core invariants and stack.

chrisleekr/binance-trading-bot · 4,323 tokens

kraken-net

Use Kraken.Net when generating C#/.NET code that interacts with the Kraken cryptocurrency exchange, including Spot REST, Spot WebSocket v2, Futures REST, Futures WebSocket, account data, market data, order placement, Kraken Earn, local order books, dependency injection, or CryptoExchange.Net SharedApis. Triggers on…

JKorf/Kraken.Net · 1,872 tokens

Kraken.Net copilot-instructions.md

Instructions for JKorf/Kraken.Net, covering copilot instructions for kraken.net, use kraken.net, not raw http, client setup, result handling and api structure.

JKorf/Kraken.Net · 854 tokens

mexc-net

Use Mexc.Net when generating C#/.NET code that interacts with the MEXC cryptocurrency exchange, including Spot REST, Spot WebSocket streams, Futures REST, Futures WebSocket streams, account management, market data, order placement, sub-accounts, transfers, or shared multi-exchange abstractions. Triggers on requests…

JKorf/Mexc.Net · 2,356 tokens

Mexc.Net copilot-instructions.md

Instructions for JKorf/Mexc.Net, covering copilot instructions for mexc.net, use mexc.net, not raw http, client setup, result handling and api structure.

JKorf/Mexc.Net · 807 tokens