Skip to content

Insights report: input/output token counts appear swapped or undercounted #18615

@MrBill700

Description

@MrBill700

Body:
Running the built-in /insights report shows token counts that look
inverted or mis-attributed.

Last 7 days:
Tokens: 5,239,805 (in: 2,642 / out: 88,463)

Last 6 days (one day earlier):
Tokens: 3,449,571 (in: 1,344 / out: 62,641)

Input is reported far smaller than output across 36 sessions / 464
messages. With normal LLM usage, input should dwarf output, not the
other way around. The grand total (5.2M) seems plausible; only the
in/out split looks wrong.

Seen on two consecutive daily reports, so not a one-off.

Possibly related: #12023 (/insights shows wrong model name) — also
an /insights display bug; could share a root cause in the report
renderer.

Environment:

  • hermes-agent: f903cee (2026-05-01)
  • Provider: Direct Anthropic (Claude Max OAuth)
  • Model: claude-sonnet-4-6
  • Platform: Ubuntu 24.04, Python 3.11

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low — cosmetic, nice to havecomp/cliCLI entry point, hermes_cli/, setup wizardtype/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions