Exchange
The agent cost worksheet
1 file1 KB
A look inside
The first lines of agent-cost-many-steps.md. The whole file is in your library once you get it.
# The agent cost worksheet A free card from MenFem's Inference 101, lesson 17: Agents and the cost of many steps. The lesson, with the picture and the examples: https://menfem.com/courses/inference-101/agent-cost-many-steps This is what you keep: five lines to fill in for any agent task, and the rule for when the fare is too high. 1. Steps: how many trips a typical task takes. Count real runs, not the best one. 2. Tokens in per step: the average prompt, which grows each turn as instructions, tools and results are sent again. 3. Tokens out per step: the words it writes plus any hidden thinking, all billed as output. 4. Price: tokens in and out times their prices, using the cached price for the fixed start. 5. Runs per finished task: multiply by the average, then add tool fees and any person's time to check. **The rule:** Price the finished task, then ask if it is worth that much. If not, cut the steps before you change the model. ## Used once From the lesson, on a made-up shop: "The agent's instructions and its list of eight tools go in again on each of its six steps." Answer: Resent context. The model keeps nothing between trips, so the fixed start is sent, and paid for, six times. ## Your turn Write one case from your own work here, then go down the card line by line. …and 8 more lines.
What is inside
- agent-cost-many-steps.md1 KB
How to use it
Open it beside the job and go down the 5 lines in order, then check your answer against the rule at the bottom. It is the card from Inference 101, lesson 17 (Agents and the cost of many steps), with one worked example from the lesson and a space for your own case.
Run before it was listed
Tested 2026-11-29: Generated from the lesson's own keep card and checked line by line against it; used once on the lesson's made-up example, which is printed in the file.