Repository navigation
perf(hermes): a chat is summarized at 200K tokens instead of 80K - #176
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Vinci's chats are summarized when they reach 200 000 tokens instead of 80 000, and the number is now
[hermes] summarize_at_tokensinconfig.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:
agent.log:context compression done … total_duration_ms).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) anddocs/guia/instalacion.md«Configuración».