Who killed the machine? A noir tale of AI agents, a wrong suspect, and 198 pull requests

Who killed the machine? A noir tale of AI agents, a wrong suspect, and 198 pull requests

It was October 23 when the machine went down.

One of the agents had asked for something small. One dev dependency. One npm i. The kind of job you don’t think twice about.

Halfway through, the computer died.

When the screen came back, it was a crime scene. Twenty-six packages, gone from where they belonged. Stuffed into temp folders nobody would ever check. ESLint lay in the corner, muttering ERR_MODULE_NOT_FOUND to anyone who’d listen.

Algirdas Medeikis, a developer on Hostinger’s Innovations team, had seen trouble before. But not like this.

He didn’t know it yet, but this was only the first body. Over the next few weeks, his five Claude Code agents would start dropping mid-job, sometimes several in a single morning, taken out by the system’s memory enforcer without a word of warning.

It didn’t add up. Colleagues on Macs ran 10 agents and slept fine. Five should have been easy.

Every case needs a suspect. Algirdas had his. Too many agents. Not enough room. In a town this small, somebody always gets squeezed out.

Case closed.

Except it wasn’t.

A job too big for one pair of hands

To understand the crime, you have to understand the job.

This one started in Hostinger Dashboard, the control panel where Hostinger’s customers run their websites. Back then, it was called hPanel. A building built by hand, piece by piece.

Time passed, and the hPanel got old.

The building still stood. The foundations were fine. But the fittings were another story. Every form, every table, every pop-up window had been made by hand, with names stamped on them: HForm. HTable. HModal.

Then the building got a new supplier. hComponents: one set of standard parts, made to fit every floor across Hostinger.

But the old fittings were still on the walls. Both stayed in use, side by side. Two of everything. Two looks. Two sets of bugs. Twice the upkeep.

The order came down. Every old fitting had to go.

Engineers call it a migration. Slow work. Repetitive. One door, one window, one switch at a time. The kind of job nobody volunteers for.

Algirdas had a plan. He’d gather a squad.

The squad wouldn’t be people.

The agents start disappearing

The squad was made of AI agents. Claude Code, five of them.

The plan was simple. Algirdas cut the job into more than 80 pieces. Each piece became a ticket, and each ticket went to an agent. The agent would read the code, swap the old parts for new ones, and hand in its work as a pull request: a proposed change that a reviewer, human or machine, checks before it goes live.

The squad had been on the job since late August. Everything seemed fine.

Algirdas had been at Hostinger since 2021. Long enough to learn one rule: you can never fully trust an agent. He wasn’t the only one in town who double-checked an agent’s work. Every good detective did.

So every agent worked alone, in its own copy of the project, called a worktree. No sharing. No stepping on each other’s toes.

And no agent turned in a job without proof.

First, the tests. Did anything break?

Then the typecheck. Did every piece still fit?

Then the browser. A headless Chrome, invisible, opening hPanel to see the change with its own eyes.

Three checks. Every job. Every time.

It worked. For a while.

Then the agents started disappearing.

You already know how it started. October 23. The machine down, the packages scattered.

After that, an agent would be halfway through a job, and then it was gone. No warning. No goodbye. The laptop had an enforcer on duty, a system that monitors memory and shuts down programs when it runs low. When things got tight, the enforcer didn’t negotiate. It took out whole agents, mid-job.

Some mornings, it took out several.

“I was frustrated,” Algirdas said. He had to repair the broken pieces himself.

The crowd takes the blame

What the crime scene didn’t show was the cleanup.

Every time the enforcer took an agent out, Algirdas checked where it had fallen. Then he wrote it a note by hand:

You were cut off. Here’s where you are. Don’t redo finished work.

Note after note. Agent after agent. Every restarted job waited longer for review, and dozens more sat in line.

Algirdas had a theory of what had gone wrong. Too many agents. Not enough room.

So he started keeping tabs on them. Literally. Every agent got a gauge on its tab, so he could watch the memory climb. Idle agents got put to sleep. Every extra he could find got cut. Each fix bought him a little room.

In early November, he set up a safehouse: a remote machine built for the heavy work. On November 6, he left an order to send that work there.

