backtrader AGENTS.md

Project instructions for an AI coding agent working in the cloudQuant/backtrader repository. AGENTS.md is a guidance file covering the project overview, branch context, current implementation status, and development commands.

In plain words
What is it for?
Use it when orienting yourself in the repository, checking the current branch and feature state, or finding the commands used to develop and test the project.
Why use it?
It gives the agent repository-specific context and encourages checking the actual implementation status before making changes.

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/cloudquant/backtrader/agents-md
Clone the repo
git clone --depth 1 https://github.com/cloudQuant/backtrader

Made for: Codex, OpenCode.

Per session 3,824 This file is loaded in full into every session.
When invoked 3,824 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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.03824 $0.03824
Opus 5 $0.01912 $0.01912
Sonnet 5 $0.00765 $0.00765
Haiku 4.5 $0.00382 $0.00382

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

Security

Grade A, and why

backtrader 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 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.

AGENTS.md · 338 lines

The source is not reproduced here

Licensed GPL-3.0

The repository is licensed GPL-3.0, which this catalogue does not treat as permission to reproduce the file. Read it at the source.

Read it on GitHub

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 · 338 lines · 3,824 tokens per session scan A e7310098d507

Subscribe to this mod's changes

backtrader AGENTS.md is an instructions file published in the GitHub repository cloudQuant/backtrader (159 stars, last pushed 9d ago), licensed GPL-3.0. It adds 3,824 tokens to every session, about $0.0191 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

lumibot AGENTS.md

AGENTS.md instructions for Lumiwealth/lumibot, covering public repo secret hygiene (critical), express authorization required for lumibot changes, broker data ownership, lumibot agent instructions (theta / downloader focus) and image generation rule (critical).

Lumiwealth/lumibot · 7,139 tokens

lumibot copilot-instructions.md

Copilot instructions for Lumiwealth/lumibot: Important: remember to add unit tests for any new functionality you add. This is mission critical code, so we need to ensure that it works as expected and doesn't break anything.

Lumiwealth/lumibot · 115 tokens

lumibot CLAUDE.md

Claude Code instructions for Lumiwealth/lumibot, covering claude.md - ai assistant instructions for lumibot, public repo secret hygiene (critical), 🚨🚨🚨 rule #1 — never fabricate backtest data 🚨🚨🚨, quick start and image generation rule (critical).

Lumiwealth/lumibot · 8,606 tokens

polymarket-paper-trader CLAUDE.md

Instructions for agent-next/polymarket-paper-trader, covering claude.md, polymarket-paper-trader, commands, install and tests (620 non-live + 42 live = 662 total, 100% coverage).

agent-next/polymarket-paper-trader · 1,257 tokens

martex-quant CLAUDE.md

Instructions for martex-dev/martex-quant, covering session start — read these first, project instructions, ai trading bot project - master instructions, role and project objective.

martex-dev/martex-quant · 6,161 tokens

OpenThesis AGENTS.md

Instructions for zjy1346/OpenThesis, covering openthesis agent workflow, roles, user approval and release workflow, minimal release-call principle and delegation policy.

zjy1346/OpenThesis · 1,186 tokens