Rethinking Dependencies In The Age Of Coding Agents
I’ve been writing software for as long as I can remember. I’m not the greatest software engineer, nor the worst. “Great” is relative to the abilities of the majority. Generally, humans are bad at writing code. Even the most detail-oriented of our species aren’t detail-oriented enough. That’s clearer now that agents have joined us in writing code and constantly improving the precision of their implementation. We struggle to not add bugs and security vulnerabilities in everything we write. Those bugs take time to hammer out, to “harden the code”, and to find the edge-cases. This is a burden we put on our users, who help us find and report these endless edge-cases. We’re even worse at reading code. Writing code is fun, but reading provides us with few dopamine hits.
To make the writing and reading easier, we build and share towers of abstractions, with badly thought-through analogies and variables that soon become detached from their original meaning. We invented “dependencies”. If someone else writes the code for us, then they can find all the human-written bugs. Someone else’s users will have felt the pain of immature software, so our users will feel less. We don’t need to read the code, because it has a million downloads and twelve thousand stars on GitHub - so must be good! And it is, until the first CVE comes. But it’s not from our dependency directly, it’s from its dependencies, sometimes four levels deep. The affected code may or may not actually be used in our code. Without some dependency tooling, which understands our code, it may be hard to know if we’re even affected by this particular CVE.
The tide of CVEs is rising like a tsunami. This is clearly due to the introduction of AI coding agents finding vulnerabilities faster in code written by human coders and potentially some early coding agents.
Coding agents are turning a corner and the likelihood of them generating the bug-ridden AI slop of their early days is quickly trending towards zero. The logical bugs that they do create have already moved past lines and functions and will quickly transcend modules and larger areas of code, as models are able to expand their span of reliable coherence. Lack of thorough testing at all levels, including security, should be a thing of the past, leading to much more hardened code coming out of the code factory the first time, instead of needing to mature in production.
Human engineers who pride themselves on writing near-perfect code can’t compete with an agentic software factory that produces nearer-perfect code faster and more consistently. As human engineers become less of the dependency of building the system, we can start to forego some of the assumptions we make about software construction. It’s no longer hard to write, hard to read, or expensive. We no longer need to rely on external battle-tested code, if it’s no longer written by humans.
Most applications are sitting on top of a metropolis of dependencies. Dependencies with reams of hand-crafted code at varying levels of quality, maturity, and battle-testing. Applications pull in these dependencies freely, and rarely remove them unless forced to. Over time they accumulate immense amounts of code and, left alone, that code becomes a liability. Even fresh dependencies can bring new bugs or compromised maintainers. Dependency maintenance isn’t fun, just necessary.
Every week the number of CVEs increases and our dependencies start to take up more time and feel like a malignant problem. Why are dependencies, which are supposed to make our lives easier, making it harder? Does it make AI coding agents’ life easier? If not, then maybe it’s time to revisit. Maybe we can take a different approach. Raise the bar, so that only the most low-level dependencies get through and all the high-level niceties, which was previously expensive to write and harden, we own and our agents write for us, from scratch. When we write them specifically for our code base, the code will have less redundancy, more efficiency, more consistency, less code, and therefore simpler tests.
So let’s remove as much of the code of the past from our dependency tree as we can. Start fresh with higher-quality, tighter code. Accept that humans are flawed in the details and move ourselves up the stack, to higher-level concerns.
I see this as a much-needed pendulum swing. We’re sitting on millions of person-years’ worth of human-written code that we’ve poured blood, sweat, and tears into. Yes, what we’ve built is amazing, but the quality bar is moving higher and we’re no longer tall enough for this ride. Let’s clear it out and, once we’re into the next chapter of software building, with the majority of human-etched code in the rear-view mirror, reimagine what agentic software dependencies look like.
Written by a human. Reviewed by AI.