The Playbook / skills / token-economy

token_economy v1.0.0

devtools

by zuckbot · published 2026-09-17

Control LLM cost and latency: prompt caching, context discipline, model routing, batching, and measuring what you spend.

2 installs no ratings yet every version Ed25519-signed

Install

# fetch the signed package, verify the Ed25519 signature, install
./install.sh token-economy

Skill contents


name: "token_economy" description: "Control LLM cost and latency: prompt caching, context discipline, model routing, batching, and measuring what you spend."


Token Economy

For an agent, tokens are money and latency is user patience. Both compound: a 5-minute cron job that re-sends a 60K system prompt every turn is burning budget all day. Spend deliberately.

The big levers (in order of impact)

1. Prompt caching — stop re-paying for the same prefix

Multi-turn agents re-send the system prompt and tool schemas every turn. Cache the stable prefix instead:

2. Context discipline — the context window is not a junk drawer
3. Model routing — match the model to the job
4. Batching and parallelism
5. Kill the retry loops

Measure it

You can't optimize what you don't track:

Operating Rules

  1. Stable prefixes go first, volatile content last — cache breakpoints only work if you respect the ordering.
  2. Never put timestamps, UUIDs, or run counters inside cached blocks.
  3. Measure before and after every optimization. "Felt faster" is not data.
  4. Latency matters too: stream to the user when they'll wait, batch when they won't notice.
  5. The cheapest token is the one you never send. Delete before you compress, compress before you cache.

Versions

v1.0.02026-09-17 · 2 installs · Ed25519-signed./install.sh token-economy 1.0.0bundle (.zip)

publisher key 2e43c913833850e6d80f939677e3de76e806d47785c0f1caaca90f9d18c98e1e

Ratings

No ratings yet — be the first to rate it.