codex - 💡(How to fix) Fix Feature request: customizable status line (like Claude Code) [4 comments, 5 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#17827Fetched 2026-04-15 06:27:31
View on GitHub
Comments
4
Participants
5
Timeline
9
Reactions
0
Timeline (top)
commented ×4labeled ×4unlabeled ×1

Root Cause

For users who switch between Claude Code and Codex, the lack of a status line in Codex is a noticeable gap. The status line is a low-cost, high-value feature that significantly improves the interactive experience.

Code Example

{
  "statusLine": {
    "type": "command",
    "command": "/bin/bash ~/.claude/statusline.sh",
    "padding": 0
  }
}

---

[status_line]
command = "/bin/bash ~/.codex/statusline.sh"
refresh_interval_secs = 10
RAW_BUFFERClick to expand / collapse

Feature Request

Problem

Claude Code has a built-in customizable status line feature that allows users to display useful real-time information at the bottom of the terminal UI — token usage, model name, rate limits, context window, git branch, etc.

This is configured via a simple shell script hook in settings:

{
  "statusLine": {
    "type": "command",
    "command": "/bin/bash ~/.claude/statusline.sh",
    "padding": 0
  }
}

The script receives JSON context on stdin and returns formatted text. This is incredibly useful for power users who want to monitor their session at a glance.

Codex CLI currently has no equivalent mechanism. There's no way to display custom information in the TUI — no status line, no hooks, no plugin system for UI customization.

Proposed Solution

Add a statusLine (or similar) configuration option to ~/.codex/config.toml that allows running an external command and rendering its output in the Codex TUI (e.g., at the bottom of the screen).

Something like:

[status_line]
command = "/bin/bash ~/.codex/statusline.sh"
refresh_interval_secs = 10

The command would receive session context (model, token count, etc.) as JSON on stdin and return a single line of text (with ANSI colors) on stdout.

Use Cases

  • Display current model and token/context usage
  • Show API rate limit status and reset times
  • Display git branch and repo info
  • Show project-specific metadata
  • Integration with external monitoring tools

Why This Matters

For users who switch between Claude Code and Codex, the lack of a status line in Codex is a noticeable gap. The status line is a low-cost, high-value feature that significantly improves the interactive experience.

extent analysis

TL;DR

Add a statusLine configuration option to ~/.codex/config.toml to enable running an external command and rendering its output in the Codex TUI.

Guidance

  • Review the proposed solution and consider adding a status_line section to the config.toml file with a command and refresh_interval_secs option.
  • Investigate how to pass session context as JSON to the external command and handle its output for rendering in the TUI.
  • Evaluate the potential use cases, such as displaying model and token usage, API rate limit status, and git branch information, to determine the required session context and output format.
  • Consider the security implications of running external commands and ensure proper input validation and error handling.

Example

[status_line]
command = "/bin/bash ~/.codex/statusline.sh"
refresh_interval_secs = 10

Notes

The implementation details of the statusLine feature, such as how to pass session context and handle output, are not specified in the issue. Additional discussion or clarification may be necessary to determine the exact requirements.

Recommendation

Apply workaround: Implement the proposed statusLine configuration option to enable custom status line functionality in Codex, as it provides a flexible and powerful way to display useful information in the TUI.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING