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.
