# NousResearch/hermes-agent · Gateway /status token tracking bug and fixes

## Open now

- 0 issues, 1 PR open on GitHub.
- PR #8355: feat(status): rich /status snapshots across CLI and gateway

A regression caused the /status command to always report 0 tokens, with multiple fixes and improvements to read token totals correctly from SessionDB/SQLite and enrich status output.

## TL;DR

- 8 member(s): 0 open issue(s), 2 closed issue(s), 1 open PR(s), 0 merged PR(s), 5 PR(s) closed without merging.
- No fix has been merged to main; one or more PRs were attempted (see below).
- **Recommended:** review the prior/competing PR(s) below. A fix was attempted but not merged; your case may extend or revive that work.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `unresolved`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_PARTIAL`): some members are connected by structural evidence (shared changed files, or a closing/superseded reference); the rest are joined by an automated relevance judgement over their text.
- Members outside that structural core may belong to a different underlying problem.
- Pairwise link density `0.23`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Closed / duplicate issues

- #5960: \[Bug\]: /status Tokens: 0 regressed — SessionStore totals drift from SessionDB/state.db
- #11087: Gateway /status command always reports 0 tokens

## Prior & competing PRs

- **#5989: fix(gateway): /status reads token totals from SessionDB**. closed without merge · fix tier `suggested`
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `7abc9ce4d`, `#17158`
  - _suggested-tier fix detail withheld; re-request with `?tier=all` to include it._
- **#11088: fix(gateway): /status command always shows 0 tokens**. closed without merge · fix tier `suggested`
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `7abc9ce4d`, `#17158`
  - _suggested-tier fix detail withheld; re-request with `?tier=all` to include it._
- **#13820: fix(gateway): read /status token usage from SQLite**. closed without merge · fix tier `suggested`
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `7abc9ce4d`, `#17158`
  - _suggested-tier fix detail withheld; re-request with `?tier=all` to include it._
- **#8355: feat(status): rich /status snapshots across CLI and gateway**. open
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `#7317`
  - files: `agent/context_compressor.py`, `gateway/run.py`, `gateway/session.py`, `hermes_cli/status_format.py`, `hermes_state.py`, `locales/af.yaml`, `locales/ar.yaml`, `locales/de.yaml`, `locales/en.yaml`, `locales/es.yaml`, `locales/fr.yaml`, `locales/ga.yaml`, `locales/hu.yaml`, `locales/it.yaml`, `locales/ja.yaml`, `locales/ko.yaml`, `locales/pt.yaml`, `locales/ru.yaml`, `locales/tr.yaml`, `locales/uk.yaml` (+2 more)
- **#12565: fix(gateway): restore /status totals and preserve callback ownership**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `8d7500d80`, `7abc9ce4d`, `#18219`, `#17158`
- **#18207: fix(gateway): /status reads token totals from SessionDB (regression of #1465)**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#18206`

## Fix status

- No merged fix on record.
- Subsystem: `gateway`
- Kind: `feature` (from the open PRs' GitHub type labels).
