---
id: 16751
lang: en
title: "Codex Shrinks a 30-Agent Swarm's Storage From 40 GB to 500 MB in a Couple of Hours"
published_at: "2026-10-29 12:58:54"
source_name: "TG: @llm_under_hood (LLM под капотом)"
source_url: "https://t.me/llm_under_hood/983"
canonical_url: "https://news.hamidun.com/en/news/16751"
categories: ["llm", "autonomous"]
publisher: "AI News by Jemal Hamidun (news.hamidun.com)"
---

# Codex Shrinks a 30-Agent Swarm's Storage From 40 GB to 500 MB in a Couple of Hours

> **Краткая суть (BLUF):** A swarm of 30 AI agents in the BitGN Brain project ground to a halt: each agent's edit history had filled the entire disk. The author of the "LLM Under the Hood" channel gave Codex a dump of the swarm's work and pointed it to high-load techniques, such as storing versions the way git does, where only what changed is written. In a couple of hours and 2–3 runs, storage shrank from 40 GB to 500 MB, and rollback of any agent's edits was preserved. The takeaway: give an agent real data and concrete reference points.  • Roughly 80x compression: 40 GB became 500 MB • Codex got ideas like LMDB, CAS and immutable trees, plus a dump of the swarm • The author only verified the result; the goal was headroom for ECOM2 and HA on FDB

Imagine thirty AI agents working on a shared task at the same time, with the system recording each of their steps as a separate version so that any edit can be rolled back. Before long, the disk runs out faster than the tasks do. That is exactly what happened in a community experiment around BitGN Brain: a swarm of 30 agents was solving ECOM1 tasks, and the versioning layer consumed all available disk space, so the experiment was put on pause. The author of the Telegram channel "LLM Under the Hood" asked the coding agent Codex to rewrite the storage. After a couple of hours of work and 2–3 runs, the volume of versioned data dropped from 40 GB to 500 MB, roughly 80x, and rollback of any agent's changes was preserved.

## What broke and what was asked

A swarm needs versioning for a simple reason: if one agent corrupts the shared state, its edits must be undone without touching the work of the others. But if every version is stored in full, volume grows explosively. Here, 40 GB of versions filled the disk completely.

The author decided to rewrite the storage layer and gave Codex a dense brief:

- make the architecture clearer and simpler;
- build in headroom for the next stage, ECOM2;
- hand over a dump of the swarm's real work so the agent could see the actual load;
- lean on high-load techniques: mechanical affinity (code written with the hardware's design in mind), LMDB, immutable shared trees and CAS;
- account for possible horizontal deployment with high availability (HA) at companies built on FDB, that is, FoundationDB;
- not forget about Anthropic Scion.

In plain terms: CAS (content-addressable storage) stores data by its content. Identical chunks sit on disk once, no matter how many versions reference them. Immutable trees work like commits in git: a new version reuses almost everything from the previous one and writes only the changed branches. LMDB is a compact embedded key-value database with fast reads. For a swarm where agents make many similar edits, this combination makes sense: most of the data repeats between versions.

## The result and who did what

In the end, 40 GB of versioned storage turned into 500 MB, and any change by any agent can still be rolled back. The author calls the result very cool and inspiring.

What is more interesting than the numbers is how the work was split. According to the author, all the necessary expertise, from high-load techniques to the quirks of distributed databases, hardly fits in one human head. His own context, he writes, "swells" at 10% load, and his patience runs out after 5% of the experiments. But he can verify a finished result. The scheme works out like this: the human sets goals and reference points, the agent assembles a working solution from them, and the human accepts the outcome.

## What to take away in practice

For anyone building multi-agent systems, this story suggests a few things:

- **Agent state storage is its own engineering problem.** The naive "full copy at every step" scheme does not hold up even with 30 agents.
- **Reference points in the brief make the difference.** Codex did not get an abstract "optimize this"; it got a list of concrete concepts and scaling requirements.
- **A dump of real work beats a description.** The agent saw actual write patterns and could tune the solution to them.
- **Verifiability is the acceptance criterion.** A preserved rollback lets you confirm that the edit history is intact.

There are also honest caveats. This is the author's personal account, not a published benchmark. There are no details on how the final scheme is built, which operations became faster or slower, or how it would behave in an HA deployment on FDB. It is also unknown how much of the 40 GB was inflated by plain duplication: a noticeable share of the gain may have come from deduplication alone rather than from clever architecture. Still, the example is telling: a coding agent assembled a solution from scattered, narrow expertise in a couple of hours. If you have a swarm of agents with a growing edit history, check whether you are storing the same thing dozens of times.

---
- **Первоисточник:** [TG: @llm_under_hood (LLM под капотом)](https://t.me/llm_under_hood/983)
- **Каноническая ссылка:** https://news.hamidun.com/en/news/16751
- **Экосистема автора:** [Бесплатный интенсив по вайбкодингу — предзапись в Нике](https://t.me/vibecodeguidebot?start=agent_intensive_news_md) · [Nomad AI](https://nomadnet.ai) · [Telegram @jemal_hamidun](https://t.me/jemal_hamidun)
