Free · Daily brief + weekly playbookDaily 60-sec AI Voice Brief + Weekly Production AI Agent PlaybookGet the brief →
ReleaseAPI / Product · ActionableX: @Cuiszt_Cui→ original

Codex now pulls 80% less data from the API: a 7.48 MB thread shrinks to 930 KB

Codex, OpenAI's coding agent, constantly receives data from the Responses API, the interface it uses to talk to models. OpenAI engineer Charlie Marsh reported that after compression, his own threads now carry about 80% less of this data: one thread dropped from 7.48 MB to 930 KB. This is a bandwidth saving, not a speed gain: Codex did not become 80% faster. Anyone building agents should measure the volume of network responses in long sessions and turn compression on.

AI-processed from X: @Cuiszt_Cui; edited by Hamidun News
Codex now pulls 80% less data from the API: a 7.48 MB thread shrinks to 930 KB
Source: X: @Cuiszt_Cui. Collage: Hamidun News.
Listen to article
Article Fact Sheet & Key Figures
ParameterDetails
Primary sourceX: @Cuiszt_Cui ↗
Editor-in-Chief
Marsh's thread7.48 MB before compression, 930 KB after, roughly 8 times smaller
Key metric #2The 80% figure is an estimate from his own threads, not an independent benchmark
Key metric #3The traffic gain does not mean Codex's overall working speed rose by 80%

When people talk about the efficiency of AI agents, they usually think of tokens and response latency. But long working sessions have another cost: how many bytes travel between the client and the server. Codex, OpenAI's programming agent, constantly receives data from the Responses API, the interface it uses to reach its models. OpenAI engineer Charlie Marsh said that in his own threads (that is, working sessions), Codex now receives roughly 80% less data from it. One example: a thread that took up 7.48 megabytes now weighs 930 kilobytes after compression.

What actually changed

The problem is familiar to anyone who has built an app with long message histories or logs. An agent session keeps growing: messages pile up, tool call results, pieces of code, and command output. If all of that is sent in full each time, response volume balloons quickly.

Imagine a messenger that re-downloads the entire chat history, attachments included, every time you open a conversation. Now imagine the same history arriving packed. The conversation and its meaning are unchanged, but the channel carries many times less. That is roughly how to understand this optimization: less data is transferred, and the agent's output stays the same.

The numbers deserve a separate note. The example of 7.48 MB and 930 KB is a reduction of about eightfold, or roughly 88%. The stated "about 80%" is an estimate across Marsh's threads overall. It is reasonable to read it as an order of magnitude, not as a guarantee for any project.

What not to expect

The author himself qualifies the claim: it is mainly about bandwidth savings, not about Codex working 80% faster. These are different metrics. An agent's working time is made up of model speed, command execution, waiting on tools, and the network. Compression only helps with the last part. On fast office internet the difference is almost unnoticeable, while on a weak connection, over a VPN, or in a remote development environment it may be significant.

The second limitation is the source. These are measurements by one engineer on his own threads, not a published benchmark across different projects. His threads may be unusually long or full of data that compresses well. Results in other scenarios can differ. The original message does not say how the compression works or in which Codex versions it is available.

What developers should take away

If you are building your own agent on top of the API, this story is a useful reminder of a dull but real cost item. A few practical steps:

  • Measure not only tokens and response time, but also the actual size of network responses in a typical session. Megabytes per thread are a reason to take a closer look.
  • Check whether HTTP-level compression is enabled on both the client and server side. Text data such as JSON and logs usually compresses very well.
  • If the agent runs in a cloud sandbox or your users have weak connections, smaller traffic can translate into shorter waits and lower outbound data bills.
  • Do not conflate channel optimization with model acceleration. Claiming "5 times faster" where only the data volume shrank is dishonest toward users.

Overall, this is a small but telling engineering detail. When agents run for hours and accumulate context, the size of the data they transfer becomes part of product quality. For now we have the word of one engineer and one concrete example, but the direction is clear: the infrastructure around models is being optimized as carefully as the models themselves.

Story

Key Questions Answered

What actually changed?

The problem is familiar to anyone who has built an app with long message histories or logs. An agent session keeps growing: messages pile up, tool call results, pieces of code, and command output. If all of that is sent in full each time, response volume balloons quickly. Imagine a messenger that re-downloads the entire chat history, attachments included, every time you open a conversation. Now imagine the same history arriving packed.

What not to expect?

The author himself qualifies the claim: it is mainly about bandwidth savings, not about Codex working 80% faster. These are different metrics. An agent's working time is made up of model speed, command execution, waiting on tools, and the network. Compression only helps with the last part. On fast office internet the difference is almost unnoticeable, while on a weak connection, over a VPN, or in a remote development environment it may be significant. The second limitation is the source.

What developers should take away?

If you are building your own agent on top of the API, this story is a useful reminder of a dull but real cost item. A few practical steps: Measure not only tokens and response time, but also the actual size of network responses in a typical session. Megabytes per thread are a reason to take a closer look. Check whether HTTP-level compression is enabled on both the client and server side. Text data such as JSON and logs usually compresses very well.

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 now pulls 80% less data from the API: a 7.48 MB thread shrinks to 930 KB https://news.hamidun.com/en/news/18613/codex-now-pulls-80-less-data-from-the-api-a-7-48-mb-thread-s

What do you think?
Loading comments…