When AI agents write the code, engineers must know where the monsters live

Here Be Monsters: What Do You Still Need to Know When Agents Do the Work?

A CI failure traced to SonarQube flagging cyclomatic complexity in an App.tsx file that Codex had generated as 30 lines of single-line components. The code was correct but unreadable. This incident frames the author's argument: as agents produce code faster than anyone can absorb, ownership shifts from having written the system by hand to knowing just enough to spot trouble and dive deep when needed. The piece explores how to train the next generation of engineers through fundamentals, breadth, and just-in-time depth.

The real question is at what level of granularity? ... You need a high-level, far-away map of the entire system, and you need to know just enough to know where you need to dive in, where the monsters live, and you need to be able to jump into any unknown codebase, figure out what's happening, push a hotfix, and describe what happened clearly in your incident report.
  1. mrothroc

    This matches my own experience, pre-AI. As I've moved from IC to having a team over the years, more code was being written than I could possibly understand at the depth I would have if I'd written it myself.

    The skill I learned is exactly as you describe: understand the system. For me, this means "boxes and lines", the components and how they interact. I've encouraged developers on my team to make sequence diagrams part of their deliverable, because it helps both of us put the code in the context of the system.

    The boxes can be opaque because I know the boundaries and expected inputs and outputs. This tells me when I need to go in a box: is it sending a malformed message? I can trace that back into the code.

    I think that's the skill we have to cultivate now that coding agents produce far more than we can review line-by-line. The system view is the map, and the boundaries tell us where to go hunting inside the box.

  2. trjordan

    I like the analogy. It feels right. But I don't think it actually is, because it leans hard on the _feeling_ of failure, vs. the actual failure.

    The failure that actually matters here is product failure. Angry users. Security incidents. Downtime. Broken workflows.

    Stressed and uncomfortable developers have, historically, been a leading indicator of product failure. Software is complex and when devs can't handle the breadth of ownership + the depth of expertise at the same time, it means bad work that leads to product failure. It's not clear that agents fail in the same way, or that our collective intuition about how and when to trust agents is sufficiently developed to predict product failure in the same way.

    As anecdata: I know a bunch of growth-SaaS/last-batch-of-IPO companies where the devs are all stressed, the feature ship rate is up, and incidents are down. All at the same time.

    So yes, quick learners and just-in-time depth is important, but so is intuition about where discomfort is going to produce true failure. The discomfort isn't a feeling to throw away, simply trusting that you'll learn everything in time. Ownership requires holding a model of the system in your head and proactively steering where you dive.

  3. smallerfish

    Site is down, but one thing in particular that needs close attention: db schema. I've found that LLMs make awful normalization decisions; you can limit the fallout somewhat by modularizing database access, bit it still inevitably bleeds over into the object model etc. On AI heavy projects I tend to pause feature development every few days for code & schema review, and subsequent cleanups.

  4. LewisOrton

    I dont know if i fully agree to it. ppl are still trying to find the aspects that AI do not handle (or do very well) yet, to define the irreplaceable value of human (humanity?), without realizing that these abilities/capabilities are within the expanding range of AI soon if not tomorrow. Why would one assume that (99.99% of) human can solve the issues that AI can not?

    should we stop treating the idea that humans must possess some capability AI can never replace as the starting point for discussions about humanity's future?

    I'm inclined to think we should.

    Preserving human agency is a moral and institutional choice, not something that needs to be justified by human cognitive superiority

  5. olwmc

    > Most of the successful engineers and engineering leaders I have had the pleasure of working with were able to hold a discussion on almost any topic, whether technical or not

    Reverse Gell-man? https://en.wiktionary.org/wiki/Gell-Mann_amnesia_effect#Engl...

  6. EduardLev

    Mostly agreed with just in time learning. This is not just something that can be learned from the code though, this may require a huge amount of code context across multiple repositories and configuration files, as well as a knowledge of history, process, other tribal knowledge etc. So to me that's still the really difficult part of the job and AI definitely helps but doesn't entirely solve this. I see it often wants to solve some issue at not quite the level of depth or high level understand that you would want.

  7. dgrcode

    > They may have been specialists in certain things, but what was most impressive was their ability to draw upon and weave together seemingly disparate concepts from different disciplines and use that knowledge to solve problems.

    That's a nice way to put it.

  8. lordnacho

    I always build a massive testing harness. I care about correctness, of course, and that is normally dealt with by the AI without having to ask. If you ask for a function, it will write tests.

    But I also care about the complexity classes of the solution. I prod it about the time and space complexity, and about cache locality.

    I do a lot of black box testing: take the solution, see if it does what I expected, then bake in those expectations in a document.

    I find that if I do those things, it produces better code than I could do in the same time.

    I also think it's more or less the same as how I used to work, just more thorough and with fewer time-consuming, trivial bugs.

More from this day

2026-10-27