Why Codex encryption is narrowing the view into AI agents
OpenAI's Codex now encrypts instructions passed between a main agent and subagents, replacing readable task descriptions with unreadable strings in session history. Developers say this reduces transparency and can cause failed handoffs, while OpenAI has not explained whether the reason is privacy, distillation protection, or both.
OpenAI's Codex has changed how its AI agents communicate internally. Since early June, the coding tool has encrypted the instructions that a main agent sends to subagents, making a once-readable part of the workflow opaque to developers.
The shift matters because coding tools are increasingly becoming agentic systems. Instead of simply responding to one prompt at a time, they can split work into smaller tasks, assign those tasks to subagents, and make decisions in the background. When that process becomes harder to inspect, developers lose a useful window into how the system is actually handling their requests.
What changed inside Codex
Before the change, developers could inspect session history and see the task description sent from a main agent to a subagent. That made it possible to understand how Codex was breaking down work and whether a delegated task matched the user's intent.
Now, the visible record shows an unreadable string instead of a plain-language instruction. The delegation still happens, but the user can no longer read the content that moved between agents.
A bug report on GitHub directly raised the transparency problem. The request was for OpenAI to keep a readable local copy of the task alongside the encrypted version, so developers would still be able to audit what was passed to each subagent.
Which models are affected
The encryption behavior has not applied evenly across all Codex model paths. For a period, GPT-5.5 did not allow developers to turn off encryption with the dedicated toggle, which removed visibility into internal delegation entirely.
OpenAI has apparently moved GPT-5.5 back to the readable path. The source says mandatory encryption now applies to the larger GPT-5.6 variants, Sol and Terra. The smallest variant, Luna, still uses the open path.
That split creates a practical tradeoff for developers using Codex. The larger variants may offer capabilities users want, but they also come with less visibility into the handoff process. Luna remains readable, but it is described as the smallest variant.
Why developers are concerned
The immediate issue is not just curiosity about what the agent is doing. For developers, internal task descriptions can be part of debugging. If a coding agent makes a mistake, the handoff text can show whether the error came from the original request, the main agent's interpretation, or the subagent's execution.
When that text is replaced with encrypted content, developers lose a way to diagnose bad delegation. They can still see the final behavior, but not the internal instruction that shaped it.
The source also notes reliability complaints. Several developers say encrypted handoffs to subagents sometimes fail because the content cannot be decrypted. In some reported cases, the failure happens even when the main agent and subagent use the same model.
That makes the change more than a visibility concern. If the handoff mechanism can fail, encryption becomes part of the operational behavior developers have to account for, even though they cannot inspect the underlying message.
Privacy or model protection?
OpenAI has not explained why Codex now encrypts agent-to-agent communication. The confirmed fact is the change itself, not the motive behind it.
One theory in the developer community is that OpenAI may treat these internal prompts as similar to raw reasoning traces. If so, encrypting them could be a way to keep competitors from using them as training material.
The source points to recent suspicion around Zhipu AI's open GLM-5.2 model, which was suspected of having been distilled from GPT-5.5 and Opus 4.8. Agent-to-agent communication can be valuable training data because it shows how a stronger system breaks down and assigns work. Keeping that data unreadable would make it harder for rivals to use.
There is also a simpler explanation. OpenAI's API already encrypts intermediate states so they can be forwarded in follow-up requests without storing plaintext on its servers. Codex encryption may be part of a similar privacy approach.
At this point, the source leaves the central question unresolved. The change could be about protecting training-relevant internal communication, protecting data privacy, or both.
The transparency tradeoff
Codex encryption highlights a larger issue for agentic coding tools. The more these systems act on behalf of developers, the more important it becomes to understand what they are doing between the initial prompt and the final output.
Readable delegation helps developers audit behavior, catch misunderstandings, and build confidence in autonomous workflows. Encrypted delegation may protect sensitive intermediate data, but it also narrows the user's ability to inspect the system's choices.
For now, developers using Codex face an uneven landscape. GPT-5.5 has apparently returned to readable handoffs, GPT-5.6 Sol and Terra require encryption, and Luna still uses the open path. Until OpenAI explains the reason for the change and addresses failed handoffs, the debate around Codex encryption is likely to remain focused on the balance between privacy, protection, and developer control.
Read next