frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Cost.dev (YC W21) – making agents cost-aware and 79% cheaper to call

1•akh•1h ago
We launched Infracost on HN five years ago (https://news.ycombinator.com/item?id=26064588) where our CLI generated cost estimates for infra-as-code, e.g. "this Terraform PR adds $400/mo". The idea was to shift cloud costs (FinOps) left so engineers get visibility of costs before deployment and make better decisions.

Earlier this year we started seeing agent traffic in our logs and it looked like coding agents were calling our CLI. But that CLI wasn't designed with coding agents in mind. We went down a philosophical rabbit hole to see if a CLI is even needed anymore given that Claude, Copilot et al. already follow best practices. Ultimately we decided to create a new CLI from the ground up with coding agents in mind for two reasons:

1. We optimized the CLI for agent callers and cut Claude's output token usage by up to 79% and API cost by up to 67% versus a bare-Claude baseline. We wrote a blog documenting our lessons on optimizing user token usage when designing a CLI, e.g. using predicate flags so the agent doesn't compose jq | python | wc pipelines, output format that strips JSON's redundant field names. The blog is here: https://www.infracost.io/resources/blog/we-cut-claude-s-toke...

2. With cloud costs, precision matters. Telling a coding agent "make this Terraform cost-optimized" can be expensive and lossy. You burn tokens loading code and policy context into every conversation. Your agent could make up a price and you wouldn't know because it's difficult to verify that across the ~10M price points that AWS, Azure and Google have. The CLI runs static analysis on the code, uses the latest prices from cloud vendors, and passes that context to the coding agent.

So that's what we're launching today - Cost.dev:

- It runs locally. Your code never leaves your machine, you get a fast feedback loop, and you're not burning API calls per character when you want to fetch prices. - The CLI does the deterministic work. Fetching price points, scanning the code, validating fixes. The coding agent does the natural-language part. You don't have to trust the LLM to remember the rules, and can verify it called the right CLI command. - It provides a consistent rule layer across every tool you use. Get cost estimates in your IDE and your coding agent with a single install. We support Claude Code, GitHub Copilot, Cursor, Windsurf, OpenAI Codex, Gemini CLI, as well as IDEs like VS Code and JetBrains

Before we keep building more in that direction, I want to sanity-check with HN: is "agents writing IaC in prod" actually a thing yet, or am I betting on a future that's still a year out? I know software developers are using coding agents heavily, but are platform/infra folks doing that for prod too? Also, if you have any feedback on Cost.dev, I'd love to hear it.

A hosting company auto-installed and activated an AI plugin on 1M+ WP sites

https://wordpress.org/support/plugin/sg-ai-studio/reviews/
1•blurayfin•1m ago•0 comments

Two-thirds of the web is invisible to AI bots

https://medium.com/@gp_24803/two-thirds-of-the-web-is-invisible-to-ai-bots-ae7dc8f04b91
1•Greg_engagemii•1m ago•0 comments

Programming the Apollo Guidance Computer in Blockly

https://neil.fraser.name/software/blockly-agc/
1•ahlCVA•1m ago•0 comments

Show HN: Reproducible experiments without committing every tweak

https://github.com/DLR-Institute-of-Future-Fuels/rair
1•Saloc•2m ago•0 comments

Arch Linux 2026 Leader Election Results

https://archlinux.org/news/arch-linux-2026-leader-election-results/
1•Hackbraten•2m ago•0 comments

Generative UI Is the New Front End

https://www.theunwindai.com/p/generative-ui-is-the-new-frontend
1•swiftlyTyped•2m ago•0 comments

The Quest to Mine the Bottom of the Sea

https://www.nytimes.com/interactive/2026/06/03/climate/deep-sea-mining-tests-hidden-gem.html
1•mistersquid•2m ago•0 comments

Windows Printer Driver Architecture

https://learn.microsoft.com/en-us/windows-hardware/drivers/print/printer-driver-architecture
1•ankitg12•3m ago•0 comments

Java Performance

https://en.wikipedia.org/wiki/Java_performance
1•tosh•3m ago•0 comments

The Pope Takes Aim at Silicon Valley Culture

https://12gramsofcarbon.com/p/tech-things-the-pope-has-some-thoughts
2•theahura•4m ago•0 comments

K‑Shaped Pattern in Regions, Wider Gap in Gas Spending

https://libertystreeteconomics.newyorkfed.org/2026/05/the-regional-side-of-the-story-k-shaped-pat...
1•mooreds•5m ago•0 comments

Learn PHP in 2026 (Yes, Really)

https://fagnerbrack.com/learn-php-in-2026-yes-really-bd567753dd84
1•shantnutiwari•5m ago•0 comments

Women and Leadership: Widening the Pipeline

https://www.ecb.europa.eu/press/key/date/2026/html/ecb.sp260604~f5d373b29f.en.html
1•mooreds•5m ago•0 comments

Cutting a photon in two creates an infinite swarm of particles

https://phys.org/news/2026-06-photon-infinite-swarm-particles.html
2•wjSgoWPm5bWAhXB•6m ago•0 comments

Ian Bremmer on the Risks America Poses to the World [video]

https://www.youtube.com/watch?v=syl9OLNSm4k
1•mooreds•6m ago•0 comments

Ask HN: So what happened to Facebook "localhost" tracking?

3•juliusceasar•7m ago•0 comments

Ocean sensors will go dark under Trump funding cuts

https://apnews.com/article/climate-oceans-data-trump-science-a9539443dfaa32b3a67468a25f8b2674
2•ColinWright•8m ago•0 comments

CSS subgrid is super good

https://dbushell.com/2026/04/02/css-subgrid-is-super-good/
1•eustoria•8m ago•0 comments

CSS Container Query Typography Systems

https://mattwaler.com/blog/container-query-typography-systems/
1•eustoria•9m ago•0 comments

Uncertainty Could Kill US Industrial Policy

https://www.factorysettings.org/p/policy-uncertainty-will-kill-american
1•surprisetalk•10m ago•0 comments

The Dictionary at the End of the Wire (Blankline Research)

https://blankline.org/research/the-dictionary-at-the-end-of-the-wire
1•DarenWatson•10m ago•0 comments

Show HN: DevNova Tools – 121+ free developer tools that run in the browser

https://devnovatools.com/
1•nirmalaavalluir•10m ago•0 comments

Cloud Hoarders

https://libertiesjournal.substack.com/p/cloud-hoarders
1•eustoria•11m ago•0 comments

A Survey of Inlining Heuristics

https://bernsteinbear.com/blog/inlining-heuristics/
1•ibobev•12m ago•0 comments

Machine learning using Clojure, libpython-clj2, and PyTorch

https://www.wedesoft.de/ai/2026/05/26/mlp/
1•ibobev•12m ago•0 comments

How much more software do we really need?

https://www.noahpinion.blog/p/how-much-more-software-do-we-really
2•RickJWagner•15m ago•0 comments

How to Lower the Decision Tax

https://tonyisola.com/2026/06/how-to-lower-the-decision-tax/
1•RickJWagner•15m ago•0 comments

New physics papers lay firm foundation for CFS' ARC fusion power plant design

https://blog.cfs.energy/new-physics-papers-lay-firm-foundation-for-cfs-arc-fusion-power-plant-des...
1•blendergeek•16m ago•0 comments

Japanese Break Bandwidth Record: 450 Tbps on a Single Standard Fibre Pair

https://subseacables.blogspot.com/2026/06/japanese-break-bandwidth-record-450.html
1•giuliomagnifico•17m ago•0 comments

YouTube is already 20% AI slop

https://www.youtube.com/watch?v=s_JwjjNNQ_E
2•bookofjoe•18m ago•0 comments