Give the Boring Parts of Software Engineering to AI

Nobody talks about the boring parts of software engineering.

They don't make it into tech talks or blog posts. Nobody gives a conference keynote on how they pulled thirty days of logs to find when an error started, or how they read four hundred lines of legacy code to work out why one flag exists. And yet, by my estimate, this stuff is about 70% of the job.

It's also the part most engineers rush through. I know because I did it for years.

This post is about what changed when I stopped doing the boring parts myself and handed them to my agentic workflow. All of them. Not because I want to do less work, but because the boring work finally gets done properly, and I get to spend my own attention on the bit that actually needs a human.

A page of logs, three database cylinders, a page of code, a PR document and a before-and-after bar chart ride a conveyor belt into a small robot agent. One arrow leads out of the agent to a person standing where three dashed paths fork towards three flags.
The boring work rides through the agent. The fork at the end is still mine.

What the boring parts actually look like

When people imagine software engineering, they picture the interesting part: designing a system, writing a clever fix, arguing about architecture on a whiteboard. That part is real, but it's the thin end of the week. Here's the rest, in generic terms.

Pulling 30 days of logs to find when an error started. A customer reports something broken. The error rate graph looks a bit higher than usual, but it's noisy. Did this start with last Tuesday's deploy? With a config change? With a third-party API that quietly changed its response format? The answer is in the logs, spread across a month and a few services, and finding the first occurrence means filtering, grouping, exporting, and squinting at timestamps in two different timezones.

Cross-referencing three databases to trace one customer's broken state. The orders table says the payment went through. The billing service says it didn't. The analytics warehouse has a third opinion. Somewhere between them is the moment this customer's account went wrong, and the only way to find it is to pull the same customer's rows from each system, line them up by time and spot where the story stops making sense.

Reading 400 lines of legacy code to understand why a flag exists. There's a boolean called something like skip_legacy_sync that's checked in a dozen places. Nobody on the team remembers who added it. The person who did left years ago. Before you can safely remove it, or even safely change the code around it, you have to read everything that touches it and reconstruct the reason from the code itself, the commit history and whatever tickets still exist.

Writing the PR description that nobody will read but everyone will need later. The fix is done. The tests pass. Now you have to write down what changed, why, what you considered and rejected, how you verified it and what to watch afterwards. Today, the reviewer will skim it. A year or two from now, someone running git blame at midnight during an incident will need every word of it.

Checking if the fix actually reduced errors a week after shipping. This is the one that almost never happens. You shipped the fix, closed the ticket and moved on. Did the errors actually go down? Or did they drop for a day and creep back, because the real cause was something else? Finding out means going back to the dashboards a week later, comparing before and after, and writing it up. By then you're three tickets deep into something else.

None of this is glamorous. All of it matters.

Why the boring work gets rushed

It's not because engineers are lazy. I've worked with plenty of engineers and very few of them were lazy. The boring work gets rushed because engineers are human.

We get tired. Correlating log lines at four in the afternoon is not the same as doing it at nine in the morning. By the third hour, you start skimming. You see a pattern that fits your theory and you stop looking for the one that doesn't.

We context switch. There are always three other tickets open, a review waiting, a Slack thread asking for an update. Every interruption resets the careful mental model you were building of that legacy module, and rebuilding it costs more each time.

We're under ticket pressure. The visible output of the job is the fix. The investigation behind it, the description around it and the follow-up after it don't show up on a board. So when time is short, those are the first things to get trimmed.

And honestly, we want to get to the interesting part, so we pay the price of admission as quickly as we can. That's when shortcuts creep in: the timeline that's "probably" right, the legacy code we read half of, the PR description that just says "fixes the export bug", the week-after check that never happens.

Why it matters more than it looks

The cost of rushing the boring work doesn't show up straight away. It shows up later, and usually on someone else's afternoon.

A rushed investigation means a fix for the wrong cause. The symptom goes away for a while, the ticket closes, and the real problem comes back next month with a new ticket number. A half-read legacy module means the flag you removed was load-bearing for some edge case nobody remembered, and now that edge case is an incident.

A thin PR description is a debt the whole team pays. Code tells you what it does. Only the description, written at the time, tells you why it was done that way and what else was tried. When that's missing, the next engineer has to redo the investigation from scratch, or worse, guesses.

And skipping the week-after check means you never actually know whether your work helped. You think it did. You moved on believing it did. That's a quiet kind of overconfidence, and it's the same trap I wrote about in ego in production: certainty that nobody ever asked you to prove.

The boring parts are where the evidence lives. Skip them and you're doing engineering by vibes.

What I hand to the agent

AI doesn't get tired. It doesn't rush because it has three other tickets open. It doesn't skip the last week of logs because it's nearly home time. It's not perfect, and I'll come back to that, but it is relentlessly thorough in exactly the places where I used to cut corners.

