bullet-bots: Instructions file for Codex

AGENTS.md

bullet-bots AGENTS.md is an instructions file for Codex, OpenCode from bulletxyz/bullet-bots. It costs 2,911 tokens per session, scanned A, original, Apache-2.0.

A Rust framework for event-driven trading bots, programs that react to market or exchange events. It connects typed event feeds and actor-based strategies to exchange adapters through a shared lifecycle and shutdown system.

In plain words
What is it for?
Use it when developing or checking trading-bot strategies, event feeds, exchange adapters, configuration files, or account setup. It covers Rust builds, tests, documentation tests, linting, formatting, and testnet key generation.
Why use it?
It gives contributors a defined structure for connecting market data, strategies, and exchanges. Its documented commands also provide consistent ways to build, test, lint, format, and validate configurations.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads .claude/ paths; mentions subagents; mentions AGENTS.md.

This is bulletxyz/bullet-bots's own configuration. It tells Codex and OpenCode how to work on bullet-bots itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything bullet-bots configures →

Reuse

Borrowing it

Nothing to install: this file belongs to bulletxyz/bullet-bots. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/bulletxyz/bullet-bots/master/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/bulletxyz/bullet-bots

Made for: Codex, OpenCode.

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 bullet-bots AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/bulletxyz/bullet-bots/agents-md/github.svg)](https://agentmods.dev/instructions/bulletxyz/bullet-bots/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/bulletxyz/bullet-bots/agents-md"><img src="https://agentmods.dev/badge/instructions/bulletxyz/bullet-bots/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for bullet-bots AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/bulletxyz/bullet-bots/agents-md"><img src="https://agentmods.dev/badge/instructions/bulletxyz/bullet-bots/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,911 This file is loaded in full into every session.
When invoked 2,911 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.02911 $0.02911
Opus 5.5 $0.01164 $0.01164
Sonnet 5.5 $0.00582 $0.00582
Haiku 4.5 $0.00291 $0.00291

Measured 9d ago against content hash f2dc980244fc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bullet-bots 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 9d 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 · 173 lines

How it starts

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

bullet-bots

Event-driven trading bot framework in Rust. Typed event bus, typed feeds per event kind, strategies implemented as actors. Pluggable exchange adapters and strategies connect through a shared harness that handles lifecycle, shutdown, and multi-source event dispatch.

Instructions are layered: this file holds what every task needs; each area has its own AGENTS.md (see "Where things live"). Read the one for the area you touch.

Build & Test

just dev [filter]          # check (workspace, incremental) + tests matching filter (none without one). After each edit.
just pre                   # fmt + clippy + unit/integration tests. Before each commit.
just check                 # workspace typecheck only, no codegen
just lint                  # clippy, pedantic, -D warnings
just test                  # unit/integration tests via cargo test (seconds); `just ci` uses nextest
just fmt                   # nightly fmt (required for import grouping)
just ci                    # mirrors CI: fmt --check, clippy, nextest, doctests, cargo deny, cargo shear
just validate [config]     # validate a config (funding-arb queries venues read-only)
just seed-target [from]    # new worktree: clone a warm target/ (copy-on-write, seconds)
just warm                  # main checkout: warm the seed source (a post-merge hook runs it
                           # automatically when a pull changes dependencies or rust-toolchain.toml)
just ci-timings [n]        # CI "Clippy + tests" durations (~1m warm cache, ~7m cold node)

Inner loop. just dev [filter] after each edit, just pre before every commit, just ci once before submitting. Every local build uses --workspace, never -p: -p builds dependencies with a different feature set, so mixing them compiles the dependency tree twice and makes a seeded target/ useless. Incremental builds only redo changed crates and their dependents, so workspace-wide costs seconds. Local tests use cargo test: on macOS every spawned binary pays an XProtect scan, and nextest spawns one process per test (just test ~5s vs ~41s with nextest). CI (Linux) uses nextest (.config/nextest.toml, ci profile: retries once, no fail-fast); doctests run separately (cargo test --doc).

Read the full file on GitHub · 173 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. 9d ago Changed · -205 lines · -1,061 tokens per session f2dc980244fc
  2. 15d ago Changed 883e009acd1c
  3. 2mo ago First seen · 378 lines · 3,972 tokens per session scan A 07de155c83a6

Subscribe to this mod's changes

bullet-bots AGENTS.md is an instructions file published in the GitHub repository bulletxyz/bullet-bots (10 stars, last pushed 9d ago), licensed Apache-2.0. It adds 2,911 tokens to every session, about $0.0116 per session on Opus 5.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.

Related

bullet-bots AGENTS.md compared with instructions from other repositories

bullet-bots AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bullet-bots AGENTS.mdbulletxyz/bullet-botsInstructions file109d agoApache-2.0A2,911Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode