The Codex Changelog
All Episodes
Codex CLI 0.167.0: Managed Network Constraints and Command Checkpoints

Codex CLI 0.167.0: Managed Network Constraints and Command Checkpoints

0:00|0:00

Learn about Codex CLI 0.167.0's enterprise policy controls, including managed network constraints and command rules that require fresh human approval. We also cover approval prompt UX improvements, serialized network requests, and terminal quality-of-life updates.


Chapter 1

Policy controls in 0.167.0

James Turner

If you've ever wondered what stops a coding agent from quietly phoning home to some random endpoint, version 0.167.0 has an actual answer. And before I get into it, thanks to Jellypod AI for sponsoring this episode. Okay, the security side of Codex CLI 0.167.0, released November 6th.

James Turner

We covered session management and the daemon flags from this release recently. This episode is about the other half: enterprise policy controls. Two things. Managed network constraints under permissions dot network, and prompt-user command rules. Both show up in the release notes as documentation in the app-server README, tied to pull requests 58182 and 58045.

James Turner

First, what changed. The app-server now documents managed network requirements under the permissions.network section. The idea is that an administrator, not the agent and not the individual user, defines the outbound network boundary. The second piece is the prompt-user rule. The release notes describe it as command rules that require fresh human approval. The pull request title is, quote, add managed command checkpoints requiring fresh human approval.

James Turner

Why does that matter? An agent can run shell commands and make network calls. In a regulated environment, you can't rely on every developer setting the right session flag. And you really don't want a cached approval, one you clicked yes on an hour ago, quietly covering a command you'd never have approved today. A prompt-user checkpoint is meant to ask every time. That's the point of the word fresh.

James Turner

How would you use it? The shape is this. In your managed configuration, you add a permissions.network section that spells out your network requirements. Then, in your command rules, you mark the sensitive commands with prompt-user. I'll be upfront: the release notes only point to the app-server README for the exact syntax, and I'm not going to invent keys for you. So read that README, and test on a throwaway repo first.

James Turner

What you'll see in the terminal is an approval prompt, and 0.167.0 improved that experience. Pull request 58281 lets you expand patch details directly in the transcript while an approval prompt is open. So you can actually read the diff before you say yes, instead of approving blind.

James Turner

There's a related fix worth knowing. Network approval prompts now close when their requests end, and concurrent requests to the same endpoint prompt one at a time. That's pull requests 58350 and 58351. Before, overlapping prompts meant you could approve something stale, or click the wrong one. Serializing them per endpoint is a small change with real safety value.

Chapter 2

Caveats and smaller fixes

James Turner

Now the caveats. First, a checkpoint that requires a human needs a human. My interpretation, not something the notes say: if you run Codex in an unattended job, a prompt-user rule will probably leave that run waiting for someone. So test your CI path before you roll the rule out.

James Turner

Second, network policy is only as good as its list. If you're too strict, expect provider calls or tool lookups to fail, and the failure may look like a flaky tool rather than a policy block. That's an inference on my part, so check your logs when something odd happens. Roll out narrow, then widen.

James Turner

A few smaller things in this release. Control plus L now clears the terminal display, but your earlier messages are still reachable with Control plus T. Handy. Deleting text that exposes a leading exclamation mark keeps your draft in chat mode instead of flipping into shell mode. And automatic context compaction now accounts for retained output from failed responses and missing token usage data, so long sessions should compact more accurately.

James Turner

One more note: there are 0.169.0 alpha builds out, but 0.167.0 is still tagged latest. So if you manage Codex for a team, the practical homework is simple. Read the app-server README, pick one command you'd never want auto-approved, and put a checkpoint on it. That's the whole episode. Thanks again to Jellypod AI, and we'll see you tomorrow.