So I gave my agentic workflow the boring work. In practice the instructions are short and blunt, because I've learnt that clear asks get clear results.

For the logs, it's roughly: pull the logs, correlate them, show me the timeline. The agent queries the last thirty days across the services involved, finds the first occurrence of the error, lines it up against deploys and config changes, and hands me a timeline with the actual log lines and queries attached. Not a summary I have to trust, but the raw evidence behind each step.

For the broken customer, it's the same shape: pull the records from each system, line them up by time, show me where they disagree. An afternoon of copy-pasting between query windows becomes one table.

For legacy code: read it, explain what it does, tell me what breaks if I change it. The agent reads every call site of that flag, the commits that touched it and any linked tickets it can find, then writes a plain-language explanation and a list of the paths that would behave differently if the flag went away. It reads all four hundred lines. Every time. I used to read the first hundred carefully and the rest hopefully.

For the PR: write the description, include the evidence, link the dashboards. By the time the fix is ready, the agent has already been part of the investigation, so it knows what we found, what we ruled out and why. The description it drafts has the timeline, the root cause, the alternatives we rejected, how we tested it and the links to the graphs that prove it. I edit it, but I'm editing a complete draft, not staring at an empty text box at the end of a long day.

And for the follow-up: check the error rates next week, compare before and after, write the report. This is the one I'm happiest about, because it's the one I used to skip entirely. A week after the fix ships, the agent pulls the same metrics for the same window before and after, compares them and writes a short report. Sometimes the report says the fix worked. Sometimes it says the errors dropped but a related one went up. Either way, I find out, instead of assuming.

The guardrails

I'm very pro-AI, but I'm not naive about it. Agents make mistakes. They misread a timestamp, pick the wrong join key, or confidently explain code that does something slightly different from what they said. So the way I work has a few rules that never bend.

The agent gets read-only access for this kind of work. It can query logs, read databases through read-only credentials and browse the code and dashboards. It doesn't change production data, deploy anything or close tickets on its own. Investigation is reading, so the access is reading.

I verify the evidence, not just the conclusion. That's why I ask for the raw log lines and the queries, not just the timeline. If the agent says the errors started at a particular deploy, I open that deploy and the first few log lines myself. It takes minutes, because the agent has already done the hours of searching.

I spot-check the correlation. Things happening at the same time aren't always cause and effect. When the agent lines up an error spike with a deploy, I ask what else changed in that window, and I sometimes ask it to argue the opposite case. A good timeline survives that.

And the agent proposes, the human decides. It can tell me what the flag does and what breaks if I remove it. It doesn't decide whether to remove it. It can draft the PR description. I decide whether it's true before it goes out under my name.

Checking evidence is much faster than gathering it, and that's the whole trick.

The part that actually needs a human

So what do I do with the time I get back?

The part that was always the actual job: deciding what to fix, how to fix it and whether the trade-offs are worth it.

Deciding what to fix means looking at the timeline and the customer impact and choosing. Is this worth fixing properly now, or patching and scheduling? Is it even the most important problem this week? An agent can lay out the evidence, but it doesn't know that the finance team is mid-audit, or that this customer is about to renew, or that the team is stretched thin this sprint.

Deciding how to fix it means weighing options with judgement and context. A quick guard clause, or the refactor the module has needed for years? A data migration now, or a backfill later? These calls depend on people, timing and risk appetite as much as on code.

And deciding whether the trade-offs are worth it is the most human part of all. Every fix costs something: review time, deploy risk, a bit more complexity, a behaviour change someone depends on. Saying "yes, this is worth it" or "no, leave it alone" is a judgement call, and I'd rather make it with a clear head and complete evidence than after three hours of squinting at logs.

There's a broader point here too. In the middleman post I argued that the gap between a powerful tool and the people who need it doesn't close by itself. The same is true inside an engineering team. Agents produce the evidence. Someone still has to turn that evidence into the right decision for this team, this product and this week.

The result

The boring work actually gets done now. Properly. Every time.

The timelines are complete instead of probably right. The legacy code gets read end to end. The PR descriptions are good enough that future me will be grateful. And the week-after check happens, which means I actually know whether my fixes worked, rather than hoping they did.

Automate the boring parts

There's a lot of excitement about AI doing the fun parts of engineering: generating whole features, designing systems, writing the clever bit. But I think the engineers who'll really win with AI aren't the ones who automate the fun parts.

They're the ones who automate the boring parts and do the fun parts better.

Hand the agent the logs, the cross-checks, the legacy code, the PR description and the follow-up. Give it read-only access, check its evidence and keep the decisions for yourself. Then spend your own energy on the part that actually needs a human.

What's the most tedious part of your workflow that you'd hand to an AI today?

edit

Newsletter

Get new writing by email

Occasional notes on Python, Django, AWS and building software. No spam, unsubscribe anytime. Prefer a feed reader? RSS.