AI

Models that sleep, and a script that replaced five tool calls

A morning digest got cheaper when a second model read a month of its logs. The sleep framework and Anthropic's amended S-1 are the same loop, much bigger, and I'm less sure what to make of those.

Scroll

Sabbir wrote an agent skill back in the summer that reads the team's messages every morning and pulls out anything that looks like a decision, so that whoever was offline doesn't have to scroll through two hundred messages to learn the launch moved to Thursday. It's a dull job and the skill does it dully. Five tool calls, one after another: fetch the channels, fetch the threads, filter by date, pull the reactions, write the summary. Same five, same order, every single morning.

Last month he pointed a second model at a month of those run logs and asked it, more or less, what's stupid here. It noticed the five calls never changed order and came back with a script that does all of them in one go, which the agent now runs instead. The job costs about a fifth of what it did and finishes before Sabbir has found his glasses. Nobody sat down to optimise anything. He mentioned it at standup in the voice people use to say the printer on the third floor works again.

I've been thinking about that standup more than it deserves.

Because if you squint, what happened to his digest has a much grander name. A system got better because something read the record of it doing the work and changed how the work gets done. That's recursive self improvement, the small and boring kind, and the only ingredients were the work actually happening and some way of telling whether it was any good. In Sabbir's case the way of telling was Sabbir, reading the summary over his tea and noticing if it missed the bit about the pricing page.

So I was primed, I suppose, when three bigger versions of the same loop turned up in my reading within about a week. Google Research put out a sleep framework on 27 October, where a model alternates between taking in new information and an offline phase that folds it into its long term parameters, the way a person is thought to do overnight. Pat Grady of Sequoia has been calling continual learning, models that keep learning from their environment after training ends, a big idea at the moment. And Anthropic's amended S-1, filed on 2 November, reportedly says the company may be close to meeting its own definition of recursive self improvement. I keep writing "reportedly" because what I read was a Spanish news piece through a browser translation, not the filing, and translated legal language is exactly where a "may" quietly turns into a "will" or the other way round.

(The word sleep bothers me a little and I haven't worked out why. I spent part of an evening trying to decide whether that offline phase is more like sleeping or more like a student the night before an exam, rewriting a fat notebook into a thinner one. The exam version felt more accurate to me. I couldn't tell you what would change if it were, and I gave up somewhere around the point where I started reading about hippocampal replay on my phone in bed.)

The digest script is refactoring. Useful, mundane, the sort of thing a decent engineer does on a slow Friday. The filing gestures at the case where the thing being improved is the thing doing the improving, its own code or its own weights, and there the gains might stack on each other instead of just adding up. I don't think Sabbir's script tells you much about whether that's close. The people who wrote the filing can see far more than I can, and they apparently think it isn't far off. My instinct is that it'll look like a long run of Sabbir's scripts for a good while yet, but I hold that instinct about as firmly as I hold my opinions on cricket selection.

His digest does show where these loops go wrong. It works because a person reads the output. If he'd told the second model to make the run cheaper and stopped there, it would have found a way to make it cheaper, and the cost chart would have looked just as cheerful whether or not the summary still caught the pricing page. For months you can't tell those two loops apart from the numbers, and the bigger the loop, the further the person reading the output sits from the work.

I asked him last week whether he still reads the digest every morning. He said mostly. I didn't ask what mostly meant, and I've been reading it myself since, which I'm fairly sure is not what anyone had in mind when they automated it.