claude-code - 💡(How to fix) Fix [FEATURE] Add context size indicator (tokens/% used) to terminal tab title [1 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#48463Fetched 2026-04-16 06:59:28
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Participants
Timeline (top)
labeled ×2renamed ×1

Root Cause

Claude Code sets the terminal tab title to a summary of the current task. This works well when sessions are doing different things, but falls apart when multiple tabs are working on similar tasks (e.g., related bugs, different parts of the same feature). The summaries end up looking nearly identical, and I regularly paste content into the wrong tab because of it.

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

Claude Code sets the terminal tab title to a summary of the current task. This works well when sessions are doing different things, but falls apart when multiple tabs are working on similar tasks (e.g., related bugs, different parts of the same feature). The summaries end up looking nearly identical, and I regularly paste content into the wrong tab because of it.

As humans we associate work with its size — a quick 3-line fix feels different from a 200-turn deep refactor. The summary alone doesn't capture that, so tabs that are at very different stages of work end up looking the same.

Proposed Solution

Append a compact size indicator to the terminal tab title. Any one of these would work:

  • % context usedFix auth middleware [72%]
  • token countFix auth middleware · 48k
  • turn countFix auth middleware (34t)
  • line count

or maybe on the left!

Ideal format would be configurable via a setting like Tab title size indicator: none | percent | tokens | turns, but even a single hardcoded metric (like % context used) would be a big improvement.

Alternative Solutions

I've also tried relying on the task summaries alone, but when working on related tasks they're too similar to differentiate at a glance.

Priority

Medium - Would be very helpful

Feature Category

Interactive mode (TUI)

Use Case Example

  1. I have 3 terminal tabs open, each running Claude Code on the same repo
  2. Tab 1: fixing an auth bug (early stage, ~10% context)
  3. Tab 2: fixing a related auth bug (deep into it, ~65% context)
  4. Tab 3: refactoring auth middleware (nearly done, ~90% context)
  5. All three tabs show similar summaries like "Fix auth middleware" or "Debug auth flow"
  6. I copy a code snippet and switch tabs — I pick the wrong one and paste into the wrong session
  7. With a size indicator, the tabs would look like Fix auth middleware [10%], Debug auth flow [65%], Refactor auth [90%] — instantly distinguishable

Additional Context

This would also serve as a passive context-limit awareness tool — you'd notice a tab approaching 100% without needing to check explicitly.

extent analysis

TL;DR

Append a compact size indicator to the terminal tab title to differentiate between similar tasks.

Guidance

  • Consider adding a configurable setting Tab title size indicator with options like none, percent, tokens, or turns to allow users to choose their preferred metric.
  • Implementing a single hardcoded metric, such as % context used, could be a good starting point for differentiation.
  • When designing the size indicator, consider the ideal format and placement, such as appending it to the right or left of the task summary.
  • To verify the effectiveness of the size indicator, test it with multiple terminal tabs running similar tasks and ensure that the indicators accurately reflect the task's progress.

Example

# Example of how the tab title could be formatted with a size indicator
tab_title = f"Fix auth middleware [{context_used}%]"

Notes

The size indicator should be compact and easily glanceable, to avoid cluttering the tab title. The choice of metric and format may depend on user preferences and the specific use case.

Recommendation

Apply a workaround by appending a size indicator to the terminal tab title, as this would provide an immediate solution to the problem of similar task summaries.

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] Add context size indicator (tokens/% used) to terminal tab title [1 participants]