Skip to content

Gemini cli taking large tokens or else /stats showing wrong data #12434

@venkat9507

Description

@venkat9507

What happened?

  1. Created new folder to make sure i don't have any folders or files for the gemini to cache or send it as a prompt so created new folder it as nothing in it

  2. Opened gemini cli running in latest version --> 0.11.3

  3. Model used --> gemini-2.5-flash

  4. 1st prompt given --> "Hi"

  5. gemini returned --> "Hi! I'm ready for your first command."

  6. i'm shocked to see --> /stats model

╭──────────────────────────────────────────────────────╮
│ │
│ Model Stats For Nerds │
│ │
│ Metric gemini-2.5-flash │
│ ────────────────────────────────────────────────── │
│ API │
│ Requests 1 │
│ Errors 0 (0.0%) │
│ Avg Latency 5.5s │
│ │
│ Tokens │
│ Total 5,364 │
│ ↳ Prompt 5,328 │
│ ↳ Thoughts 25 │
│ ↳ Output 11 │
│ │
╰──────────────────────────────────────────────────────╯

total used token for "Hi" is "5,364" and it is keep on doubling when i give 2nd prompt as "Hi" then total token is

"10,728"

NOTE: "/memory" is empty

Image

What did you expect to happen?

reduce the token count

Client information

Client Information

Run gemini to enter the interactive CLI, then run the /about command.

> /about
# paste output here

Login information

No response

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    status/need-triageIssues that need to be triaged by the triage automation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions