Skip to content

rtk gain hallucinates massive token usage and savings on one day using rtk gain --daily #1935

Closed as duplicate

Description

@officiallymarky
Image

On one day, it says I used 1421M tokens while saving 1417M. This is grossly inaccurate. Other days seem to be fine.

I have no idea why.

Activity

  1. pszymkowiak commented on May 27, 2026

    @pszymkowiak
    Collaborator

    wshm · Automated triage by AI

    🔍 Automated Triage

    🐛 Category bug
    🟡 Priority medium
    🎯 Confidence 91%

    Summary

    rtk gain --daily shows wildly inflated token counts (~1421M used, ~1417M saved) for a single day; PR #1978 is in progress to cap per-call saved tokens at the tool-result ceiling.

    This looks like a simple fix that could be auto-resolved. Repo maintainers can use /wshm fix to attempt it.

    📁 Relevant files
    • src/analytics/gain.rs

    Triaged automatically by wshm · This is an automated analysis, not a human review.

  2. officiallymarky commented on Jul 8, 2026

    @officiallymarky
    Author

    This issue still keeps happening every few days.

  3. officiallymarky commented on Jul 22, 2026

    @officiallymarky
    Author

    This hallucinated token-savings result reinforces why end-to-end agent outcomes matter more than compressed text alone: DeepSWE found Tura cuts coding-agent rounds by 89% and total token cost by 80%; would you evaluate the methodology? https://turaai.net/docs#benchmark-current-test-set-record

    This is an ad

  4. Yohjisakamoto commented on Jul 22, 2026

    @Yohjisakamoto

    This hallucinated token-savings result reinforces why end-to-end agent outcomes matter more than compressed text alone: DeepSWE found Tura cuts coding-agent rounds by 89% and total token cost by 80%; would you evaluate the methodology? https://turaai.net/docs#benchmark-current-test-set-record

    This is an ad

    https://blog.jetbrains.com/ai/2026/07/rtk-claude-code-token-savings/
    check this than

  5. KuSh commented on Sep 13, 2026

    @KuSh
    Collaborator

    Closing as a duplicate of #3508, which tracks the same uncapped saved-token accounting behind these inflated daily figures and includes the measurements and a proposed fix. Please follow up there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:clibugpriority:medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions