claude-code - 💡(How to fix) Fix Show current model in statusLine by default

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…

It's easy to forget which model is currently responding, especially when switching between Claude Code and other AI CLIs (e.g. Codex shows gpt at the bottom of its prompt). Claude Code already supports custom statusLine configs, but a sensible model-name default would be helpful out of the box.

Root Cause

It's easy to forget which model is currently responding, especially when switching between Claude Code and other AI CLIs (e.g. Codex shows gpt at the bottom of its prompt). Claude Code already supports custom statusLine configs, but a sensible model-name default would be helpful out of the box.

Fix Action

Fix / Workaround

Current workaround

Code Example

🤖 Claude Opus 4.7

---

{
  "statusLine": {
    "type": "command",
    "command": "python3 -c \"import json,sys; d=json.load(sys.stdin); m=d.get('model',{}); print('🤖 Claude', m.get('display_name') or m.get('id') or '?')\""
  }
}
RAW_BUFFERClick to expand / collapse

Summary

It's easy to forget which model is currently responding, especially when switching between Claude Code and other AI CLIs (e.g. Codex shows gpt at the bottom of its prompt). Claude Code already supports custom statusLine configs, but a sensible model-name default would be helpful out of the box.

Use case

I sometimes mix up which model is talking when I have Claude Code and Codex open at the same time. Codex's persistent "gpt" footer makes it obvious which CLI I'm in; Claude Code has no such indicator unless the user manually writes a statusLine command.

Proposed default

A built-in statusLine that displays something like:

🤖 Claude Opus 4.7

Pulled from the same session metadata that's already available to user-defined statusLine commands (.model.display_name / .model.id). Update on /model switch (which it already does for user-defined ones).

Current workaround

For anyone who lands here, this user-side config does the job:

{
  "statusLine": {
    "type": "command",
    "command": "python3 -c \"import json,sys; d=json.load(sys.stdin); m=d.get('model',{}); print('🤖 Claude', m.get('display_name') or m.get('id') or '?')\""
  }
}

(Add to ~/.claude/settings.json and restart.) Works fine, but ~99% of users won't know this exists. Hence the default suggestion.

Implementation notes (just thoughts)

  • Could be the default only when no user statusLine is configured.
  • Format could match whatever convention Anthropic prefers — short ID, display name, with/without emoji.
  • Cost: ~one line of code at the bottom of the prompt, identical mechanism to existing statusLine.

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