cd /news/ai-tools/show-hn-iac-bench-a-benchmarking-fra… · home › topics › ai-tools › article
[ARTICLE · art-178699] src=github.com ↗ pub= topic=ai-tools verified=true sentiment=· neutral

Show HN: Iac-bench – a benchmarking framework for LLMs on OpenTofu generation

Massdriver has released iac-bench, an open-source framework that scores large language models on their ability to generate OpenTofu infrastructure-as-code modules, with the latest run covering 24 models across 6 briefs at 3 attempts each for 432 generated modules. Each module is graded 70% on a mechanical score from evaluating HCL and plan outputs and 30% by an LLM judge applying a published "good OpenTofu" doctrine, with prompts left intentionally vague to test model expertise rather than instruction-following. The tool, methodology and rankings are published on Massdriver's site, and the author, who works at the infrastructure automation and continuous delivery platform, said the scoring was kept independent.

recommendation

When benchmarking LLM code generation, weight most of the score on mechanical checks of the output and artifacts, keep prompts vague to test expertise, and average 3 attempts per model.

more in playbook: Evals and testing for LLM apps
read1 min views5 publishedNov 30, 2026

I made a framework for evaluating LLM performance at writing IaC (specifically OpenTofu) modules. You provide a prompt(s) and a rubric.yaml(s) and it will use models you choose to generate a module and grade the results. I've already written 6 briefs across clouds and services (S3, Cloud SQL, App Service, Aurora global, GKE, Azure storage) and have published the results. Each model gets 3 attempts and scores are averaged. The latest run included 24 models x 6 briefs x 3 attempts = 432 modules. Results are here: https://www.massdriver.cloud/llm-rankings

In terms of how models are scored, 70% is mechanical score from evaluating HCL and plan outputs. The other 30% is an LLM "judge" that uses a published "good OpenTofu" doctrine to grade the modules. Prompts are intentionally left a bit vague to evaluate the expertise the LLMs use to produce a module instead of how good they are at following specific instructions, which is generally quite good.

The tool, all of the results and the methodology are all open source.

Disclosure: I work at Massdriver, which is an infrastructure automation and continuous delivery platform. I've done my best to keep this tool and it's scoring independent. We simply use LLMs to generate a lot of IaC and built this to figure out which ones were the best at it and thought it would be interesting to the community.

Write-up and methodology: https://www.massdriver.cloud/blogs/iac-bench-2026-11-results Happy to answer questions. I'd also love to hear from others that have done similar evaluations like this to see if there are some suggestions or requests for the prompts we evaluate and publish.

Comments URL: [https://news.ycombinator.com/item?id=50701553](https://news.ycombinator.com/item?id=50701553)

Points: 2

── more in #ai-tools 4 stories · sorted by recency
── more on @massdriver 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-iac-bench-a-…] indexed:0 read:1min 2026-11-30 · —