← Writing

Superintelligence is a storage problem

Where an agent should keep what it knows

Most of the money and talent in AI is going into making models smarter, which makes sense. Much less is going into where an agent keeps what it knows between one model call and the next. I think that second part decides more than it looks like, so this is an attempt to explain why, with some math.

What an agent has to keep

A model on its own remembers nothing between calls. Everything that makes an agent useful over weeks lives outside it. The conversation so far, the facts it has learned about the people it works for, the files on the computer it works on, and the run itself, meaning which steps are done and which are waiting on a person or a timer. On top of that sits a record of every model call, which you need later to explain why the agent did what it did.

I believe in the Bitter Lesson, so I assume the model under all of this gets replaced by a better one every few months. That only works if the state survives the swap. It also has to survive a crash halfway through a step, it has to cost very little while the agent sits idle, which is most of the time, and someone has to be able to delete it properly.

Why not a normal database

The obvious question is why not use Postgres. Most teams do at first, and then the state spreads over several systems, because each piece has a specialist. Records go in Postgres, memory goes in a vector database, the run goes in a workflow engine so a crash doesn't lose it, the computer is a sandbox from another vendor and the model calls go to a logging service.

These systems can't commit together. One step of an agent might send an email, write what it learned to memory and set a timer to follow up. If the process dies in the middle, the workflow engine can record the email as sent while memory never hears about it. So teams write code to reconcile the pieces, and that code tends to get rewritten whenever the models change what an agent can do.

Even with everything in one Postgres, two things don't fit. Databases were built for a person waiting on a screen, so they are tuned to answer in milliseconds, and they run on servers that cost the same whether anyone is using them or not. An agent mostly waits on a model, and most agents are idle most of the time.

The math on object storage

Start with latency. A durable write to object storage takes tens of milliseconds, typically somewhere between 50 and 100 in the same region. A step of an agent waits on a model for anything from a few hundred milliseconds to a few minutes. If a typical step takes five seconds of model time and the commit takes 75 milliseconds, storage adds 1.5 percent to the step.

Cost goes the other way. A gigabyte in S3 Standard costs about 2.3 cents a month at list price, and S3 already keeps it across at least three availability zones. The same gigabyte on SSD volumes, copied three times the way many databases keep it, costs about 24 cents. Held in server memory it is closer to five dollars. For a billion agents with a gigabyte each, that is roughly 20 million dollars a month in a bucket, against hundreds of millions on disks and billions in memory. And an agent that isn't running costs only its bytes, because no server has to stay up for it.

The old objection to object storage was coordination. Two processes could both believe they own a database and overwrite each other's work. Since 2024 S3 can refuse a write if the object already exists or has changed since you read it, which is a compare and swap. That is enough to give each database a single writer and fence off a stale one, without running a separate consensus service next to the bucket.

One engine

People have been rebuilding pieces of the stack on object storage for a few years. Neon did it for Postgres, turbopuffer for search and WarpStream for Kafka. SlateDB is an open source storage engine that writes its log and its sorted files straight to a bucket, so a write is durable once its log object lands, with no local disk in the way.

What I think comes next is putting all of an agent's state on one engine like that, in one bucket. The run, the memory and its search index, the filesystem of the agent's computer and the record of model calls each become a service written on the same storage. A step of the agent then commits as one batch. The tool's result, the memory it wrote, the position it has read up to and the timer it set either all land or none do. The history is one log that is only ever appended to, and the context a model sees on each call is a view over that log.

A few consequences follow. The files of a database on object storage never change once written, so a fork is a checkpoint plus a clone that shares every file it hasn't touched, and forking an agent with its computer and its unfinished run takes well under a second. That makes it cheap to try a task several ways and keep the one that worked. Every step is recorded, so a new model can replay last month's work and you can compare the results before trusting it. Deleting someone's data means deleting it in one place instead of chasing it through five systems. And because the bucket is the only thing holding state, the whole stack can run in a company's own cloud account, next to its data.

What it costs

None of this is free. Every commit pays a round trip to the bucket, so a workload that needs microseconds belongs somewhere else. Object storage doesn't notify anyone of changes, so other processes have to poll, and the poll interval sets how fresh they can be. There are no transactions across two databases, so anything that has to change together has to live in the same one. Deleted bytes only disappear when compaction gets to them, so until then a delete has to be enforced on every read. And if the bucket goes down, everything goes down, which you handle by replicating the bucket.

Agents spend most of their time waiting on a model, so these costs matter less to them than they would to most software. My guess is that most agent infrastructure ends up looking roughly like this.

So, in short, this is where I think it goes.

  1. Every agent keeps every step it has ever taken, and a gigabyte of that costs less than thirty cents a year to keep.
  2. Agents fork themselves to try a hard problem many ways at once, and keep the branch that worked.
  3. Every new model starts where the last one stopped, and is checked against years of recorded work before it touches anything real.
  4. Every person and every company on Earth has agents like this, most of them asleep in a bucket at any given moment and awake within a second when something needs them.

An agent that runs for thirty years will think with more than a hundred different models along the way and remember every step it took with each of them. That is most of what I mean when I say superintelligence is a storage problem.

About Oscar Antonio Borlund Orellana

Oscar Antonio Borlund Orellana

I’m engaged to Laura, whom I met at university, and I’m the father of Elias, our wonderful son. We live in an old, renovated apartment in Copenhagen.

Laura is my foundation. She makes it possible for me to set out on journeys as crazy as building companies, and she is the reason I’m not afraid to fail, get back up and try again.

I come from a family of builders. Since I was little, I’ve watched my dad build Origo, and I learned early that the things you wish existed are yours to make. I want to leave the world a little better than I found it.

Work

Work

  • Jun 2026 – NowFounder
  • Jan 2026 – Jun 2026Engineering Manager
  • Oct 2024 – Dec 2025Product
  • Sep 2023 – Sep 2024Senior Software Engineer
  • Jan 2021 – Aug 2023Founder & CEO
  • Sep 2018 – Jan 2023BSc and MSc Computer Science

Stealth, Founder, Jun 2026 – Now

FounderJun 2026 – NowStealth
  • Founder
  • Research
  • Infrastructure

Every so often a problem grabs you and won’t let go. This one is big enough to scare me and still unsolved, so I left Legora to build it. We are in stealth, backed by some of the best people in the world.

Legora, Engineering Manager, Jan 2026 – Jun 2026

Engineering ManagerJan 2026 – Jun 2026
  • Infrastructure
  • Platform
  • Leadership

I led and built the Infra and Foundations teams at Legora: backend, compute and platform, the foundation the company scales on.

Beyond Work, Product, Oct 2024 – Dec 2025

ProductOct 2024 – Dec 2025
  • Product
  • Generative AI
  • Backend

I led product from zero and built the infrastructure and backend behind it, deploying generative AI against the hardest problems in the enterprise.

Corti, Senior Software Engineer, Sep 2023 – Sep 2024

Senior Software EngineerSep 2023 – Sep 2024
  • Kubernetes
  • Go
  • Azure
  • Linkerd

I architected and implemented Corti’s multi-tenant Kubernetes platform on Azure, with Go services for automation and a custom Linkerd proxy layer that distributes traffic between tenants.

Rig.dev, Founder & CEO, Jan 2021 – Aug 2023

Founder & CEOJan 2021 – Aug 2023
  • Founder
  • Open source
  • Go
  • Kubernetes

I wrote the first lines of Rig.dev in my dorm room at 23. We raised €2.2M in venture funding, and I led the team that built the open-source application platform for Kubernetes in Go: SDKs, a web console, CLI tools and authentication modules.

Aarhus University, BSc and MSc Computer Science, Sep 2018 – Jan 2023

BSc and MSc Computer ScienceSep 2018 – Jan 2023Aarhus University
  • Cryptography
  • Algorithms
  • Machine learning
  • Distributed systems

A bachelor’s in machine learning, distributed systems and cryptography, then a master’s in cryptography, algorithms and machine learning, with the Grundfos Award for Best Startup along the way. I paused the master’s to build Rig.dev.