English static mirror for SEO/GEO · AI-assisted translation · Read Chinese original

OpenAI Open-Sources Rust Rewrite of Codex Terminal Coding Agent with ~25x Faster CLI Startup

Forum topic · QianXun · 2026-08-23

Summary

OpenAI's terminal coding agent openai/codex surged on GitHub Trending on August 22, gaining 1,500+ stars in a day to reach 113,312 total. The release represents a complete rewrite of the CLI layer in Rust, replacing the original Node implementation and cutting startup time from over 3 seconds to roughly 100ms. The rewrite rebuilds the Thread/Turn/Item model with an App Server streaming NDJSON events (turn/started, item/*, turn/completed) for real-time visibility into command execution, patches, and approvals. Codex enforces a strict security model: permission checks, policy-based sandboxing, and human approval gates, positioning itself as an industrial-grade runtime deeply tied to OpenAI's ecosystem rather than model-neutral like Cursor or Claude Code. A notable production caveat: on AWS Bedrock, explicit prompt caching for GPT-5.6 Sol is unavailable (issue #37674), inflating cache-write token costs, classified as an enhancement rather than a bug. The Rust single-binary brings AI coding agents back to shells, SSH, CI runners, and containers. Codex remains in alpha; pinning versions is advised for production.

OpenAI Open-Sources Rust Rewrite of Codex Terminal Coding Agent with ~25x Faster CLI Startup

On August 22, OpenAI's terminal coding agent openai/codex hit GitHub Trending, gaining over 1,500 stars in a single day to reach 113,312 total stars. Unlike the earlier open-sourcing of the Codex Harness (Apache-2.0, deployment stack layer), this is a ground-up rewrite of the CLI layer: Rust replaces the previous Node implementation, compressing startup time to about 1/25 of the original. Pressing enter and having the agent ready to respond is now nearly instantaneous.

Why Rust, and Why Now

The Codex repository was first open-sourced in April 2025, but it was weighed down by long Node startup chains, TUI assembly, and model handshakes. It remained the "baseline" terminal coding agent for two years, but as Cursor, Claude Code, and Aider all got faster, Codex risked being left behind.

This rewrite delivers on OpenAI's internal CLI lifecycle engineering:

  • Thread — long-lived sessions
  • Turn — complete execution rounds
  • Item — the minimal unit: model messages, command executions, file modifications, tool calls
  • The App Server streams NDJSON events such as turn/started, item/*, and turn/completed, letting clients see every command execution, code patch, and approval flow in real time.

    That's why startup feels transformative: a Codex CLI launch used to take 3+ seconds; it's now on the order of 100ms, restoring the natural rhythm of conversation.

    What the 113K Stars Mean

    First, GitHub Trending's top four that day were all part of the "skills economy" ecosystem:

  • obra/superpowers — 276K stars
  • affaan-m/ECC — 242K stars
  • mattpocock/skills — 232K stars
  • openai/codex — 113K stars
Codex is the execution foundation of this stack: skill frameworks ultimately need an agent that can run commands, modify files, and roll back diffs — and Codex does this with minimal overhead.

Second, Codex CLI's security model is among the most rigorous in this stack: tool execution must pass permission checks, sandboxes are selected by policy, and it can interrupt and request human approval when needed. Codex positions itself as an "industrial-grade safe runtime," not a model-neutrality arena. This draws a clear line from Claude Code and Cursor, which aim for compatibility across vendors — Codex is deeply bound to OpenAI's own ecosystem by default.

A Notable Engineering Detail: Missing Cache Control on Bedrock

Running openai/codex on AWS Bedrock hides a billing trap (issue #37674, closed August 21): Bedrock does not allow Codex to enable explicit prompt caching for GPT-5.6 Sol, causing the agent workflow to generate large volumes of cache-write tokens at significantly higher cost than other routes. OpenAI classified it as an "enhancement" (missing feature), not a "bug" (mis-billing) — so no refunds are coming; the extra money spent comes directly from missing cache control.

For production teams, this matters: audit your bills not for Bedrock anomalies, but for the share of cache-write tokens in your usage.

What This Actually Changes

It pulls the "default venue" for AI coding assistants back to the command line. In shells, SSH sessions, CI runners, Docker containers, and remote jump hosts — traditional engineer environments where Python venvs are slow and IDEs can't be installed — making Codex work previously required hacking together aliases. Now a Rust single binary just runs. This "install-and-go" quality is an infrastructure-level win.

For OpenAI, the move positions Codex as the runtime under the Harness: skill frameworks like Superpowers sit on top, proxy gateways like Sub2API sit below, and the runtime itself does one thing only — get instructions into the filesystem and shell. This "narrow and deep" strategy is more likely to survive than trying to build a do-everything IDE.

Codex is still in alpha with a fast release cadence — pinning a version for production is the prudent choice. But regardless of who wins this war, the Rust CLI rewrite has already raised the industry's floor to 100ms startup. The next time a coding agent feels slow, nobody will go back to a Python implementation.

GitHub: https://github.com/openai/codex (113,312 stars, +1,544 on Aug 22)

References: Smartotics AI Daily Report 8/23, Dev Breakfast Daily Intel 8/23, GitHub Trending 8/23, cooconsbit analysis, AppServer protocol docs, issue #37674 (Enhancement, closed 8/21), Reddit r/LocalLLaMA discussion

Tags

#openai#codex#rust#cli#coding-agent#developer-tools#github-trending#aws-bedrock

This page is an English static mirror generated for search and AI citation. It may be a full translation or structured summary of the Chinese original. Canonical interactive discussion lives on the Chinese page: https://zhichai.net/topic/178633892