frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

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

https://cost.dev/
24•akh•11h 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: https://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!

Comments

zuzululu•4h ago
Not really seeing the point I just use openrouter if I'm penny pinching
akh•2h ago
OpenRouter is great for keeping your LLM API bill down, Infracost is about the AWS/Azure/GCP bill your IaC creates. When an agent writes IaC that creates a NAT gateway or an RDS instance, that's $50-5000/mo in cloud spend, so the agent knowing that estimate and the best practices as it's generating the code can optimize it pre-deploy.
5701652400•2h ago
I don't know how they can justify 250 USD / month bill. let alone 1000 USD / month.
akh•2h ago
We prevent way more than that from being added to the cloud bill by showing engineers cost estimates that enables them to make better decisions pre-deploy - e.g. when an engineer knows the IOPS option on their EC2 instance is costing them a lot, they're more likely to reduce that or not use that in dev envs vs just copy/paste what's on production. There's an ROI report on infracost.io that shows how we measure the cost prevention between the first and last commit on merged PRs.
hx8•56m ago
Seems to be targeted at quickly reducing infa cost for small-human teams with high-compute costs. I can see some value, but it's something I'd want to review quarterly instead of per-commit. I might feel different if I was really trying to stretch some runway.

I can see why YC is interested in this issue, as I'm sure lots of startups are trying to stretch that runway.

5701652400•2h ago
why would anyone need 10,000 runs a month? do people modify their infrastructure 10,000 times a month?
akh•2h ago
CI/CD pipelines needs 1 CLI run per commit (like any other code scanning tool), we regularly see enterprises with 100K+ runs/month.
esafak•26m ago
Ephemeral environments

Show HN: FFmpeg WebCLI – Full FFmpeg in Browser, Offline PWA, No Uploads(WASM)

https://github.com/tejaswigowda/ffmpeg-webCLI
54•tejaswigowda•2h ago•13 comments

Show HN: Hitoku Draft – Context aware local assistant

https://hitoku.me/draft/
5•lostathome•5h ago•0 comments

Show HN: Formally verified polygon intersection – Opus 4.8 oneshots, prev failed

https://github.com/schildep/verified-polygon-intersection
30•permute•1h ago•3 comments

Show HN: Uruky (EU-based Kagi alternative) now has Image Search and URL Rewrites

https://uruky.com/?il=en
200•BrunoBernardino•14h ago•188 comments

Show HN: Mercek – A Desktop IDE for AWS ECS

https://www.mercek.dev/
7•utibeumanah•1h ago•0 comments

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

https://cost.dev/
24•akh•11h ago•9 comments

Show HN: Prela – Purely Algebraic Relation Combinators

https://github.com/remysucre/prela
59•remywang•3d ago•13 comments

Show HN: NoiR Code – because QR sounds similar to "noir"

https://noir-code.suncake.xyz/
4•Sunkek•1d ago•1 comments

Show HN: Using Haskell to play music on 3D printer motors (2020)

https://lucasoshiro.github.io/software-en/2020-07-31-music_gcode/
5•lucasoshiro•3h ago•0 comments

Show HN: Boxes.dev: ditch localhost; run Claude Code and Codex in the cloud

https://boxes.dev
81•nab•8h ago•58 comments

Show HN: Bot or Not – Spot AI-generated randomness

https://play-bot-or-not.vercel.app/
3•EvanZhouDev•3h ago•0 comments

Show HN: Edsger – A handwritten Clojure REPL for the reMarkable 2

https://handwritten.danieljanus.pl/2026-06-01-edsger.html
253•nathell•2d ago•34 comments

Show HN: Digger Solo – Local AI File Explorer

https://solo.digger.lol
3•sean_pedersen•3h ago•0 comments

Show HN: I reverse-engineered the world maps of Test Drive III (1990 DOS game)

https://github.com/s-macke/Test-Drive-3-Maps
213•s-macke•4d ago•55 comments

Show HN: Wallflower.app – A Combined Mastodon and Bluesky Client

https://thewallflower.app
2•tldrthelaw•1h ago•0 comments

Show HN: Nutrepedia – Nutrition info in 29 locales built with Clojure and Htmx

https://nutrepedia.com/en-us/
128•llovan•1d ago•28 comments

Show HN: Mnemo – local-first AI memory layer for any LLM (Rust, SQLite,petgraph)

https://github.com/zaydmulani09/mnemo
54•zaydmulani•1d ago•25 comments

Show HN: Eyeball

https://eyeball.rory.codes/
287•mrroryflint•2d ago•86 comments

Show HN: Bit-banged 10BASE-T Ethernet and Wi-Fi router in Rust on the Pico 2 W

https://github.com/mattdeeds/pico-10base-t-rs
5•mdeeds•7h ago•0 comments

Show HN: Bio Glyph – Turn Your Face into a One-Line Drawing

https://bio.bairui.dev/
19•subairui•22h ago•14 comments

Show HN: AgentKitten: Swift package for provider-agnostic AI agents

https://github.com/fbeeper/agentkitten
10•fbeeper•8h ago•1 comments

Show HN: ClearLogo – a logo API that returns usable logos, not raw files

https://clearlogo.dev/en
6•ehalim•8h ago•2 comments

Show HN: Rscrypto, pure-Rust crypto with industry leading public benches

https://github.com/loadingalias/rscrypto
32•LoadingALIAS•1d ago•14 comments

Show HN: Ideogram 4.0 – open-weight 9.3B text-to-image model

https://github.com/ideogram-oss/ideogram4
44•pigcat•1d ago•10 comments

Show HN: Live breath detection and biofeedback from a phone microphone

https://github.com/shiihaa-app/shiihaa-breath-detection
63•felixzeller•2d ago•25 comments

Show HN: Hydron – Hardware-aware coding agent

https://www.hydron.sh/
8•prashantsengar•10h ago•7 comments

Show HN: Lint Your Markdown with ESLint

https://github.com/lumirlumir/npm-eslint-markdown
14•beenzinozino•1d ago•3 comments

Show HN: RePlaya – self-hosted browser session replay with live tailing

https://github.com/s2-streamstore/replaya
50•shikhar•2d ago•8 comments

Show HN: Tired of duct-taping access control into agent prompts. Here's the fix

https://github.com/yaodub/cast
22•zwigglers•1d ago•21 comments

Show HN: Chatcode – Remote Control for Claude Code and Codex

https://chatcode.dev/
9•borkasm•12h ago•14 comments