Kiro icon indicating copy to clipboard operation
Kiro copied to clipboard

Provide an indicator for token usage in the chat (value or percentage) in Chat and in a Web platform

Open gustojs opened this issue 1 year ago • 9 comments

Note: This issue in the meanwhile became a parent issue for a wider scope of tasks related to tokens, context length, or interactions, so I've been changing the title and content accordingly. Since then, some parts of that scope became obsolete (namely the ones related to free preview and daily limit related indicators). Those subtasks got removed from the content to keep it clean.

Current subtasks:

1. Provide a token counter in the chat window (or at least a percentage of filled context limit)

Since each AI model has its context length limit and the output quality starts dropping at certain lengths, it would be good to see the current length of the conversation, after receiving a response from AI.

It doesn't have to be a real number if the team insists on keeping the context window lengths secret - it can be a percentage value or just a "getting close" message).

Use Case

  • properly plan when to switch over to new chat window (to keep the performance or limit credits usage)
  • prepare to close the current tasks before that
  • save progress track in task manager of our choice
  • ask AI model to write a summary of the conversation (in the way the user wants it)

Additional Context

It doesn't have to be always visible, it can be a dropdown or a tooltip.

2. Disclose the actual limit of context window for Kiro modes / models

This is a crucial piece of data for transparency and for the chat window management described above

Use Case

  • properly evaluate the value of Kiro's offer and make a conscious decision about which IDE to use
  • come up with more efficient usage patterns for Kiro
  • compare this value against chat window's length

gustojs avatar Jul 14 '25 23:07 gustojs

Hey, @gustojs 👋. We definitely want to bring this feature into the chat and improve the UX to allow for some better understanding of token usage during active sessions.

For now, there IS the ability to have sessions be compacted and passed to a new session. This is only seen/usable once you are near/hitting the context window length maximum. But again, this is not the end state goal for the UX.

Marking this as a feature request and will follow up once we have updates on progress.

cwomack avatar Jul 15 '25 16:07 cwomack

Seeing how this became a parent issue for duplicates of a wider scope of related topics, I've edited the original message to broaden the scope too.

If for the future you'd prefer to get such updates as a new comment instead, let me know.

gustojs avatar Jul 19 '25 16:07 gustojs

Added two new subtasks based on the community feedback and duplicates

  1. Provide a daily limit reset clock in status bar
  2. Provide a bar showing the percentage of current daily limit usage

gustojs avatar Jul 23 '25 19:07 gustojs

Hey, @gustojs 👋. We definitely want to bring this feature into the chat and improve the UX to allow for some better understanding of token usage during active sessions.

For now, there IS the ability to have sessions be compacted and passed to a new session. This is only seen/usable once you are near/hitting the context window length maximum. But again, this is not the end state goal for the UX.

Marking this as a feature request and will follow up once we have updates on progress.

Could you also add/merge the notion of considering Early Bird discount? It would be nice to give a small discount to early adopters, who are reporting bugs and/or taking bold step towards adopting Kiro, leaving behind Cursor and/or Claude Code behind.

zqyr avatar Jul 25 '25 02:07 zqyr

+1

danielcor avatar Jul 29 '25 13:07 danielcor

(in hopes to help make progress here, with /heart)

PROMPT TO PREPARE CONTEXT FOR FIX/FEATURE EXTENSION:

We are preparing to add additional features to the *{rate limiting notification feature(s)}across the Kiro IDE

(*feature abstraction name undetermined, interchangeably referential (for now) as: 'daily usage limit feature', 'rate limiter' 'use limit notification' or semantically homologous interactions thereof either until we find the specific feature name, or the names of the consortium of elements/components logic snippets which related to it)

  • in the kiro code base, grep for "You've reached your daily usage limit. Please return tomorrow to continue building."

There should be at least three elements with this text or a semantically similar string

  • In a {Kiro IDE Chat Module} Chat Component
  • In a Base-IDE Message Toast String
  • Perhaps as a canned response as part of a deterministic conditional response to be spliced in for a raw (or md-styled) chat text response

retrieve first the sections of code snippets having direct or side-effectual logic pertaining to the rate-limiting trigger, the components which are delivered, and any ancillary context relating to the {respective feature} and compose a synoptic overview of the feature as implement ed in a new markdown file in {{ASK USER TO DETERMINE ROUTE IF UNDEFINED}}"

pastarita avatar Jul 30 '25 18:07 pastarita

The Vibe Counting is not correct, even if Kiro stuck in error, any message will increase Vibe counting. The session is too short, just a few questions, Kiro terminate the session with Session is too long).

tktronics avatar Sep 04 '25 03:09 tktronics

I've updated the content and title (which I should have done a long time ago) to remove the no longer relevant subtasks (related to free preview or daily limits)

The last related comment on this case from the team (from Nathan Jones): https://discord.com/channels/1374034175430230016/1394321912896950372/1434746213168709732

We're working on this issue from a few angles, both improving visibility into the session size and improving the experience when you have to summarize. We're still aligning on the best approach, so I can't give a timeline, but it's a high priority and actively in development.

gustojs avatar Nov 03 '25 04:11 gustojs

This has been introduced in the Kiro IDE where new context meter shows the percentage of context used in a session - https://kiro.dev/changelog/ide/0-7/. Closing this issue

arundna avatar Feb 04 '26 15:02 arundna