pumpfun-bonkfun-bot CLAUDE.md

pumpfun-bonkfun-bot CLAUDE.md is an instructions file for coding agents from chainstacklabs/pumpfun-bonkfun-bot. It costs 6,008 tokens per session, scanned A, original, Apache-2.0.

Safety and development instructions for a Solana trading bot that buys newly created tokens and exits according to a configured strategy.

In plain words
What is it for?
Testing bot behavior with fund-free examples, navigating the source and bot configuration, installing the package for development, and handling logs safely.
Why use it?
They prevent tests from using real funds or exposing private keys, and explain how the bot's files and imports are organized.

Instructions file

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/chainstacklabs/pumpfun-bonkfun-bot/claude-md
Clone the repo
git clone --depth 1 https://github.com/chainstacklabs/pumpfun-bonkfun-bot

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 pumpfun-bonkfun-bot CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/chainstacklabs/pumpfun-bonkfun-bot/claude-md.svg)](https://agentmods.dev/instructions/chainstacklabs/pumpfun-bonkfun-bot/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/chainstacklabs/pumpfun-bonkfun-bot/claude-md"><img src="https://agentmods.dev/badge/instructions/chainstacklabs/pumpfun-bonkfun-bot/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 6,008 This file is loaded in full into every session.
When invoked 6,008 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.06008 $0.06008
Opus 5 $0.03004 $0.03004
Sonnet 5 $0.01202 $0.01202
Haiku 4.5 $0.00601 $0.00601

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

Security

Grade A, and why

pumpfun-bonkfun-bot CLAUDE.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 4d 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.

CLAUDE.md · 399 lines

How it starts

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

Agent guide

Solana trading bot for pump.fun and letsbonk.fun. Snipes newly created tokens and exits on a configured strategy. See README.md for setup and configuration; this file covers what an agent needs that the code doesn't make obvious.

AGENTS.md is a symlink to this file, so Claude Code, Codex, Cursor, and Windsurf all read the same guide.

Ground rules

  • Never run a bot with real funds to test a change. Use learning-examples/, or the simulation scripts below, which move no funds.
  • Never touch .env or print its contents. SOLANA_PRIVATE_KEY is a live key.
  • Don't commit anything from logs/.
  • Test with a learning example before touching src/.

Layout

src/            bot source — this dir is the import root (see below)
learning-examples/   standalone scripts; each runs on its own, no bot config
bots/           one YAML per bot instance
idl/            vendored Anchor IDLs
logs/           {bot_name}_{timestamp}.log

Imports are rooted at src/, not at the repo. uv pip install -e . puts src/ itself on sys.path, so it is from core.client import SolanaClient and from utils.logger import get_loggernot from src.core.... Learning examples are deliberately self-contained: they import siblings like pump_v2 and tx_status as top-level modules and mostly don't import from src at all. Don't "fix" an example by rewiring it to import the bot.

Dependency layers, low to high — don't introduce an upward import:

interfacesutilscoreplatformsmonitoringtradingbot_runner

interfaces is the leaf — it imports nothing internal, and utils/idl_manager.py imports interfaces.core. geyser holds only generated stubs and likewise imports nothing internal; cleanup sits on core/utils and is pulled in by trading.

Platform differences are resolved through interfaces/core.py abstractions (AddressProvider, curve manager, event parser, instruction builder) and a registry in platforms/__init__.py. Listeners and the trader are platform-agnostic (Universal*); anything platform-shaped belongs under platforms/<name>/.

Read the full file on GitHub · 399 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. 4d ago First seen · 399 lines · 6,008 tokens per session scan A f12989426fb9

Subscribe to this mod's changes

pumpfun-bonkfun-bot CLAUDE.md is an instructions file published in the GitHub repository chainstacklabs/pumpfun-bonkfun-bot (976 stars, last pushed 10d ago), licensed Apache-2.0. It adds 6,008 tokens to every session, about $0.0300 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