claude-code - 💡(How to fix) Fix [FEATURE] persistent context/cost indicator in the status bar like in OpenCode, or custom bash prompt (PS0/PS1) [1 comments, 2 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
anthropics/claude-code#52794Fetched 2026-04-25 06:20:45
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
1
Timeline (top)
labeled ×4commented ×1

Code Example

x tokens
x% used
$0.00 spend
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

Hi, I love /context command, but I would like to have a persistent simple % info on my model context usage in a session to monitor it, whether I want to restart it, or maybe I am giving it too much context at the initial prep input etc.

Proposed Solution

OpenCode has a very simple solution of showing % usage all the time with something like:

x tokens
x% used
$0.00 spend

I understand not everyone may want it enabled by default, but having an option to configure your status bar like opencode or like bash prompt wiht PS0/PS1 is probably something a lot of people would want.

Alternative Solutions

No response

Priority

High - Significant impact on productivity

Feature Category

CLI commands and flags

Use Case Example

No response

Additional Context

No response

extent analysis

TL;DR

Adding a configurable status bar or prompt to display model context usage could address the user's need for monitoring.

Guidance

  • Consider introducing a new command-line flag or configuration option to enable/disable the display of model context usage.
  • Consider using a similar format to OpenCode's solution, showing tokens used, percentage used, and spend.
  • Investigate how to integrate this feature with the existing /context command.
  • Determine the best way to make this feature configurable, such as through environment variables or a configuration file.

Example

No code example is provided as the issue does not contain sufficient technical details.

Notes

The implementation details of this feature are unclear and would require further discussion and design.

Recommendation

Apply workaround: Introduce a new command-line flag or configuration option to enable/disable the display of model context usage, as this would allow users to opt-in to the feature and provide valuable feedback for future development.

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

claude-code - 💡(How to fix) Fix [FEATURE] persistent context/cost indicator in the status bar like in OpenCode, or custom bash prompt (PS0/PS1) [1 comments, 2 participants]