OpenAI is developing a new operational setting for its Codex developer tool called Persistent mode, designed to allow autonomous AI agents to execute tasks indefinitely until manually paused or put to sleep.
The feature was identified in recent code commits to the command-line interface (CLI) repository for Codex, as reported by Wired. In the codebase, Persistent mode appears alongside standard reasoning effort settings such as medium, high, and extra-high, but introduces an entirely different execution loop.
Autonomous Task Generation and State Persistence
Current AI coding tools typically operate on a request-response cadence. A developer enters an instruction or sets a bounded goal, the model reasons through the task, runs terminal commands or file edits, and returns control to the user once the immediate prompt finishes or an error occurs.
Under Persistent mode, the execution loop is designed to continue autonomously. The internal codebase directives describe the agent as operating under instructions to continue working until put to sleep. Instead of halting after completing a single task or encountering an intermediate blocker, the agent can:
- Autonomously generate and queue follow-up sub-tasks based on project requirements.
- Maintain execution state and context across disconnected terminal sessions.
- Reference historical interactions and user preferences to guide subsequent technical decisions.
- Proactively notify the developer when critical decisions, test failures, or completed milestones occur.

Shift Toward Always-On Background Agents
The development of Persistent mode highlights an architectural shift from interactive chat-based coding assistants to durable background worker runtimes. Rather than requiring continuous human prompting, background agents are granted long-horizon autonomy to iteratively run test suites, analyze logs, adjust implementations, and verify codebases.
OpenAI frequently tests new architectural features and command-line primitives in its open Codex CLI before rolling them into GUI products such as the Codex desktop application and ChatGPT Work. OpenAI confirmed that the Persistent mode feature is under active internal testing, though no public release timeline has been finalized.



