AI

Two lines I keep adding to API specs

A note to myself about retries and who gets woken up, written because agent traffic on OpenRouter passed human traffic in early February and hasn't looked back.

Scroll

Note to self, for the next time I'm writing requirements for anything with an API and I reach the bottom of the page feeling done.

You're not done. Add the two lines. What does the system do when a client sends the same request a thousand times, and who finds out when it does? Don't let anyone move them to "phase two" either, because phase two is where requirements go to be forgotten with dignity.

You started adding them in the spring and you keep forgetting why, which is the only reason this note exists.

Menlo Ventures' 2026 enterprise report says agent traffic on OpenRouter overtook human traffic in early February, just after Opus 4.6 and GPT-5.3-Codex came out. Up to then, most of the text going through these models had a person on the other end, someone who had typed a prompt and was sitting there waiting for an answer. After it, most of it had software on the other end, writing its own prompts and waiting for nobody.

And it hasn't been close since. Menlo has agent usage up 37 times since February and human usage up 5 times. Five times in nine months would have been the whole story in any other year (imagine telling someone in 2023 that people would use this stuff five times more by November and getting a shrug), but agents grew about seven times faster than that, and they now make up 80 percent of all tokens on OpenRouter, roughly seven times what humans drive.

Before you go quoting that at people, remember Menlo itself says OpenRouter's users lean toward individual developers and startups. It's the developer end of the market. The garments exporter in Tejgaon that still emails purchase orders as scanned PDFs is not living inside this chart, and won't be for a while.

The February date is also softer than it reads. A crossover is two lines meeting on a chart, and the real crossing was probably a few weeks of smear, depending on how you count a token that an agent sends on a person's behalf. Farhan put this better than the report does. I showed him the number over lunch and he said, without looking up from his biryani, "If I ask the coding assistant to fix one bug and it makes forty calls, is that me forty times or is that the robot?" I'd guess Menlo files a call as an agent's if it comes out of an automated loop, since that's the only thing you can reliably see from the traffic side, and that's a reasonable rule. It also means the line gets blurrier the more of us work the way Farhan does, which is mostly by typing one sentence and going to get tea.

Every time I read "agents" in a newsletter I still picture the bKash agent at the shop near my place, a man with two phones, a ruled notebook and a plastic chair he never sits on. He's been there since before anyone I know had a smartphone. If you asked him the same thing a thousand times he would tell you to come back tomorrow, and he would be right.

The software kind won't come back tomorrow. It'll come back in two hundred milliseconds. Last quarter I spent a good twenty minutes on the wording of an error message, something gentle about trying again in a moment, and a program reads that and does exactly what it says, immediately, for as long as nobody stops it. It isn't bothered by a terse message and it doesn't get tired at 3am on a Friday. So the rate limit, and the cost cell in the pricing sheet with the yellow fill that finance keeps asking about, are now being tested by a customer who never goes to bed. The support tickets I'd expect to see more of all have the same plot, a loop that kept going because nothing told it to stop.

That covers the first line. The second one I'm still bad at. Last time I wrote "the on call engineer" in that box, and Farhan asked which one, since the rota spreadsheet hadn't been touched since Ramadan, and I left it in anyway.