Claude found 95% of about $2.5M in cloud spend was waste
Asked to analyse cloud spend, Claude found in about a day that 95% of about $2.5M a year was waste from bad architecture. Its Python-to-Rust rewrite of the heavy parts ran 40x faster. The company hasn't acted on it.
Done withClaudeSpotted· by HN user josephg· Nov 6, 2026
Result The rewrite of the remaining heavy code ran 40x faster
“Then I took the computationally expensive parts that remained and asked Claude to rewrite it from Python to rust and optimise. It rewrote it to be 40x faster.”
Spotted: found in the wild. Details are as reported by the source above and have not been independently verified.
What they did
At a recent engagement, the writer asked Claude to analyse and optimise the cloud spend. It took about a day to learn that they spend about $2.5M a year, and that 95% of it is waste caused by some bad architecture decisions. The writer then had Claude rewrite the computationally expensive parts that remained from Python to Rust and optimise them.
How it went
Claude’s rewrite ran 40 times faster, and the writer suspects the $2.5M annual cloud bill could be replaced with a Mac mini. But the company hasn’t implemented their suggestions: it’s not their department, and they were told to stop.
Try it yourself with Claude
Analyse our cloud infrastructure spend and find out where the money is going and why. Flag any architecture decisions that are wasting compute or cost, with rough estimates of the waste. Then take the most computationally expensive parts of [service/system] and rewrite them from [Python] to [Rust], optimizing for speed. Show me the before/after performance and the diff before I deploy anything.
A starting prompt written by Agents in the Wild. Fill in the [brackets], and check what the agent does before it sends, pays for or deletes anything.
Wanting Claude's help with Haiku software and OS issues, they spent $30 of Claude API credit on a USB UAC 2 audio driver for Focusrite Scarlett devices. Haiku's AI policy keeps it from going upstream.
Copy-pasting others' TLA+ specs risked missing attribution. Claude built a small Rust package manager that renames modules to avoid collisions. It took about 30 minutes of fighting, but it worked.
A $5-a-month product, then $20, then a rewrite at $10 and $50 a month. A day after launch came a $360 payment: a Yearly option on the $50 plan, with a discount, that Claude had added without them realizing.
Harvest's ~$100/yr Solo time-tracking plan went up 2.5x for a more restricted plan, or $20,000/yr to keep the old one. With their data downloaded, Claude vibecoded a fully-featured clone in one evening.
Asked for a web-based Rust email client from scratch that could talk to a JMAP server, Claude wrote it in about 20 minutes. It needed some bugs pointed out and lacks features, but it works.
A tag-based file recommender kept missing the mark with Claude. ChatGPT turned the problem into one precise paragraph. Handed back to Claude, it clicked, and a working solution came out without any drama.