# NousResearch/hermes-agent · Context length K-suffix decimal vs binary divisor debate

## Open now

- 2 issues, 2 PRs open on GitHub.
- #52103: \[Bug\]: _format_context_length uses decimal K (÷1000) — shows "131.1K" instead of "128K" for 128K context
- #63726: Bug: Context length display uses decimal divisor (1000) for binary unit label (K)
- PR #52106: fix(cli): use binary K (/ 1024) in _format_context_length
- PR #63747: fix(gateway, cli, banner, pricing): use decimal k suffix for token/context displays

These issues and fixes concern whether context length displays should divide by 1000 (decimal) or 1024 (binary) when formatting values with a 'K' suffix, with disagreement or iteration across gateway, CLI, and banner components.

## TL;DR

- 5 member(s): 2 open issue(s), 0 closed issue(s), 2 open PR(s), 0 merged PR(s), 1 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.34`: 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.

## Open related issues

- #52103: \[Bug\]: _format_context_length uses decimal K (÷1000) — shows "131.1K" instead of "128K" for 128K context
- #63726: Bug: Context length display uses decimal divisor (1000) for binary unit label (K)

## Prior & competing PRs

- **#52106: fix(cli): use binary K (/ 1024) in _format_context_length**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - files: `hermes_cli/banner.py`
- **#63739: fix(gateway): use binary K (/ 1024) in context length display**. closed without merge
  - maintainer direction: category `silent_close`; implication `active`
- **#63747: fix(gateway, cli, banner, pricing): use decimal k suffix for token/context displays**. open
  - maintainer direction: category `volume_quota`; implication `active`; refs `#63739`, `#52106`
  - files: `agent/usage_pricing.py`, `cli.py`, `gateway/run_turn.py`, `hermes_cli/banner.py`, `tests/gateway/test_session_info.py`, `tests/hermes_cli/test_cli_status_bar.py`, `tests/hermes_cli/test_context_length_display.py`, `web/src/pages/AnalyticsPage.tsx`, `web/src/pages/ModelsPage.tsx`

## Fix status

- No merged fix on record.
- Subsystem: `gateway`
