Understand what enters a coding session
A session can include project rules, active source files, diffs, terminal output, test results, MCP schemas and prior decisions. The amount varies by task and product version. Provider-reported usage is therefore more useful than estimating cost from the user message alone.
Measure completed tasks instead of isolated prompts
Choose repeatable tasks such as a bug fix, test addition or small feature. Record input, cached input, output, turns and retries through completion. Cost per successful task reveals whether long agent loops or repeated repository context are creating avoidable spend.
Local token estimate
This is an approximate comparison, not provider billing data.
Reduce repetition without losing engineering constraints
Start with exact duplication, obsolete logs and tools unrelated to the current task. Keep active requirements, file paths, identifiers and validation evidence intact. Any reduction should be tested against the same task and rejected when it changes required behavior.
Measurement checklist
- Choose a representative completed task, not an artificial one-line prompt.
- Record the selected model, provider input, cached input, output, retries and final result.
- Change one optimization mechanism at a time so the cause remains visible.
- Verify required identifiers, tool calls, code changes or business fields.
- Keep passthrough available when the reduced request does not pass.
Varion commercial evaluation
Varion keeps proprietary product implementation details private. Evaluate Token Optimisation on representative traffic and judge it by the measured commercial result. New verified users receive 100,000 processed input tokens and 50 local test runs.
Frequently asked questions
Does every Claude Code task use the same amount of context?
No. Repository size, tools, files, history, model choice and number of turns can all change the amount of context used.
Can token optimisation replace project instructions?
No. Required project and safety instructions should remain explicit. Optimisation should target avoidable context rather than necessary constraints.