█

AI/TLDR

OpenAI · 2026-12-02 · notable

Codex CLI 0.173.0 — shared MCP connections and hooks that can block tools

In short

Codex CLI 0.173.0 shares MCP connections by default, lets command and MCP tool hooks block a tool when a check fails, adds an admin switch for daemon updates and lets custom status lines align left, center or right.

OpenAI · 2026-12-02 · 1 source checked

GitHub card for the openai/codex terminal coding agent repository

Codex CLI shares MCP connections by default and gives hooks and admins more control over what runs.

What is it?

Shared MCP connections are now the default in Codex CLI 0.173.0, and the agent also supports older local MCP servers that expect `initialize` as their first request. Custom status lines can align items left, center or right, or spread them across the terminal width.

How does it work?

Synchronous command and MCP tool hooks can set `onFailure` to `block`, so a failed `PreToolUse` check stops the tool from running instead of letting it continue. Administrators can block scheduled and manual daemon updates with `features.daemon_updates = false` in a managed `requirements.toml` or local MDM policy, and Codex finds OAuth endpoints published by a config server when `config_server.oauth` is left out.

Why does it matter?

Teams that use hooks as safety gates get a hard stop when a check fails, and managed fleets can pin the Codex daemon version. Bug fixes in this release keep pasted image attachments alive after the original file moves, and refresh sidebar previews when a file changes on disk.

Who is it for?

developers and admins who run the Codex agent in the terminal

Try it

npm i -g @openai/codex@0.173.0

Sources

Tags

  • openai
  • codex
  • codex-cli
  • coding-agent
  • cli
  • terminal
  • mcp
  • hooks
  • enterprise
  • developer-tools
  • release
// NEVER MISS A RELEASEGet every AI release the moment it shipsFree Telegram channel · 1-line TLDRs · no emailJoin on Telegram

← All releases · Learn AI