A year of contrasts: how software engineering is changing at Pulumi

· 20 min read

After 15 years of writing software professionally, I haven’t written a line of code by hand for six months. I’d been reading breathless predictions about this future for some time, but I was skeptical. I was still using AI like a glorified search engine. It was helpful, but didn’t seem all that different from my familiar tools. I enabled single-line AI suggestions in my IDE, and experienced a few moments that felt magical, almost like the LLM was reading my mind. I was definitely more productive, but it didn’t yet feel transformative.

That all changed for me in March, when I needed to work on a feature for a prospective customer. This was a time-sensitive request because they were interested in one of our experimental features, OPA policy, but their evaluation period was already underway. It had been almost seven years since anyone had worked on this feature. I looked at the work involved, and estimated that it would take at least six weeks to complete by myself. Clearly, that wasn’t going to cut it. I decided that this project would be a good test case for AI-driven coding. The requirements were pretty clear, but there was a lot of work to do, and not much time to do it.

Shipping this feature required thousands of lines of new code across six repositories and three programming languages. I addressed every open issue in the repo, including a feature request that had languished on the backlog for years because it looked too difficult to be worth the investment. This wasn’t part of the initial plan, but AI gave me the opportunity to pull in this valuable change without blowing the deadline. Despite the expanded scope, the entire project shipped three days later. Ideas that I’d been sitting with for years suddenly seemed achievable, and I realized that my world had changed completely.

Old ideas coming to life

I work for Pulumi, which is an Infrastructure as Code startup with several dozen engineers. I joined at the beginning of our Series A, about eight years ago, and have worked on aspects of most of our products since then. I’m currently working on our cloud services and focused on governance, helping customers to understand and manage their cloud infrastructure with confidence.

Our tools help users operate cloud infrastructure by applying software engineering practices. By writing software, users declare what properties their infrastructure should have, and how that infrastructure is organized. Now, many of these users are AI agents, which are improving steadily in their ability to write and operate software.

As part of our cloud service, Pulumi stores information about our customers’ infrastructure, but this information is mostly organized by implementation details. A cloud application may be split into several different stacks and deployments, each with associated secrets and configuration. For each service, our APIs allow users to list the items, get details about a specific item, and make changes to items. Although cloud infrastructure can be understood most naturally as a graph, the information was only accessible through lists.

I’d been mulling over this question for about five years: how could we make it easier to understand infrastructure without having to assemble the context yourself? Despite my interest in the topic, it had never been the right time to work on it. I figured that it would take a dedicated team many months of effort to address, and I didn’t yet have the business case to support that kind of investment. In an interesting twist, agents provided both the motivation and the enablement for this project.

Writing gets much faster

One of the most dramatic changes over the past year is the speed at which AI can produce useful text, both software and documents. When I have an idea that I want to capture in software, AI can write that code almost as fast as I can think of it. After years of writing software by hand, this is a jarring change. Software organizations spent significant effort planning out the work, organizing teams, and then clearing extended focus time to translate these ideas into code. Even the common term for the job, “coder”, hints at the weight of this task. Now, I often spend almost as much time writing the description of what I want done as it takes an agent to actually do it.

Context was always implicit in this job: what needs to be done, how can we accomplish our objectives, who is going to work on a task? Engineering processes support these goals, but some of the context is what we call “institutional knowledge.” Many important facts and norms live in people’s heads. Sometimes these are documented, but information drifts out of date as things change, and it’s not easy to understand the real state of the world. Agents sharpened our focus on this problem.

There’s a lot to think about beyond writing lines of code that technically accomplish a goal: source control, testing, variable names, documentation, abstraction, duplication, performance, conventions, separation of concerns, tech debt, and so much more. Unlike a person, agents don’t naturally get better at these things over time. New models can improve the baseline, but general coding ability doesn’t account for all the important nuances of each code base. They lack institutional knowledge.

We started with documentation in an AGENTS.md file to explain our service code: what tools are we using, how do we build and test the code, how is it organized? This expanded to include details about style, pitfalls to avoid, and explanations of the many different systems comprising our service. Normally, engineers acquire this knowledge over months of working with the code base, so this document grew large.

