Skip to content

perf(hermes): a chat is summarized at 200K tokens instead of 80K - #176

Merged
SebasB76 merged 1 commit into
mainfrom
perf/summarize-later
Nov 15, 2026
Merged

SebasB76 merged 1 commit into
mainfrom
perf/summarize-later

Conversation

@SebasB76

Copy link
Copy Markdown
Owner

What

Vinci's chats are summarized when they reach 200 000 tokens instead of 80 000, and the number is now [hermes] summarize_at_tokens in config.toml.

The 80K cap dates from Claude's prices. On the live model (a 1M-token window, cached input at $0.003 per million) it only hurt: the fixed prompt and the tool schemas weigh about 40K, and a summary frees only 10 to 20K, so a busy chat was summarized again every question or two.

Measured on the live container over the last 14 days, the captain's chat:

  • 15 summaries in 115 messages, two in one turn on the evening of 8 Nov.
  • Each one adds 21 to 28 s to the turn (agent.log: context compression done … total_duration_ms).
  • Summarizing took 16% of the spend, and wrote more output tokens than the answers themselves.

A private chat still starts over after 4 hours without a message, so the context does not grow without end. An install on an expensive model sets the key back to 80000; without the key the old value stays.

No E2E run: a config value and the 15 lines that read it.

Docs: config.toml (the key's comment) and docs/guia/instalacion.md «Configuración».

The 80K cap dates from Claude's prices. On the live model (a 1M window, cached input at $0.003 per million)
it only hurt: the fixed prompt and the tools weigh ~40K, a summary frees 10-20K, so a busy chat was summarized
again every question or two. In the last 14 days the captain's chat was summarized 15 times in 115 messages,
each one adding 21-28 s to the turn, and summarizing took 16% of the spend.

[hermes] summarize_at_tokens in config.toml sets it; without the key it stays at 80K.
@SebasB76
SebasB76 merged commit 144e0d0 into main Nov 15, 2026
1 check passed
@SebasB76
SebasB76 deleted the perf/summarize-later branch November 15, 2026 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant