Free · Daily brief + weekly playbookDaily 60-sec AI Voice Brief + Weekly Production AI Agent PlaybookGet the brief →

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

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.

AI-processed from TG: @llm_under_hood (LLM под капотом); edited by Hamidun News
Codex Shrinks a 30-Agent Swarm's Storage From 40 GB to 500 MB in a Couple of Hours
Source: TG: @llm_under_hood (LLM под капотом). Collage: Hamidun News.
Listen to article
Article Fact Sheet & Key Figures
ParameterDetails
Primary sourceTG: @llm_under_hood (LLM под капотом) ↗
Editor-in-Chief
Roughly 80x compression40 GB became 500 MB
Key metric #2Codex got ideas like LMDB, CAS and immutable trees, plus a dump of the swarm
Key metric #3The 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.

Story

Key Questions Answered

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.

What are the key details on 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.

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.

ZK
Zhemal Khamidun — Head of AI at Alpina Digital · MIPT (academic supervisor of the Tech Entrepreneurship department). Building AI products since 2019. Hamidun News is a pet project that grew into a production aggregator with 6,000+ readers.
✦ Free · Waitlist · Hermes + DeepSeek

Free 2-Day Vibecoding & AI Agents Intensive

Day 1: the autonomous Hermes + DeepSeek AI agent — vibecoding and development on par with Claude Code / Codex / Gemini. Led by Jemal Hamidun, Head of AI at Alpina Digital and academic supervisor at MIPT. Right after you register with our bot Nika: the recording + 11 materials from the previous intensive.

Join the waitlist →Nomad AI Workspace
Jemal Hamidun

Editor-in-chief · Cite this analysis

Jemal Hamidun

Head of AI at Alpina Digital · Academic Supervisor of the Tech Entrepreneurship Department at MIPT

Head of AI & CPO of AlpinaGPT at Alpina Digital, Academic Lead of Tech Entrepreneurship at MIPT. Founder of Hamidun News and Vibe Academy.

Ready-to-paste citation for journalists, blogs and Telegram channels

Source: Hamidun News — Codex Shrinks a 30-Agent Swarm's Storage From 40 GB to 500 MB in a Couple of Hours https://news.hamidun.com/en/news/16751/codex-shrinks-a-30-agent-swarm-s-storage-from-40-gb-to-500-m

What do you think?
Loading comments…