While I thought about the challenge of getting agents to understand our software, I realized that it bore many similarities to my nagging question of how to understand infrastructure. I had years of notes and ideas saved on this topic, along with other sources of inspiration, including essays, talks, articles, and papers. I sat down to write one evening and fed this context to my agent, along with my current thinking about possible solutions. Three hours later, I had a 25-page proposal with research, mockups, and a clear product vision. I was actually shaking with excitement by the time I was done. The prose was largely AI-generated, and a bit sloppy, but it got the substance of the ideas out of my head and into a form where I could do something with them.

I shared the document with some colleagues the next day, and was encouraged by the response. Somebody asked what next steps I suggested, and then things started moving quickly. Pulumi has quarterly hackathon weeks, and the next one was fast approaching. I wanted to test my proposal with a real demonstration of the possibilities, so I planned out an ambitious project, and recruited a small team that was excited by the plan. Like it had on the previous OPA policy project, AI helped us write the code remarkably quickly. In four days, we built and demonstrated a prototype that won the “most innovative” award and drew wows from the audience. Although I was itching to keep working on it, I had other projects in flight, so I had to put it on the back burner for a while.

Shifting bottlenecks

While agents accelerated our writing, both for code and prose, this change revealed other problems. Our AGENTS.md file was getting unwieldy; it was growing beyond our capacity to understand or maintain without using an agent to help. This document contained all sorts of useful information, but it wasn’t organized well for solving narrow tasks. A new reader would find a sweeping overview of the service and engineering philosophy alongside gritty technical details. We found that agents would ignore information from this document, writing code that contradicted our instructions. It seemed that they too were struggling to find the information they needed.

We learned about progressive disclosure—an agent should only read the docs related to the code it’s working on—and responded by splitting the document into multiple AGENTS.md files, organized by directory. Now, agents could write code that followed our standards pretty well, but we would find problems when CI tests ran on the changes. Our service had a lot of fiddly dependencies and configuration. People would eventually figure out something that worked on their machine, or would use CI tests as a normal part of their dev loop. This friction became very apparent when every agent struggled to run a test. Writing the code was fast, but getting it to pass tests was painful and slow by comparison. This revealed something unexpected: with multiple agents running every day, onboarding friction is a big problem.

In a human team, onboarding is a process that’s usually measured in months, and happens infrequently. Even a fast-growing team isn’t onboarding dozens of engineers per day. The onboarding cost was amortized over many months, so it was difficult to justify much investment in this process. Suddenly, new agent sessions were onboarding dozens or hundreds of times per day, and this friction became very costly. We responded by overhauling tests and adding new scripts and documentation for running them. This helped agents to run the tests locally, but that revealed a new set of problems.

We found race conditions between tests, tests that behave strangely when configuration doesn’t match CI, developer laptops running out of memory, and tests that weren’t being run at all or were not testing what we expected. Stressed in new ways and at a much greater scale, the test process began to require a lot of our attention. Test flakes are annoying for people, but we often ignore them if they pass on a re-run. For agents, test flakes are a distraction that can lead them down unexpected tangents. An agent’s effort to debug a test failure pollutes the session context, and they may gradually lose sight of the original goal we set for them.

We began fixing flakes and improving the test suite as we went. Agents were helpful here because they could often diagnose and fix problems independently. It was usually more cost effective to fix problems as we found them rather than disabling tests or adding issues to a seemingly endless backlog. Eventually, the test suite stabilized. Flakes were rare and then were fixed quickly when they appeared. We started cleaning up other tech debt along the way; hundreds of minor problems that were never worth the effort to fix were now something that our agents could handle with minimal oversight.

Code reviewers found themselves repeating the same feedback, much of it related to style or maintainability rather than pure correctness. Code linters were a natural way to handle many of these problems as the code was written, and again, agents made it easy to write new lint checks. These were not new processes, but the increasing rate of change elevated their importance.

