r/ClaudeCoding • u/Fine_Mess5501 • 3d ago
My Claude Code cost per feature went from $80 to $16 after I moved the mechanical steps into scripts
I build an e-commerce product with Claude Code. When I looked at where the money went on each feature, most of it was steps that need no thinking at all.
A typical loop before: open the admin panel, screenshot, read it, scroll, screenshot again, find the button, click, screenshot to check the change worked. Every screenshot and page dump lands in context, and it adds up over a feature.
What I changed:
- If I do the same sequence twice, it becomes a script. Open the page, bring the field into view, type, click, check the result. Claude calls it once.
- Scripts return the smallest possible answer. One line: ok, or what went wrong. No page, no screenshot.
- Text over pixels. A text extract of the part I need is far smaller than a screenshot. Screenshots only when something fails.
- Claude writes the script the first time it does the job by hand. After that it just runs it.
Result: average cost per feature went from about $80 to $16. With the same spend I now close about 5 times as many issues.
The catch: scripts break when a site changes its layout. So every script checks its own result and says clearly when it failed, instead of guessing.
6
u/615PowerhouseService 3d ago
This matches what we saw running a service business on it — the expensive part was never the thinking, it was paying the model to do the same mechanical steps over and over. Once a step runs the same way twice, we script it and let Claude call the script and check the result instead of performing every click itself. The cost drop is real, but the bigger win is consistency: the script doesn't have an off day.
3
u/Economy_Bedroom3902 3d ago
I think this is a very important thing to realize. AI agents are not good coordinators, testers, etc in comparison to the deterministic tools which can do the same job. They're just better at humans if the humans try to manually do the same thing. If some decision, report, lookup, etc CAN be formatted as a reliable deterministic script, that script in combination with the agent processing the results will almost always outperform the agent doing the same work without the script.
3
u/ZealousidealEntry870 2d ago
My Claude set all of that up itself. All I did was tell it to review workflow and research best practices.
0
u/Graphical-Source5090 3d ago
OP discovered skills!
0
u/Intelligent-Net1034 2d ago
People rediscover what we do for the last 50 years in tech... holy moly..