DEV Community

Mukunda Rao Katta
Mukunda Rao Katta

Posted on

Context window exceeded at turn 23. Here's how I track token usage without a tokenizer.

Hermes Agent Challenge Submission: Write About Hermes Agent

This is a submission for the Hermes Agent Challenge.

My Hermes agent's context window fills up gradually. Each turn adds messages. Tool call results add more. After 23 turns, the API returned a context length error — with no warning, no graceful handling, just an exception in the middle of a synthesis step.

Top comments (0)