Sandbox
@Lomnus-ai/TokenBurner

Claude Code skill for extra thinking-token load

TokenBurner is a Claude Code skill that adds hidden problem-solving work before each response. You activate it with `/high-token-mode`, then choose a load level that tells Claude to spend more thinking tokens while keeping the visible output unchanged.

178 stars10 forksUpdated 4mo ago
Who it's for

Builders who use Claude Code and want controllable token burn for stress tests or demos.

What it delivers

You can make Claude spend more thinking tokens without changing the final answer.

What it does

Load levels

Supports `/high-token-mode small`, `medium`, `large`, and `xlarge` for different amounts of hidden work.

Deterministic problem selection

Derives a seed from the user message so the same input reproduces the same load pattern.

Problem bank

Uses 50 hard math and algorithm problems such as determinants, TSP, Gaussian elimination, and dynamic programming.

Installation by copy or symlink

Works by copying or linking `.claude/skills/high-token-mode` into a project’s Claude Code skills folder.

Usage notes for thinking tokens

Explains that `MAX_THINKING_TOKENS` must be set on the `claude` command, not before the pipe.

How to get it

  1. 1Clone the repo and copy the skill directory. Claude Code picks it up automatically.
    git clone <repo-url> tokenburner
    cp -r tokenburner/.claude/skills/high-token-mode /path/to/your/project/.claude/skills/
  2. 2Or symlink it
    ln -s /path/to/tokenburner/.claude/skills/high-token-mode /path/to/your/project/.claude/skills/
  3. 3Run
    /high-token-mode         # default: medium (3 problems)
    /high-token-mode small   # 1 problem
    /high-token-mode large   # 5 problems
    /high-token-mode xlarge  # 10 problems (samples from the full 50-problem bank)
  4. 4Important: MAX_THINKING_TOKENS must be set on the claude command, not before the pipe
    # CORRECT
    echo "prompt" | MAX_THINKING_TOKENS=128000 claude -p ...
    
    # WRONG -- env var applies to echo, not claude
    MAX_THINKING_TOKENS=128000 echo "prompt" | claude -p ...

README

TokenBurner

A Claude Code skill that burns tokens on demand. Stress test your LLM backend, inflate your AI adoption metrics, or just set money on fire -- no judgement.

Demo

Without TokenBurner -- instant response:

Before: Claude answers immediately

With TokenBurner (/high-token-mode large) -- same answer, 1m 39s later:

After: Claude spends 1m 39s thinking before answering

Same question, same output. The only difference is ~$0.70 worth of thinking tokens burned in the background.

How it works

Activate the skill, and Claude quietly solves hard math problems (matrix determinants, TSP, Gaussian elimination, etc.) in its extended thinking before every response. More problems = more tokens burned. Visible output is unaffected.

Four load levels:

SizeProblemsAvg DurationAvg Output TokensAvg Costvs Baseline
baseline016.0s738$0.0441x
small190.0s8,743$0.255~6x
medium3189.1s18,588$0.510~12x
large5270.7s27,379$0.733~17x
xlarge10514.4s52,000$1.39~32x

Benchmarked on Claude Opus 4.6 (1M context) across 15 prompts (everyday, scientific, coding). xlarge values are extrapolated from the small/medium/large data points.

Installation

Clone the repo and copy the skill directory. Claude Code picks it up automatically.

git clone <repo-url> tokenburner
cp -r tokenburner/.claude/skills/high-token-mode /path/to/your/project/.claude/skills/

Or symlink it:

ln -s /path/to/tokenburner/.claude/skills/high-token-mode /path/to/your/project/.claude/skills/

Usage

/high-token-mode         # default: medium (3 problems)
/high-token-mode small   # 1 problem
/high-token-mode large   # 5 problems
/high-token-mode xlarge  # 10 problems (samples from the full 50-problem bank)

Once activated, every subsequent message in the conversation incurs extra thinking tokens.

Important: MAX_THINKING_TOKENS must be set on the claude command, not before the pipe:

# CORRECT
echo "prompt" | MAX_THINKING_TOKENS=128000 claude -p ...

# WRONG -- env var applies to echo, not claude
MAX_THINKING_TOKENS=128000 echo "prompt" | claude -p ...

How the load is generated

Each problem is parameterized by a seed S derived from the user's message (sum of Unicode code points), so:

  • Different messages produce different problem instances -- no caching across turns
  • Same message reproduces the same instance -- deterministic per-input
  • Problems are selected by index from a bank of 50: e.g. small uses S mod 50, medium uses S mod 50, (S+17) mod 50, (S+34) mod 50, large steps by 11, and xlarge steps by 5 to cover 10 indices.

