The Codex Changelog
All Episodes
Custom MCP Status Lines in Codex CLI 0.171.0

Custom MCP Status Lines in Codex CLI 0.171.0

0:00|0:00

Codex CLI 0.171.0 introduces custom MCP status line selection and authoring via /statusline behind the tui_extensions_statusline feature flag, exposing a structured snapshot for thread costs, token usage, and rate limits. We also cover quality-of-life updates including undo/redo for pasted attachments, preserved drafts when switching sessions, and automatic wslpath resolution on WSL.


Chapter 1

Custom MCP Status Lines in Codex CLI

James Turner

Codex CLI zero point one seven one point zero dropped on November twentieth, twenty twenty six, and if you spend your day staring at a terminal footer, there is a really practical change tucked into this release. Before we get into the config, thanks to Jellypod AI for sponsoring this episode. They help make this daily breakdown possible.

James Turner

Last time we talked about zero point one seven one point zero, we covered remote control, the new model defaults, and the stable TUI workspace. Today we are looking at something much more hands on. OpenAI added custom MCP status line selection and authoring through slash statusline, gated behind the tui_extensions_statusline feature flag.

James Turner

To understand why this matters, think about how slash statusline worked before. Previously, you could only toggle and reorder built in footer items. Things like model with reasoning, context remaining, current dir, git branch, or fast mode. Your choices saved under tui dot status_line in config dot toml, and if you wanted to hide it for a session you ran slash statusline with the clear flag, or set status_line to an empty array.

James Turner

That was fine for basic stats, but if you wanted project specific telemetry in your footer, you were stuck. Maybe you wanted a custom VCS change ID, a specific spend readout, or your own rate limit formatting. You could not plug in your own data source.

James Turner

In zero point one seven one point zero, Codex changes that architecture. Under the hood, they added local status line provider configuration and persistence, plus MCP inventory and bounded streaming discovery for status line providers. There are also thread scoped resource reads and a structured status line snapshot for the displayed thread.

James Turner

That snapshot is the key piece. It exposes token usage totals, context usage, thread costs, the workspace headline, and Codex rate limits. When tui_extensions_statusline is enabled, slash statusline can discover, select, and even author MCP backed status line providers right from the picker.

James Turner

So how do you actually use it? First, make sure you are on zero point one seven one point zero, which you can grab via npm install globally at openai slash codex at zero point one seven one point zero. Then you need to enable the tui_extensions_statusline feature flag in your local setup. Once that flag is active, running slash statusline in the TUI opens up the new provider discovery and authoring flow.

James Turner

Now, here is the caveat you need to watch out for. Because this is gated behind tui_extensions_statusline, the release notes do not document the exact config dot toml schema for custom providers yet. You will want to verify the flag and test your provider setup in your local build rather than copying an older config. Also, note that thread cost and usage reads explicitly reject stale data, so if a provider is slow or disconnected, you will not get outdated numbers sitting in your footer.

Chapter 2

Composer and Session Quality of Life Fixes

James Turner

Beyond the status line work, zero point one seven one point zero also shipped a handful of smaller quality of life fixes that honestly make daily terminal use a lot smoother. Let us run through the ones you will actually notice.

James Turner

First up is the non Vim prompt composer. They added configurable undo and redo shortcuts, and the best part is that they restore attachments and large pastes. If you have ever accidentally wiped out a huge pasted stack trace and hit undo only to get nothing back, this fixes that.

James Turner

Next, session switching is much less punishing now. Codex preserves drafts, queued follow ups, and interrupted input with their original threads when you switch or resume sessions. You no longer lose half a prompt just because you jumped over to check another thread.

James Turner

There are also three quick fixes worth keeping in mind. Permission profiles now stay intact when you change working directories. Earlier edits are preserved in aggregate diffs when you are steering an active turn. And if you are on Windows using WSL, Codex now resolves pasted Windows paths with wslpath automatically.

James Turner

That is the practical rundown for Codex CLI zero point one seven one point zero. Try enabling tui_extensions_statusline if you want to experiment with MCP backed footers, and enjoy not losing your pasted attachments on undo. I will catch you in the next one.