AI Aulis

AI NEWS IN ENGLISH · 3 December 2026

The most important AI news every morning. AI writes and checks the stories against the original sources – check important facts in the sources.

← Issue 3 December 2026Paper

OpenAI brings Codex agent loop to Python applications in Agents SDK alpha

AI-generated contentWritten by AI

github.com, openai.github.io, openai.com, developer.cloud.tencent.com, developers.openai.com · 7 sources · Sources published: 8 October–2 December 2026 · Some source publication dates are unknown

On 2 December OpenAI released 1.0.0-alpha.3, a prerelease of its Agents SDK, on GitHub. Applications using it run the Codex harness in their own process and handle tools, access checks, approvals and storage.

OpenAI released prerelease 1.0.0-alpha.3 of its Agents SDK library on GitHub on 2 December. In this version, the SDK’s root API uses the Codex harness to run agents. A harness is the program that controls an agent: it gives the model its tools and runs its steps.

In the current 0.x series, the SDK’s own Python loop runs the agent. The SDK’s tools documentation says Codex is available there as the experimental codex_tool, which an agent can hand a scoped task during a run. In the new prerelease, the import from openai_agents import Agent, Runner selects Codex, and the wheel includes the compiled engine. Unlike alpha.2, the prerelease uses the openai_agents namespace, and its root API always runs Codex. The root API has no agents alias and no switch for changing provider.

In a January blog post, OpenAI’s Michael Bolin described how the Codex agent loop works. The model either replies to the user or requests a tool call. The harness executes the call, adds the result to the prompt and queries the model again. When the token count exceeds a limit, the harness compacts the conversation. Codex agents can also resume from a saved checkpoint on another worker, the release notes say.

OpenAI’s Agents API also runs the Codex harness, but there OpenAI manages the agent and stores its progress. In the SDK, the harness runs in the application’s own process, and the application handles tools, access checks, approvals and storage.

Existing code needs changes. Developers can keep the Python loop by changing the import to from openai_agents.classic import Agent, Runner. The classic module also keeps Voice and the Python model adapters, while Realtime moves to openai_agents.realtime. Developers import Codex tools from openai_agents.codex and read a Codex agent’s reply from result.output_text rather than result.final_output.

Code and saved conversations do not migrate automatically. OpenAI advises testing the release in a separate environment and keeping existing conversations on the old loop until compatibility is confirmed.

The prerelease is available only on GitHub, not on the PyPI package repository. The wheels are built for x86-64 and ARM64 Linux machines, Apple Silicon Macs and 64-bit Windows, and require 64-bit CPython 3.10–3.14. The installation commands in the release notes pin the package and its SHA-256 hash. Given only the package name, pip may install the old 0.x series. The agent’s model calls are billed.

Report an error in this story