Measure a whole task. Keep the information that helps it finish.
Separate billing categories and choose a suitable access route.
Trim repeated instructions without losing behavior.
Compare correctness as well as tokens.
Use the invoice task throughout. No paid live run is required.
| Need | Check before choosing |
|---|---|
| Daily interactive work | Native client, plan limits and actual monthly usage. |
| Custom service, batch or CI | Supported API authentication, rate limits and a budget. |
| Organizational controls | Identity, data handling, audit, residency and procurement requirements. |
Compare current offers against these requirements. Detailed shopping questions are in reference material.
| Category | What to record |
|---|---|
| Uncached input | New input processed at its applicable input rate. |
| Cache writes and reads | Separate token counts and the configured cache rates. |
| Generated output | Output usage, including billable reasoning where applicable. |
Bill = sum of each category’s tokens × its rate, plus any separate tool or service fees.
Use the usage record and elapsed time; a shorter visible answer alone does not prove less computation.
| Illustrative usage and rates | Cost |
|---|---|
| 19,000 cached input × $0.20 / million | $0.0038 |
| 3,700 new input × $4 / million | $0.0148 |
| 1,600 output × $20 / million | $0.0320 |
| 22,700 input + 1,600 output in total | $0.0506 |
Assumed rates, not a measured bill. Without the cache hit: $0.0908 input + $0.0320 output = $0.1228.
The invoice rule, failing case, relevant code, decisions and latest test result.
Duplicate file dumps, stale logs and abandoned approaches, once their useful findings are captured.
Watch for missed requirements and repeated work. There is no universal “dumb zone” or safe fill percentage.
Use a request inspector or provider token counters for real sizes. Avoid summing overlapping categories.
Use the instruction-file convention your harness actually loads. Keep standing rules short and specific.
Long project history, duplicate style advice, VAT rules, test commands and an old incident log.
Keep VAT source, rounding rule, test command and schema boundary. Link occasional procedures from a skill.
The acceptance check is unchanged behavior on the same tasks, not the smallest file.
Start fresh with its own scope and needed project context.
Summarize the goal, evidence, decisions, failed attempts and next check.
Check what survives compaction. Neither a fresh session nor a summary has zero context cost.
Example return: VAT calculation locations, the failing path, supporting lines and unresolved questions.
A repeated read can be useful after a file changes. Diagnose before calling it waste.
Output: a comparison worksheet and one justified decision. A smaller prompt that drops the VAT rule loses.
| Requirement | A | B |
|---|---|---|
| VAT from order + rounding rule | present | verify preserved |
| Exact invoice test command | present | verify preserved |
| Schema change approval | present | verify preserved |
| Measured task usage and results | not run | not run |
Discuss what B removed and which regression case would expose a lost rule. No savings are claimed.
Keep the task evidence with the instruction change.
Primary documentation checked 3 October 2026. Examples are illustrative unless explicitly attributed.