Feature Request: Input Token Estimation

  1. Estimate input tokens at the start of a conversation when including multiple files using @mentions.
  • When a user begins a new chat and attaches multiple files (e.g., via @file1 @file2), the system should automatically scan the files, estimate the tokens they would add to the input prompt (based on file content, size, and type), and display a preview of the total estimated tokens before the query is submitted. This could include a breakdown by file for transparency.
  1. Estimate input tokens cumulatively, calculated from previous chats to the current chat.
  • For ongoing conversations, the estimation should factor in the token usage from all prior messages in the thread (or across related chats if applicable). It would show the running total of input tokens up to the current message, helping users see how the conversation is building toward token limits.

hi @Muhd_Ridhwan and welcome to Cursor Forum

Thank you for your feature request.

A related request was already placed and has received following reply from Cursor Team