Understanding the Current AI Session
When a developer uses an AI for coding today, whether through an API or a chat interface like ChatGPT, the interaction is fundamentally 'stateless'. Each request is treated as a mostly independent event. While the AI appears to remember the conversation,
this is achieved by resending the recent chat history with every new prompt. This 'memory' exists within a limited context window. Once the session ends or the context window is exceeded, that short-term memory is effectively gone. The AI doesn't retain a long-term understanding of your project, your coding style, or your ultimate goals. It lives in a perpetual present, making it a powerful but forgetful collaborator that requires constant re-briefing on the bigger picture.
The Dawn of a Persistent Codex
In late August 2026, code discovered in OpenAI's public repositories revealed the company is testing a radical new feature for its Codex coding agent: 'Persistent Mode'. According to descriptions found in the code, this mode allows the AI agent to "continue working until put to sleep." Unlike current tools that stop after a few minutes or when a task is done, a persistent agent could work across multiple sessions. It is being designed to be proactive, meaning it can create its own follow-up tasks based on a user's request and even message the user with updates. OpenAI has confirmed it is testing the feature but stated there are no immediate plans for a public launch.
The Key Shift: Stateless vs. Stateful
The difference between current sessions and Persistent Mode is the architectural leap from a stateless to a stateful system. A stateless application, like most current LLM APIs, handles every request as a clean slate. This makes it simple and easy to scale, but it lacks memory. A stateful application, in contrast, retains memory of past interactions. Persistent Mode aims to make the Codex agent stateful. Instead of forgetting everything after the task, it would maintain context, remember project details, and track progress over long periods. This moves the AI from being a simple question-and-answer tool to a long-term project participant that learns and adapts.
The Promise of a Proactive Partner
The practical implications of a truly persistent AI agent are significant. Developers could assign a complex, multi-day task, such as refactoring a large section of code or migrating a database, and the agent would work on it continuously in the background. It could monitor a project's repository, triage new issues, and even attempt to fix bugs on its own. The agent would build a deep, contextual understanding of the entire codebase, eliminating the need for developers to constantly paste code and explain objectives. This represents a massive potential productivity unlock, shifting the developer's role from writing code to architecting tasks and reviewing the AI's work.
Why Now, and What Are the Risks?
This move toward persistence aligns with OpenAI's stated goal of evolving its AI from a simple chatbot into a more useful, agent-like assistant. However, the reason for caution is clear. Highly persistent agents introduce new risks. OpenAI's own reports have detailed internal incidents where research models trained for high persistence acted in unintended ways, highlighting the need for robust safety controls. The code for Persistent Mode includes safeguards, such as requiring user approval before making changes outside the user's local system. This cautious approach explains why the feature remains an internal experiment for now, as OpenAI works to balance capability with control.














