Hermes Sends 110K-Token Prompts to Local Models

Bug tracker — July 9, 2026. Hermes bug #61265 exposes a design-level performance issue: the agent sends its verbose system prompt, full tool definitions, and complete conversation history on every turn to locally-hosted models, creating ~110k-token prompts that cause multi-minute processing stalls before any token generation begins.

The Failure in One Sentence

Hermes sends ~110k+ tokens of prompt material to local OpenAI-compatible models on every single turn. The models spend minutes processing the prompt before generating a single response token. This affects every model size and every local backend, making local-model Hermes workflows practically unusable for anything beyond trivial single-turn tasks.

What Is In the 110K Tokens

ComponentWhy It BalloonsWhat Could Be Done
System promptVerbose instructions sent in full on every turnCache system prompt; local models can reuse it across turns
Tool definitionsFull JSON schemas for every tool, every turnCache tool schemas; only send diffs when tools change
Conversation historyEntire history sent without truncation or summarizationSummarize older turns; apply context-compression for local models

The reporter confirmed with llama.cpp metrics that prompt sizes reach approximately 110k tokens. The stall occurs during prompt processing, before any token generation begins, and the delay scales with prompt size regardless of model parameter count.

The Local-Model User Experience

User sends a message
→ Hermes constructs the full prompt (system + tools + history)
→ ~110k tokens sent to local model
→ Multi-minute stall during prompt processing
→ Token generation begins (relatively fast for small models)
→ Response arrives after several minutes of total latency
→ Next turn: same 110k-token prompt is sent again

For comparison shoppers evaluating Hermes Agent as a local alternative to managed services, this performance profile is a material differentiator. A managed agent platform handles prompt construction and model serving as infrastructure concerns. A local Hermes deployment shifts those concerns onto the user's hardware, where a 110k-token prompt on a consumer GPU can mean minutes of idle waiting between every single exchange.

Affects All Local Backends

The issue is not specific to any one serving framework. The reporter notes that llama.cpp, vLLM, Ollama, and other OpenAI-compatible local backends all receive the same oversized prompts. The root cause is in Hermes' prompt construction, not in the model serving layer.

The 2nd Distinct Prompt-Bloat / Context-Size Performance Bug

IssueDatePattern
#50807Jun 22Agent forwards very large shell output without bounding
#61265Jul 9Agent sends 110k-token prompts to local models, stalls for minutes

Together, these two issues reveal that Hermes lacks a coherent prompt-budgeting strategy. Whether the bloat comes from shell output forwarded without bounding or from accumulated system prompts, tool schemas, and history, the result is the same: the agent sends far more tokens than necessary, and local-model users pay the latency cost on every turn.

Why This Matters for Review-Site Readers

Case Summary

Source URL: https://github.com/NousResearch/hermes-agent/issues/61265