TokensIntermediate

Know what each Claude Code turn costs, and cut it

Every turn re-sends the whole conversation. This course shows where the tokens go and how to cut them: cache-friendly prefixes, cheaper models, /clear and /compact, subagents and compression tools.

8
Tutorials
4h+
Guided content
$20 / yr
Access

Who it's for

  • Developers who hit Pro or Max usage limits before the week ends
  • API users who want a lower bill without worse output
  • Anyone running long Claude Code sessions that get slower and less sharp
  • People deciding between Pro, Max and pay-per-token API

What you'll be able to do

  • Read /context output and estimate a turn's cost, including the resend tax and cache hits (How Claude Tokens Actually Work)
  • Pick Opus, Sonnet or Haiku per task and switch with /model, --model or subagent overrides (The Model Quota Map)
  • Spot context rot and choose between /clear, steered /compact and --fork-session (Session Hygiene)
  • Trim CLAUDE.md, split it across global, project, local and @include layers, and write memory entries the selector finds (CLAUDE.md & Memory Discipline)
  • Write one-shot prompts and offload research to subagents with a 200-word return contract, in parallel or in the background (Prompt Engineering for Cheap Turns, Subagent Offloading)
  • Install caveman and rtk, measure the savings, and pick a plan with a decision tree and a monthly audit (Compression Layer, Budget Frameworks)
Hands-on

What you'll build

01

A token map of your own CLAUDE.md, checked against /context

02

A restructured CLAUDE.md cascade with global, project and gitignored local layers

03

Return contracts and Haiku subagent dispatches for research tasks on your codebase

04

A working caveman + rtk setup with your own measured baseline

05

A baseline-vs-tuned run of one real workflow, comparing tokens, time and turns

Syllabus

8 tutorials, in order

  1. 01
    How Claude Tokens Actually Work

    Tokens vs words, the input/output split, what prompt caching does and does not cache, the context window, and the resend tax that makes long sessions expensive.

    25-35 min
  2. 02
    The Model Quota Map

    Per-model pricing for Opus 4.7, Sonnet 4.6, and Haiku 4.5 — input/output rates, cache rates, quota weight on Pro and Max plans, and a decision matrix for picking the right model per task.

    25-35 min
  3. 03
    Session Hygiene — /clear, /compact, fork-session

    When to /clear, when to /compact, when to fork-session for risky experiments, and how to recognize context rot before it doubles your bill.

    25-35 min
  4. 04
    CLAUDE.md & Memory Discipline

    Trim CLAUDE.md, layer with @includes and CLAUDE.local.md, exploit prompt caching by keeping the prefix stable, and write memory entries that the selector actually surfaces.

    25-35 min
  5. 05
    Prompt Engineering for Cheap Turns

    Specificity over verbosity, file references over context dumps, ask-once patterns, structured output contracts, and the four anti-patterns that quietly inflate every turn.

    25-35 min
  6. 06
    Subagent Offloading & Background Agents

    The 200-word return contract, when to offload vs do inline, parallel dispatch, and background agents that survive independently of your main conversation.

    25-35 min
  7. 07
    The Compression Layer — caveman + rtk

    Two open-source tools that compound to ~80% savings: caveman (output compression Claude Code plugin) and rtk (tool-input compression via Bash hook). Install, daily use, before/after measurements.

    30-40 min
  8. 08
    Budget Frameworks & Capstone

    Pro vs Max vs API+caching decision tree, a monthly budget audit checklist, and a capstone exercise that walks through tuning a real session from baseline to 80%-cheaper.

    30-40 min

Get this course

One year of access for $20, or subscribe for $45/month to get this course and every other one.

FAQ

Questions about this course

What do I need before starting?

Claude Code and real sessions to inspect. Every hands-on runs on your own sessions and your own CLAUDE.md, not a toy repo. It works on Pro, Max or the API.

How long does it take?

8 tutorials, each with hands-on steps, exercises and a quiz. The listed lesson times add up to about 3.5 to 5 hours. Some exercises run over several days on purpose, such as five days of /clear.

Which tools will I install?

Two open-source tools in the compression tutorial: caveman (a Claude Code plugin that compresses model output) and rtk (a CLI proxy that compresses shell command output). Both are optional. The rest of the course uses built-in Claude Code commands only.

Do I need the other courses first?

No. It stands on its own. If you know Claude Code basics from Fundamentals, you will move faster. The habits apply to any Claude Code work, solo or team.