Building and linting the code were becoming new bottlenecks. It might take an agent two minutes to write the code and then another 30 minutes to build, lint, and test the change. The build system that had carried us through the past nine years was struggling to keep up. At a small company, build systems are often a shared problem/responsibility because it’s not worth the investment for a dedicated team to manage. With more code changes happening each day, the calculus had changed, and we decided to seriously invest in our build system.

Meanwhile, I was still thinking about the hackathon project. Progress had stalled while I worked on other priorities, and I wanted to rebuild that momentum. The hackathon demo was broad and showed many different possibilities, but now we needed some definitive next steps. As in the earlier hackathon project and proposal, I had already collected months of notes, although many of them were AI-authored this time. I fed an agent this context along with a half-formed idea for a new graph API and then went back to work on my other project. A couple hours later, it was done working and I could hardly believe the result: a working API, complete with several example queries that were ready for a demo. I didn’t understand the implementation details yet, but here it was, working with Neo (our AI infrastructure agent), on real data in a test environment! After I demonstrated it at our weekly all-hands meeting the next day, leadership asked, “When can we ship it?”

I said that I thought it would be a couple weeks of work to turn the prototype into a production feature; after all, everyone could see it working already, so it must be close. Estimating software tasks has always been challenging, and AI further disrupted the intuition I spent years building. Even though the prototype looked correct for the examples I’d tried, I didn’t yet understand how it worked or have confidence about how it would behave in production. As two weeks passed, I realized that I had misjudged the work remaining.

Slowing down, and speeding up

My project wasn’t the only one struggling with time estimates. While AI accelerated the process of writing code, that didn’t always translate to projects finishing faster. As our team strained the limits of our aging build system, we decided to switch from a combination of Makefiles, Dockerfiles, and shell scripts to a Bazel build system. Several engineers with deep expertise in build systems began working on this transition, but it was difficult to manage these changes without disrupting our ongoing software development. It took a while before we saw any tangible benefits because we had to untangle years of build cruft and dependency problems. We rewrote tests to run in a hermetic environment, refactored imports to avoid dependency cycles, overhauled our lint pipeline to run as part of the build, addressed many sources of indeterminism in our code, and dropped hundreds of lines of Makefile targets and scripts.

We ran into unexpected network egress costs from build caching, swapped out parts of the build backend, and struggled to keep things working smoothly across CI and the variety of developer machines building things locally. This was an expensive and challenging experience, but eventually the investments started to pay off. Before, every PR in our main service repo took upwards of 40 minutes to run all of the builds and checks, and test flakes were common. Now, the entire process takes about 10 minutes, and we’re able to cache aggressively. Instead of running the entire test suite on every change, the build system knows which tests apply to which parts of the code. We are running more tests and lint checks than ever before, faster, enabling us to ship changes much more quickly while maintaining confidence in them. It was important to reconsider the whole software development lifecycle now that code was fast to write; it doesn’t help much if the rest of the process drags by comparison.

Shipping faster also means that reviews are more of a bottleneck. Agents can change thousands of lines of code in a few minutes, far exceeding a human’s capacity to review those changes. In a typical PR process where at least one reviewer has to check and approve each change, PRs stack up quickly, waiting for review. We’re still trying to find the right balance, but are starting to rely more on AI review.

We created an internal agent bot that can be tagged to review any PR. This bot has a sandbox where it can experiment and test the PR it’s reviewing. It runs some specialized sub-agent reviewers to check the code for security, correctness, AGENTS.md compliance, and test coverage. The combination of the sandbox and specialized review agents catches a lot of real problems, some of which are not apparent from reading a PR diff. Busy human reviewers may not have time to investigate deeply, but agents don’t mind going through the same exhaustive checklist each time to validate that the code actually does what it’s supposed to. Still, there are debates internally about what role humans should continue to play in the review process.

The review bot posts findings back to the PR, and can approve changes that it determines are low risk—a judgment that includes things like the size of the change, user-facing impact, and ability to roll back in case of problems. Our mechanical changes are increasingly written, reviewed, approved, and merged by agents. Previously, we would release to production once or twice per day; most releases would have about a dozen commits. Now, it’s common to see releases with several dozen commits, multiple times per day. Clearly, AI accelerated our pace, but this introduces new challenges, and the bottlenecks keep moving.

Building through uncertainty

Understanding agent-driven changes, especially at this rapid pace, is a persistent difficulty. So far, agents write better code than they write prose intended for human readers. They are often too verbose and create inscrutable walls of text in PR descriptions, commit messages, and code comments. Agents don’t seem to be hindered by this, but it’s unpleasant for us to read. We haven’t found a good solution for this problem yet, but have tried a variety of approaches: accepting the walls of text, beating them into better shape through additional process, or simply writing any human-focused prose manually.

As we wrestled with these changes over months, I kept coming back to the problem of knowledge transfer. How can we maintain an understanding of our software, and the behavior of our systems, if we are not implementing the changes? The experience of working through these unfolding challenges offered some clues, and I often found myself thinking about the hackathon project. Again, AI provided tremendous leverage for getting ideas out of my head and into documents I could share. However, I noticed mixed success with these subsequent documents, which relied heavily on AI-generated prose. Several people told me that they were having trouble understanding what I was trying to say, and that this writing was more confusing than helpful. I thought this was interesting, because I was gaining clarity as I created and reread the same documents. The crux of the problem seemed to be a lack of shared context; I already had a map in my head that wasn’t being represented well in the dense text.

My graph API prototype smoothed the way a bit; it provided a tangible thing to test. My colleagues started building with it, even though none of us fully understood how it worked yet. As I shaped it into a system I was comfortable operating, I discovered additional requirements that I hadn’t considered. Although I spent months thinking about this system, testing revealed some critical shortcomings.

The thorniest problem was related to RBAC; results had to be limited to what the user was allowed to see. I had thought about this requirement extensively when I specified the API, but it had not occurred to me that this also changes the meaning of the answer. Say a user has limited access, and can only see one stack from an application that is composed from three stacks. If the user wants to know what other parts of the system might be affected by a change, a shortened result might leave out crucial details. How can we warn the user about an incomplete answer without leaking details that they are not entitled to know? I solved this problem by adding metadata to the results indicating if the answer is incomplete; details about exactly what is missing are not included.

In retrospect, it seems obvious to me, but I missed this problem while I focused on building the system to trim the results. This product requirement wasn’t clear to me until I invited some colleagues to start testing the system, and started getting questions about what the answers meant. This type of situation is common in software development, but now it was easier to catch the problem early and fix it while it was still possible to make breaking changes; once customers start using it, backward compatibility requirements make it much harder to alter the interface.

I found this new AI-enabled development speed to be exhilarating. As I uncovered problems, it was almost effortless to experiment with alternatives. AI-authored code sped up implementation so much that it worked better to build, test, and discard some designs than to spend a lot of time trying to anticipate every problem up front. Fast iteration loops have always been important for maintaining a flow state while I’m writing software. I still experienced a kind of flow on this project, but the focus moved up a level. Now, I was thinking more about the architecture and product constraints, and the dev loop was building and testing changes that encompassed whole tasks rather than a small section of code. This mirrored the way I liked to work before agents: make a change, experiment with the behavior, challenge my assumptions, and then refine the approach until I’m satisfied.

The way code is organized is closely tied to the types of bugs that are likely. When I develop a function in isolation and include unit tests for it, I can build a lot of confidence that the function behaves like I expect. When I try to use that function with other code in the broader system, I often discover that the requirements weren’t quite right. I’ve found in previous projects that I don’t really nail the design until I’ve tried and discarded at least two solutions; the third try greatly benefits from my experience building the first two. Agents make it economical to build like this regularly without getting lost in the weeds.

Finding direction

As more of my attention was spent on tasks rather than low-level implementation details, I found that I was having difficulty keeping track of all the things I still needed to do. I had the original roadmap in mind, but I was continuously discovering new problems that required changes and receiving feedback from colleagues and customers that reshaped product requirements. This also was typical of software engineering, but the time scale had compressed from months to days.

Did it still make sense to file issues and write documents when I could delegate to an agent with about the same effort? I tried to hold all of this information in my head and local notes for a while, but it became clear that this wasn’t sufficient; there was just too much going on and I was losing track of the intended direction and how it all fit together. I ended up building a task tracking workflow for my agents. As information came in, I (well, usually an agent on my behalf) logged it as a finding in the tracker. Periodically, I would work with an agent to triage findings, creating new tasks or updating existing ones.

Tasks included some lightweight dependency information, so I could start agents working in parallel on tasks that weren’t expected to conflict. I’m still unsure if this is better than a shared project management application, but it brought some much-needed structure to the process, and I liked that it was fast. Agents can get the context they need from many sources, but speed and simplicity are advantages. My agents and I didn’t have to work hard to figure out next steps, find out what was already done or in progress, or update that knowledge as we learned new things. It felt like a shared brain. It was a great relief once I could stop trying to manage all that context by myself. When I needed to provide status updates or answer some questions about the system, an agent would look up supporting information from the tracker, which enabled me to write an accurate and timely response. The tracker didn’t solve the knowledge gap completely, but it provided a reliable way to build that understanding; my agents used the same information as context for changes as we pushed towards launch.

Between project management, documentation, and testing, my understanding of the implementation developed to the point where I could explain it to others. However, this process also uncovered many subtle problems. A surprising number of these issues were latent bugs in the service that had gone unnoticed, or were newly important because of my changes. Agents were very helpful for testing the system; they often notice small details that a person might overlook. Pulling on those threads led to many improvements. It was nice to have a low-friction way to log and track these findings so that I could follow up on them later without derailing my train of thought. During lulls, I’d usually spawn some new agent sessions to investigate in the background while I worked. Building this understanding was a longer process than I expected, and my two-week estimate turned into six weeks.

Finally, about five months after I first moved the ideas out of my head and into a written proposal, we launched the “context API”. As I’d hoped, our early measurements indicated that agents use this API to orient themselves quickly and accomplish their infrastructure tasks more efficiently. Compared to results from our existing APIs, we’ve observed that tasks involving graph-shaped questions usually require fewer agent tokens and take less time to complete.

Looking back, and forward

This was a year of contrasts. I worked on projects where estimates compressed from weeks to days, while others expanded from weeks to months. It’s faster to generate text, but that stresses everything that was built expecting it to take a while. Agents can make changes faster than ever, while simultaneously making them more difficult to comprehend.

While many of the specifics changed, I found that familiar engineering practices remained useful. With the growing pace of change, systems that provide relevant context and can adapt to feedback are increasingly important. Faster changes make prototypes and experimentation more economical; these approaches proved to be a useful way to understand complex systems. Our capacity for understanding may lag the speed of change, so tools that support comprehension are critical.

I used to understand software primarily through the act of writing it, with review and documentation supporting this learning over time. AI alters this balance, providing the option to skip the learning entirely at the risk of shipping something that doesn’t work like I expect. At the same time, agents provide new ways to organize and understand systems. I don’t have to hold every detail in my head, or in meticulously curated notes, because agents work like my own dedicated team.

While writing provides a shared medium, text that is effective for an agent is not always so for a person. I could decipher, and gain useful insights, from AI-generated documents that were based on my own thinking. However, these same documents could frustrate and confuse my colleagues unless I first took the time to interpret the information through my own writing. The importance of structuring information for the appropriate audience has not diminished.

I now have several examples of completed projects that would not have been possible without agents; time constraints often limited my ambition, even when I was convinced that the projects were valuable. My attention is increasingly focused on managing the system rather than on crafting lines of code. At various points, I worked on project management, product definitions and customer research, software architecture, writing documentation, integration testing, and perhaps most importantly, communicating about this work to the organization and the public. I did not write a single line of code by hand on these projects, but I am still responsible for those systems and how they operate.

My job looks entirely different than it did a year ago, but I’ve found that I’m enjoying it more than ever.


This essay was written for The Pragmatic Engineer’s essay challenge on how software engineering is changing.