Skip to content

Add input/output token counts to gateway runtime footer - #28978

Closed
Walter-John-Bastard wants to merge 1 commit into
NousResearch:mainfrom
Walter-John-Bastard:owl/runtime-footer-token-counts
Closed

Add input/output token counts to gateway runtime footer#28978
Walter-John-Bastard wants to merge 1 commit into
NousResearch:mainfrom
Walter-John-Bastard:owl/runtime-footer-token-counts

Conversation

@Walter-John-Bastard

Copy link
Copy Markdown

Summary

  • Capture per-turn input/output token deltas for gateway-dispatched agent replies
  • Add runtime footer fields for input_tokens and output_tokens
  • Add footer formatting tests for token fields

Test Plan

  • Not run in this session; change is covered by added unit tests.

@Walter-John-Bastard

Copy link
Copy Markdown
Author

Closing per WJB preference: do not use a public fork for this work. Patch archived privately in hermes-mechanic-private.

@alt-glitch alt-glitch added type/feature New feature or request P3 Low — cosmetic, nice to have comp/gateway Gateway runner, session dispatch, delivery labels May 19, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Near-duplicate of #17592 (per-turn token usage footer) and covered by umbrella #19922 (expand runtime_footer with all /usage variables). Already closed.

vanhci pushed a commit to vanhci/hermes-agent that referenced this pull request Aug 11, 2026
…fields

Extend display.runtime_footer with token-count and reasoning-effort fields:
- tokens_in / tokens_out: compact k-formatted (15.9k) per-turn token usage
- effort: agent reasoning effort label from agent.reasoning_effort
- context_pct now renders as 'ctx N%' (aligns with cc-connect style)
- Feishu renders the footer as a card-style quote block (divider + '> ')
  instead of plain inline text

All new fields are opt-in: the default field set is unchanged.
Related: NousResearch#19922, NousResearch#17592, NousResearch#64526, NousResearch#28978
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/gateway Gateway runner, session dispatch, delivery P3 Low — cosmetic, nice to have type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants