A Brief Walk Through Program Space: Agents and edge-case-driven development A new arXiv paper, SlopCodeBench (arXiv:2603.24755), benchmarks how coding agents degrade over long-horizon iterative tasks, according to a post that cites the paper alongside Kristen Maevyn's essay "The Decoherence Trap." The post argues that LLMs and agent harnesses can now reliably find programs meeting product requirements, but that it has become much easier to build programs on a costly trajectory through "Program Space" — or into a local optimum the organization spirals around until a large rewrite. The Linux kernel, cited at 43 million lines of code as of July 2026, anchors the post's estimate of a 100 billion-character upper bound for program complexity. A Brief Walk through Program Space SlopCodeBench: Benchmarking How Coding Agents Degrade Over Long-Horizon Iterative Tasks https://arxiv.org/abs/2603.24755 . Additionally, while I’m not sure I’m aligned with its core thesis about RSI, I highly recommend reading The Decoherence Trap https://maevyn.codes/decoherence by Kristen Maevyn which inspired me to think more deeply about the types of complexity agents produce. Every program that has ever been written, and that will be written, exists in an incomprehensibly large but nevertheless finite “Length-limited Character Sequence Space”. This space consists of all sequences of characters up to some character limit that is comfortably larger than the longest program than exists today.The Linux kernel, as of July 2026, consists of 43 million lines of code https://www.linux-magazine.com/Online/News/More-than-43-Million-Lines-of-Code-in-Linux-Kernel-7.2 . If we say most are probably fewer than 100 chars long, this gets us to 4.3 billion chars as a good upper bound on the Linux kernel. The Linux kernel does a lot, so increasing it by over an order of magnitude to 100 billion chars is definitely enough space to write programs more complex than any org is ever likely to get close to. Within the “Length-limited Character Sequence Space” there exists an incomprehensibly small subset that contains syntactically correct character sequences that will compile or run I’ll call this subset “Program Space” . Within Program Space there exists an incomprehensibly small fraction that would meet a particular design specification. Getting to this atom in a haystack used to require software engineers or a monkey, a typewriter, and enough time infinite monkey theorem https://en.wikipedia.org/wiki/Infinite monkey theorem . Now LLMs and agent harnesses can fairly reliably find these atoms. But not all programs that satisfy a particular set of product requirements are created equal. While meeting product requirements is the most visible goal of writing a program, in most environments there is an equally important perhaps more important requirement of minimizing the cost of mutating the existing program to meet future product needs. The crux of why design patterns are useful is that they provide structures that help software engineers orchestrate low-cost walks through Program Space. If I had to characterize one of the largest challenges the software industry faces at the end of 2026, it is that it has become much easier to build programs that fall on a costly trajectory through Program Space, or, worse, lie on a trajectory that leads to a local optimum that the organization spirals around until a large rewrite is doneAt a “local optimum” the code too complex to meaningfully extend, so most changes are patching bugs or adding very small features. Hypothetically, we could map programs in “Length-limited Character Sequence Space” to embeddings in a lower dimensional space Remember almost all of Length-limited Character Sequence Space falls outside of Program Space so we don’t need nearly as many dimensions to represent Program Space.. Decoding a program embedding should produce a program with approximately the same behavior as the program used to encode it. To some extent, natural-language product requirements do just this. Getting stuck in a local optimum looks like taking big jumps in Length-limited Character Sequence Space as measured in edit distance to somewhere very close in program embedding space. This happens if a model fails to realize the general underlying structure of a problem a program is likely to have to solve, and instead replicates the structure in similar but subtly different ways for each new version of the problem it encountersModels need to make judgment calls on every change to decide if a larger architecture change is required or if smaller patches are sufficient. It’s hard to tell if the current models are fundamentally not capable of making these judgment calls or if they have just been heavily biased into code-golfing changes.. I like to call this “edge-case-driven development” because each new feature is treated not as evidence for some underlying pattern but instead as something disparate. Edge-case-driven development manifests itself in mangled data classes, lots of synchronization points between different components, variable names that do not match what the variable semantically represents, lack of adherence to sensible SOLID and functional programming patterns, high degrees of branching, loads of comments to document hacky choices, among other things. This makes reviewing substantially harder than in the past. To make matters worse, there are way more PRs, which can functionally lead to a DoS attack on the review process. After enough time of doing this it can be pretty hard to clean up the mess. Even if agents are capable of discovering the underlying structure when directed to look at the problem holistically, and can refactor the program to that new structure, a team will need to do testing to make sure there are not new edge cases that are now not accounted for i.e., the agent might have been able to generalize to existing edge cases but not the full universe of likely edge cases . The obvious question is how should software organizations change to address this new challenge? For the sake of argument let’s say that models and harnesses won’t be capable of writing structurally generalizable programs for a couple of years. I don’t have a perfect answer but I think one of the key observations is that measuring output by features produced may have been an imperfect but directionally correct approach in the past. However, now that features are free at least in the case where you let an agent shoehorn in a new feature the math around output changes substantially. Disciplined reviews to keep the code base from drifting into a state where the majority of changes are the product of edge-case-driven development become one of the primary outputs of a software engineer. As such, increasing the visibility of the review process both the effectiveness of the individual reviewers and assigning the cost to the owner of the PR asking for review , and developing more fine-grained approval processes will be critical. Additionally, part of the approval process should be documenting the most likely assumptions about the environment the program is running in that could change and break the program, as well as the challenges one might expect the current implementation to incur for integrating features several iterations down the line. One path, I would caution against is spec-driven development. A year ago, I was pretty bullish on the idea; now I think it is, for the time being at least, a dead end: specs and code almost instantly drift apart, and that won’t change unless we get to a state where you can treat LLMs as compilers that take in a spec and produce a program with stable undefined behavior. Because every undefined behavior has some probability of being treated as a stable interface by some client, constantly changing undefined behavior makes it futile to try to build software that is reliable for all your clients across releases. See the Law of Implicit Interfaces/Hyrum’s Law https://lawsofsoftwareengineering.com/laws/hyrums-law/ .