Codex harness
A system from OpenAI for running and managing AI models, especially for coding tasks.
Codex harness refers to the underlying system OpenAI uses to run its AI models, particularly those focused on understanding and generating computer code.
Think of it like a specialized engine that powers tools like ChatGPT when you ask it to write code or explain a programming concept. It handles the complex processes needed to make the AI understand your request and produce accurate code.
For example, when you use a feature that helps you debug code, the Codex harness is the infrastructure making that interaction possible.
The Codex harness is OpenAI's internal framework and infrastructure for deploying, managing, and executing AI models, with a strong emphasis on code generation and understanding capabilities. It encompasses the agent loop, thread lifecycle management, configuration, authentication, and tool execution necessary to power code-centric AI experiences.
This system is optimized for the specific demands of coding tasks, ensuring efficient model inference, tool integration, and interaction management. It serves as the backbone for various code-related features and agentic applications built by OpenAI.
OpenAI's recent announcements highlight the Codex harness, a system for running and managing AI models, especially those focused on code. The company is detailing how this harness underpins its new Agents API and its advanced GPT-6 Astra model, suggesting a renewed focus on structured AI agent development and execution.
- Introducing the Agents APIOpenAI · OpenAI on YouTube ·
- GPT-6 Astra: A new generation of intelligenceOpenAI · OpenAI Research ·
- Unlocking the Codex harness: how we built the App ServerOpenAI · OpenAI News ·
- OpenAI ChatGPT
- OpenAI uses the Codex harness as a framework for running and evaluating its AI models, particularly for code generation and understanding tasks, and as the core system managing its Codex experiences.
- Codex
- Codex is the name of OpenAI's family of models specialized for code, wher
- App Server
- The App Server is an application built on top of the Codex harness t
- Agent loop
- The agent loop is a component within the Codex harness that defines
The term 'Codex harness' originates from OpenAI, referring to the internal infrastructure and systems developed to support and deploy their Codex family of AI models, which are specialized for code. Source ↗
Ask ChatGPT to write a simple Python function, like 'Write a Python function that takes a list of numbers and returns their sum.' Then, ask it to explain the code it generated. This interaction uses the Codex harness to process your request and generate code. Next, try asking ChatGPT to debug a small piece of code you provide. Observe how it analyzes the code and suggests corrections, showcasing the harness's code understanding capabilities.
The Playbook: reusable how-tos, prompts, configs and tips pulled out of the news.
- ToolOpenAI Agents API for building automated agentsA hosted version of the Codex harness to build agents that investigate incidents, connect to tools, and report findings. · 15 min
- HeuristicCodex harness handles config and authenticationThe Codex harness manages configuration, defaults, and authentication flows like 'Sign in with ChatGPT'. · 10 min
- HeuristicCodex harness includes thread lifecycle and persistenceThe Codex harness manages thread lifecycles, persistence, and event history for consistent conversations. · 10 min
- PromptRole-play a student struggling with math for AI tutor simulationSimulate a student's math struggles and uncertainty for AI tutor evaluation. · 5 min
- TemplateReusable workflow templates for healthcare teamsTeams can create and share templates for common workflows like documentation or prior authorizations. · 15 min
Questions people ask
- What is the main purpose of the Codex harness?
- The Codex harness is designed to efficiently run and manage AI models, particularly those focused on understanding and generating computer code, enabling features like code writing and debugging.
- Is the Codex harness a model itself?
- No, the Codex harness is the system or framework that runs AI models like Codex. It's the infrastructure, not the AI model itself.
First seen on Subvolts Feb 4, 2026. Updated Sep 17, 2026. Written by an AI model from the items above and reviewed against them weekly; report an error.