None of them stopped the killings.

He needed a new suspect.

The usual suspect and an unusual partner

Weeks of chasing the crowd, and the theory wasn’t holding up.

One fact kept nagging at him. Those colleagues on Macs, running ten agents without breaking a sweat. Or so it seemed. He could only run five. “Same agents, same repo,” he said. “So the problem had to be my setup, not ‘AI’.”

His eyes landed on Chrome.

It made sense. Every agent carried one on every job: an invisible browser that opened hPanel to check the work. Five agents meant five browsers, all running at once, and everyone in this town knows Chrome eats memory.

But Algirdas knew a hunch isn’t proof.

He’d been staring at this case for too long.

So he did what any good detective does when the case gets too big. He called up his partner.

Someone who wasn’t too close to the case. A cold mind. Calculating. Precise. Counted everything, trusted nothing.

A fresh AI agent. No memory of the case, no stake in his theory.

Algirdas handed it the file and his theory: it’s Chrome. Go prove it.

The partner went through the records first. Over three days, the agents had run 420 tests and 213 typechecks.

Then it ran each check individually and measured how much memory each used.

The numbers came back.

Chrome wasn’t the one.

What was really eating the memory

November 15. The partner came back with results Algirdas never expected.

Chrome had an alibi. Under 1 GB. Not enough to kill anything.

The real numbers were somewhere else:

  • The typecheck: about 10 GB.
  • The tests: up to 15 GB.

A single test run used more memory than 15 Chrome instances combined, and the whole laptop had only 32 GB of RAM.

The killer had been in the squad all along. Worse, Algirdas had built it himself.

Three checks. Every job. Every time.

The careful routine he had built was eating the machine alive. One agent checking its work was fine. Two at the same moment, and the enforcer stepped in. Somebody went down.

The tests were the worst of it. The test runner starts one worker for every processor thread, minus one. Algirdas’s laptop had 20 threads. Every test run sent in 19 workers.

That was the difference with the Macs: half the threads, half the workers. And when memory ran low, a Mac just slowed down. His laptop gave a struggling session 20 seconds, then pulled the trigger.

And there was one more twist. The fix had been on file for over a week: send the heavy work to the safehouse. The agents never followed it. They never even saw it. The order sat in a drawer they never opened.

That afternoon, Algirdas thought he’d closed the case. He cut the test workers, shipped the heavy runs to the safehouse, and wrote the rule into his global agent instructions, which every session reads when it starts.

But the safehouse had an enforcer of its own. The next day, it struck there 15 times, so Algirdas doubled the safehouse’s memory from 16 GB to 32 GB.

There was one loose end. On November 17, the enforcer struck the laptop once more. This time, the accomplice was 11 GB of old agent files, left lying around in memory. Algirdas moved them out for good.

By then, the migration was already done, crashes and all. About 85 jobs, finished by November 15.

And with the killings finally over, the squad picked up speed. In the three days after the fix, it submitted 198 more pull requests, from design touch-ups to small bug fixes. Every one of them got approved.

Before the fix, Algirdas had been merging 90 to 130 pull requests a week across all his projects. The week after, 288.

Case closed: What changed?

As for the killer, it was his own routine. His agents followed it to the letter. They just never noticed the room filling up.

“A human runs one typecheck and waits,” Algirdas says. “Five agents run five.”

So he changed how he works. His agents still run their checks, but the heavy ones go to the safehouse. The rules live where every agent reads them, not in a chat that’s forgotten by morning. No more notes by hand.

He treats his setup “as infrastructure to maintain, not a chat window.”

Two wrong suspects taught him that. Now, when something breaks, he gets the data first. “Measure before blaming,” he says.

He still doesn’t fully trust an agent.

But in the end, it took one to crack the case.

Enjoy cracking cases like this one? Hostinger is hiring engineers who work alongside AI agents every day.

Sebastian has been telling stories since he was a kid. He spent four years scriptwriting animated videos at an award-winning motion studio for U.S. and Canadian audiences. He then helped over 500 human trafficking survivors tell their stories for T visa applications. Those stories changed lives, and today he keeps writing with the same passion: to move and inspire people. Follow him on LinkedIn