Beyond Blueprints: The Agentic Evolution of Infrastructure as Code
Infrastructure as Code (IaC) has revolutionized how we manage and provision our digital foundations, transforming manual, error-prone processes into repeatable,...
Snehasis Ghosh
Infrastructure as Code (IaC) has revolutionized how we manage and provision our digital foundations, transforming manual, error-prone processes into repeatable, version-controlled definitions. But what happens when the "code" starts writing, reviewing, and even deploying itself? Recent announcements from industry leaders like Pulumi, KusionStack, and Turf signal a profound shift: IaC is evolving into an agent-driven, "everything as code" paradigm, moving far beyond mere infrastructure definitions to encompass delivery pipelines, operational responses, and even platform construction.
The Ascent of Agentic IaC
Pulumi's latest launches, Pulumi Delivery and Pulumi Agents, are at the forefront of this evolution. Their recent blog post, "Everything after code, as code," highlights a staggering trend: the share of infrastructure operations on their platform done by agents soared from zero in January to over 40% by October 2026, with a drive toward 100%. This isn't just automation; it's agentic code taking center stage.
Pulumi Delivery allows teams to define entire release processes—stages, promotion logic, rollout policies, and gates—as code in familiar languages like TypeScript, Python, Go, C#, Java, HCL, or YAML. This brings software engineering principles like testing, sharing, and reuse to your delivery pipelines, integrating seamlessly with existing CI/CD tools.
Complementing this, Pulumi Agents monitor running systems, react to events from observability platforms like PagerDuty or Datadog, and even propose fixes. These agents aren't rogue automatons; they operate under strict guardrails. Every proposed change manifests as a code diff, generates a deterministic plan, and undergoes the same policy checks and pull request reviews as human-authored changes. They have scoped identities, least-privilege roles, and short-lived credentials, ensuring security and auditability. The loop is truly closed: agents can even ask decision models to score deployment risks, promoting low-risk changes autonomously or routing risky ones for human approval.
Platform as Code: Unifying Intent
Further enriching the IaC landscape, KusionStack has introduced an intent-driven platform orchestrator for Kubernetes and cloud environments. Dubbed "Platform as Code," it aims to serve as the core of an Internal Developer Platform (IDP), bridging the gap between platform engineers and application developers.
KusionStack uses KCL, an open-source constraint-based functional language, to define application intent through AppConfiguration. The workflow is simple yet powerful: "Write, Generate, Apply." Platform engineers define shared modules, application developers declare their operational intent, and the system generates a "Spec" file—an immutable single source of truth. Before any changes are applied, a preview command performs a three-way diff (desired, live, and previous states) to ensure consistency. This approach streamlines complex cloud-native deployments by standardizing reusable building blocks, creating "Golden Paths" for DevOps lifecycle management.
Decentralized Control and Human Approval
Meanwhile, Turf on kagent 1.0 offers another fascinating dimension to agentic IaC. Here, the Kubernetes cluster itself becomes the control plane. An agent running within the cluster uses Turf's OpenTofu-based toolset to propose infrastructure changes, from cloud resources to entire clusters. Users interact via a chat interface, asking for infrastructure, then reviewing and approving the agent's deterministic plan.
Security is paramount: cloud credentials remain with Turf's engine, not the agent's sandbox. The agent proposes, a person approves, and only the engine applies the changes. Turf also integrates drift detection, ensuring that if anything deviates from the desired state, an agent proposes a corrective plan, again, awaiting human review.
The Future is Governed Automation
These developments collectively paint a clear picture: IaC is evolving beyond static configuration files into a dynamic, agent-powered ecosystem. The common thread is the pervasive application of code to everything – infrastructure, delivery pipelines, operational responses, and even the platforms themselves. Crucially, this shift is not about ceding control to machines, but rather empowering them within tightly governed frameworks. With deterministic plans, rigorous pull request workflows, robust policy engines, and human approval gates, the future of infrastructure management promises unprecedented levels of automation, speed, and safety. The human element shifts from manual execution to strategic oversight, setting the autonomy slider wherever comfort dictates, from "human in charge" to "full autonomy" with continuous guardrails and audit trails. The era of "everything as code" is here, and it’s smarter, safer, and more autonomous than ever before.