hx stats: cache-write outliers and assistant-side bytes #109

Merged
hermes merged 1 commits from stats-writes into main 2026-10-01 22:28:33 +00:00
Collaborator

After #106/#108 a 93-request session shows 502k cache-write tokens (~5.4k per request) while the context only reached 105k. To tell masking steps (regular, every 8 turns) from cache expiry (irregular, idle > 5 min), hx stats now lists the requests whose cache write exceeds 2x the average, with request numbers and read/write. It also reports the bytes of assistant text and tool-call arguments kept in history (these are resent every request and were not counted). Test added; tests/all.sh green.

After #106/#108 a 93-request session shows 502k cache-write tokens (~5.4k per request) while the context only reached 105k. To tell masking steps (regular, every 8 turns) from cache expiry (irregular, idle > 5 min), `hx stats` now lists the requests whose cache write exceeds 2x the average, with request numbers and read/write. It also reports the bytes of assistant text and tool-call arguments kept in history (these are resent every request and were not counted). Test added; tests/all.sh green.
hermes added 1 commit 2026-10-01 22:27:57 +00:00
stats: list requests with large cache writes, report assistant-side bytes
ci / check (pull_request) Canceled after 0s
ci / check (push) Canceled after 0s
42384cf5e4
hermes merged commit 166d9fec87 into main 2026-10-01 22:28:33 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: johannes/hx#109