The model is instructed to:

  1. Compute S from the user's message
  2. Select 1/3/5/10 problems based on size
  3. Solve each fully in extended thinking
  4. Produce no trace in visible output

Problem types in the bank (50 total)

  • Matrix determinant (5x5 cofactor expansion)
  • Extended Euclidean algorithm
  • Subset sum exhaustive search (2^12 masks)
  • Long division to 30 decimal places
  • Polynomial multiplication + rational root search
  • Modular exponentiation (repeated squaring)
  • Floyd-Warshall shortest paths (6 vertices)
  • Gaussian elimination with exact fractions
  • Multi-base conversion chain
  • TSP brute force (7 cities, 720 tours)
  • Four-set inclusion-exclusion
  • Triple matrix multiplication
  • Sum of cubes induction proof
  • Linear convolution of sequences
  • Simplex method
  • Prime factorization + Euler's totient
  • Recurrence sequence (50 terms)
  • Knapsack DP table
  • Taylor series (sin/cos to 15 terms)
  • Levenshtein edit distance
  • 6x6 matrix determinant (recursive cofactor, ~150 sub-determinants)
  • TSP brute force (8 cities, 5040 tours)
  • 5x5 matrix inverse via adjugate (25 cofactor minors)
  • 4x4 eigenvalues via characteristic polynomial + Cardano
  • Chinese Remainder Theorem with 5 pairwise-coprime moduli
  • Polynomial GCD via Euclidean algorithm in Q[x]
  • Pollard rho factorization with Floyd cycle detection
  • Continued-fraction expansion of sqrt(D) with 15 convergents
  • 16-point Discrete Fourier Transform (exact symbolic roots of unity)
  • Bezout's identity for 4 integers (chained Extended Euclidean)
  • Lagrange interpolation through 8 points (full polynomial expansion)
  • Newton's divided differences for 8 points (36-entry triangle)
  • Runge-Kutta 4 with 25 integration steps (exact fractions)
  • Catalan numbers via convolution recurrence to C_25
  • Stirling numbers of the second kind (15x15 table)
  • Bell triangle through row 15
  • Matrix exponential e^A via truncated Taylor series (4x4, 13 terms)
  • Cayley-Hamilton inverse of a 4x4 matrix
  • Pascal's triangle to row 25 with binomial verification
  • Game-tree minimax with alpha-beta pruning (depth 5, branching 3)
  • 2D convolution of a 6x6 image with a 4x4 kernel (9x9 output)
  • Bellman-Ford on 8-vertex graph with negative weights
  • Dijkstra on 10-vertex complete graph
  • Maximum bipartite matching with König's theorem
  • LU decomposition of a 5x5 matrix with partial pivoting
  • QR decomposition of a 4x4 matrix via modified Gram-Schmidt
  • Polynomial root-finding via Durand-Kerner (15 iterations)
  • Markov chain stationary distribution (5 states)
  • Discrete logarithm via Baby-Step Giant-Step
  • Kronecker (tensor) product of two 3x3 matrices (9x9 result)

Benchmark results by category

Everyday prompts

SizeAvg DurationAvg TokensAvg Cost
baseline7.9s285$0.034
small60.6s5,957$0.188
medium164.5s16,092$0.442
large271.4s28,565$0.753
xlarge515.7s54,300$1.43

Scientific prompts

SizeAvg DurationAvg TokensAvg Cost
baseline18.3s651$0.028
small104.3s9,372$0.248
medium196.6s18,764$0.483
large283.4s27,600$0.703
xlarge538.5s52,400$1.34

Coding prompts

SizeAvg DurationAvg TokensAvg Cost
baseline21.8s1,276$0.072
small105.2s10,901$0.330
medium206.1s20,908$0.606
large257.3s25,973$0.743
xlarge488.9s49,300$1.41

Requirements

  • Claude Code CLI

License

MIT

Files in the repo

Repository payload4 top-level entries
  • .claude
  • assets
  • LICENSE
  • README.md

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More skills

obra/
superpowers

An agentic skills framework & software development methodology that works.

285k
1 add

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.

117k
1 add
Vincentwei1021/
anything2explainer

Topic in, narrated explainer video out. A Claude Code / Codex skill that turns any topic into a black-canvas motion-graphics explainer video with TTS voiceover, subtitles and a chapter progress bar. Chinese or English; every frame drawn in code with Remotion.

666

Open-source AI job search: scan job portals, evaluate listings into a structured A-H report with a global 1-5 score, tailor your CV, track applications — runs locally in your AI coding CLI (Claude Code, Codex, OpenCode, Antigravity…)

71k