Home
WorkBlogTalksPapersAbout
Nikita Kozodoi

Blog

29Posts
Nikita Kozodoi

SWE-InfraBench + Kiro: What Happens When a Coding Agent Tackles IaC?

  1. Home
  2. Blog
  3. SWE-InfraBench + Kiro: What Happens When a Coding Agent Tackles IaC?
Natalia Tarasova, Enrique Balp-Straffon, Aleksei Iancheruk, Yevhenii Sielskyi, Nikita Kozodoi, Liam H. Byrne, Jack Butler, Dayuan Jiang, Marcin Czelej, Andrew Ang, Yash Shah, Roi Blanco, Sergei IvanovAugust 20264 min read

Does letting the coding agent re-run the tests improve its performance?

GenAIAgentsEvaluationLLMs
Read the full post on Builder Center

When we published SWE-InfraBench, the headline was how badly LLMs handled infrastructure-as-code. The benchmark holds 100 tasks drawn from real AWS CDK repositories, each asking for a specific modification described in natural language and graded by whether the generated CloudFormation passes the repository's own unit tests. Claude 3.7 Sonnet, the strongest model tested, solved 34% in a single attempt. Giving it the test errors and a second attempt reached 65%, which still left a third of the tasks unsolved.

The paper argued that the missing piece was iteration rather than model capability, so we went back and tested that directly. We ran Kiro agent with Claude Sonnet 5 across all 100 tasks in two configurations: (i) two-turn agent run matching the original protocol; (ii) unrestricted agent capable of running tests in a sandbox as often as it likes within 600 seconds.

The two-turn agent with Sonnet 5 reached 69%, while the unrestricted agent solved 82% of tasks, substantially surpassing the previous best result. The error breakdown is even more interesting: logical errors, where the code is partially right, fall from 17% to 3% once the agent can re-run the tests, but syntax errors barely move. The loop is not making the model better at CDK, it is letting a nearly-correct answer converge after a few iterations.

Read the full write-up on the Builder Center for the detailed results and the evaluation setup.

Nikita Kozodoi

Written by Nikita Kozodoi

Senior Scientist on the AWS FDE team. I publish applied AI research and embed with engineering teams to build custom AI systems, from scoping and experimentation to fine-tuning and production deployment.

See my workGet in touch

Related content

Blog

AUMOVIO Improves Quality of Automotive Software at Scale Using Multi-Agent AI on Amazon Bedrock

2026
Blog

Detect Hallucinations for RAG-Based Systems

2025
Blog

Medical Legal Regulatory Review Orchestration with AI Agents on AWS

2026

Pages

  • Work
  • Blog
  • Talks
  • Papers
  • About

Social

  • LinkedIn
  • GitHub
  • Google Scholar
  • X / Twitter
  • Instagram

Contact

  • n.kozodoi@icloud.com
  • Buy me a coffee
  • Download CV
  • RSS feed
  • Berlin, Germany

© 2026 Nikita Kozodoi. All opinions are my own.