Skip to content

Transparency around tokens use #249983

Closed
Closed

Description

We get a lot of user feedback about missing transparency around tokens used (and no transparency around rate limits).
As a step 1, I think we should introduce some UI affordance that tells the user how many tokens they are about to consume (have consumed so far in the session).

LM Studio has nice affordance that shows token use after every message, and the text input also shows how much tokens the current input consumes. Below the input is a simple tokens N / MAX

Image

Image

Zed simply shows an affordance in the title area, which is very minimalistic but I believe gets the job done.

Image

fyi Justin Chen (@justschen) Benjamin Pasero (@bpasero) Joanna Oikawa (@jo-oikawa)

Activity

  1. added
    ux
    on May 28, 2025
  2. isidorn commented on Jun 17, 2025

    @isidorn
    Author

    Another benefit of showing tokens is to make it clearer to the user when we start summarization. For example the token count at top could change colour / some decoration to indicate summarization will kick-in.
    Also hover should explain to the user that starting a new chat is a good idea to more precisely control context. We want shorter chats with less context (faster, more capacity efficent)

    fyi João Moreno (@joaomoreno)

  3. nimoalr commented on Jul 6, 2025

    @nimoalr

    This feature will also be really helpful to understand how many tokens are being used by MCP tools responses, looking forward to this improvement! 🙌

  4. isidorn commented on Jul 10, 2025

    @isidorn
    Author

    Claude code nicely shows when it is about to summarize

    Image
  5. OrenMe commented on Jul 14, 2025

    @OrenMe
    Contributor

    this is a much needed feature, I think the major part of developers action is to make sure context is correct and doesn't overflow
    Having the ability to clearly see token usage in numbers and percentage will be very useful
    Seeing the culprit of this - e.g. seeing chat context vs system prompt vs tools will allow user to understand he needs to either revise and reduce tools maybe, create a chatmode or simply start a new session
    Also maybe a gateway to another feature of having ability to start new session with some context of exiting one and having the ability to see and confirm or tweak this session summarization before opening the new session
    Bonus points - be able to link somehow the sessions so user can iterate between them

  6. isidorn commented on Jul 14, 2025

    @isidorn
    Author

    Oren Me (@OrenMe) thanks for the feedback

    Kaitlin Brooks (@kkbrooks) Justin Chen (@justschen) I am going to go ahead and assign this to July since I see it on the plan. I am happy to brainstorm on this whenever you want.

  7. kkbrooks commented on Jul 15, 2025

    @kkbrooks
    Contributor

    One option I'm exploring is adding these details in the same row as the hover actions for each response

    Image

    Image
  8. isidorn commented on Jul 16, 2025

    @isidorn
    Author

    Thank you Kaitlin, I like this direction. Here are some problems I hope to solve (both for us and our users):

    1. Users are puzzled when summarization kicks in, and why. Claude Code always kicks in summarization at n% of context.
    2. Users are not opening new chat sessions as much as we want them to. Long chat sessions have context filled up that might ruin the experience. Long context reduces latency, and takes up more of our capacity. We want users starting new chat sessions with clear context
    3. Users are not aware that by installing some MCPs like GH - 100+ tools get added filling up the context
    4. Any additional transparency we can add is good, as that is our competitive advantage as Daniel points out

    Based on this, I agree with feedback to first focus on % of tokens used.

    Also users should see this changing as they are building up the prompt (installing MCP servers). So it might not be married to the response. Since we want to nudge users towards + new session, maybe it belongs more naturally to the top of the view. So it is more of a dynamic thing as user builds it, as oposed to static "here's what was used". I would love to also use some colours / additional decorations so users know when summarization is about to kick in (they filled up the context)

  9. 36 remaining items

  10. davidfstr commented on Jan 25, 2026

    @davidfstr

    How did you enable it in insiders?

    I did nothing special. Look in the top-right of the Chat panel for the pie chart icon.

    If you don't see the icon then maybe you need to update your Insiders version. My version is:

    Version: 1.109.0-insider (Universal)
    Commit: dfb16008e8bbec7b994c49c6865d4594fa5030ad
    Date: 2026-01-23T12:20:49.767Z (2 days ago)
    
  11. wichopy commented on Jan 26, 2026

    @wichopy

    How did you enable it in insiders?

    I did nothing special. Look in the top-right of the Chat panel for the pie chart icon.

    If you don't see the icon then maybe you need to update your Insiders version. My version is:

    Version: 1.109.0-insider (Universal)
    Commit: dfb16008e8bbec7b994c49c6865d4594fa5030ad
    Date: 2026-01-23T12:20:49.767Z (2 days ago)
    

    hrm im on a version later than yours and still no pie icon :S

  12. mrleemurray commented on Jan 26, 2026

    @mrleemurray
    Contributor

    The indicator should appear after a success response from the agent. Note: this currently only works for Local agents

  13. lramos15 commented on Feb 4, 2026

    @lramos15
    Member

    delaying it until after the response?

    We get the token information back from the server so we need to wait for that response

  14. lramos15 commented on Feb 5, 2026

    @lramos15
    Member

    Closing as we have shipped this

  15. MetalHexx commented on Feb 9, 2026

    @MetalHexx

    Thank you so much. This was desperately needed. Incredible release with so many other things I wasn't expecting all at once. Bravo!

  16. locked and limited conversation to collaborators on Mar 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

chatfeature-requeston-testplanux

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions