pumpfun-bonkfun-bot: Instructions file for Claude Code

CLAUDE.md

pumpfun-bonkfun-bot CLAUDE.md is an instructions file for Claude Code from chainstacklabs/pumpfun-bonkfun-bot. It costs 2,838 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 for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions Claude Code; mentions AGENTS.md; mentions Codex.

This is chainstacklabs/pumpfun-bonkfun-bot's own configuration. It tells Claude Code how to work on pumpfun-bonkfun-bot 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 pumpfun-bonkfun-bot configures →

About the project

chainstacklabs/pumpfun-bonkfun-bot is a Solana trading bot that watches pump.fun and letsbonk.fun for newly created tokens, buys them, and sells them according to a configured strategy. It is for people who want to automate token sniping and trading without relying on third-party APIs.

chainstacklabs/pumpfun-bonkfun-bot · 1,054 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to chainstacklabs/pumpfun-bonkfun-bot. 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/chainstacklabs/pumpfun-bonkfun-bot/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/chainstacklabs/pumpfun-bonkfun-bot

Made for: Claude Code.

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

Your own site · 80×15
<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="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,838 This file is loaded in full into every session.
When invoked 2,838 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.02838 $0.02838
Opus 5.5 $0.01135 $0.01135
Sonnet 5.5 $0.00568 $0.00568
Haiku 4.5 $0.00284 $0.00284

Measured 1mo ago against content hash 1b0ae3a752bb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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 · 201 lines

How it starts

The opening of the file, as written. The whole thing — 201 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, letsbonk.fun and StonkFun. Snipes newly created tokens and exits on a configured strategy. See README.md for setup and configuration.

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

Reference

Deeper notes, kept out of this file so they load only when needed:

Doc Read it before
docs/pumpfun-protocol.md touching account layouts, instruction args, fee recipients or quote assets
docs/launchlab-protocol.md touching letsbonk.fun or StonkFun: platform configs, swap accounts, quote assets, transfer fees
docs/listeners-and-geyser.md changing a listener, the geyser stubs or a decoder
docs/cookbook-conventions.md adding or changing anything under cookbook/
docs/regression-tests.md picking which verifiers your change needs

Ground rules

  • Running a bot with real funds is how a change gets verified, with explicit approval for that session and after stating what will run and what it costs. cookbook/ and the simulations move no funds but skip bot_runner, config loading, the trader loop, the exit strategy and cleanup, so they cannot close the question. A verification run covers every mode the change reaches — each listener, extreme_fast_mode on and off, each exit_strategy — and ends with the wallet holding SOL only.
  • Never touch .env or print its contents. SOLANA_PRIVATE_KEY is a live key.
  • Don't commit anything from logs/; test with a cookbook script before src/.

Layout

src/                 bot source — this dir is the import root (see below)
cookbook/            standalone scripts; each runs on its own, no bot config
tests/regression/    one offline verifier per fixed bug; imports src/
tools/               dev harness — simulations, live round trips, benchmarks
bots/                one YAML per bot instance
idl/                 vendored Anchor IDLs
logs/                {bot_name}_{timestamp}.log

Read the full file on GitHub · 201 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. 1mo ago Changed · +1 lines · +68 tokens per session 1b0ae3a752bb
  2. 1mo ago Changed · +1 lines · +25 tokens per session 770cdeb38a97
  3. 1mo ago Changed · -8 lines · -148 tokens per session fd60f5afc296
  4. 1mo ago Changed · +2 lines · +33 tokens per session 21e276d162a5
  5. 1mo ago Changed · +4 lines · +73 tokens per session f60e9e33a683
  6. 1mo ago Changed · -277 lines · -5,003 tokens per session 09c15749095c
  7. 1mo ago Changed · -141 lines · -1,689 tokens per session 64b8618f794f
  8. 1mo ago Changed · +60 lines · +990 tokens per session 6c84db43ef23
  9. 1mo ago Changed · +160 lines · +2,481 tokens per session 7de1be17a320
  10. 2mo 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 (1,054 stars, last pushed yesterday), licensed Apache-2.0. It adds 2,838 tokens to every session, about $0.0114 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-30.

Related

pumpfun-bonkfun-bot CLAUDE.md compared with instructions from other repositories

pumpfun-bonkfun-bot CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pumpfun-bonkfun-bot CLAUDE.mdchainstacklabs/pumpfun-bonkfun-botInstructions file1.1kyesterdayApache-2.0A2,838Claude Code
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