NousResearch/hermes-agent

Reducing tool schema token overhead in API requests

Cluster 4379 · agent · Feature. Data as of

2 open items. Fix attempted, not merged.

The short answer

2open issues
0open PRs
4items grouped

Broad area: open items may be separate problems.

Known?
Yes. 4 related items grouped here, 1 issue already closed.
Fix event
No fix has been merged to main. 1 PR closed without merging; see the attempts below.
Tracker
The maintainers' tracker marks this unresolved. That is separate from the fix event.

The four members all concern the large share of each API request taken up by tool schemas or other fixed overhead. They propose or analyze approaches such as stub mode, per-session filtering, lazy loading, and token-distribution reporting in /compress; the reported percentages differ between items (83% vs. 73%).

Open issues2

  • Issue#63033[Feature Request] /compress should report per-segment token distribution and consider tool schema compression
  • Issue#67273Tool schemas consume 83% of every API request — per-session filtering and lazy loading needed

Open PRs0

No open pull requests.

1 PR closed without merging

From the close comments: superseded by another PR 1

  • #48622 feat(tools): add stub_mode to reduce main-thread tool schema tokens · superseded by another PR
Closed issues · 1
  • Closed#4379Token overhead analysis: 73% of each API call is fixed overhead (~13.9K tokens) — data + suggestions
How this cluster was grouped
  • Link evidence (partly structural links): some members are connected by structural evidence (shared changed files, or a closing/superseded reference); the rest are joined by an automated relevance judgement over their text.
  • Members outside that structural core may belong to a different underlying problem.
  • Pairwise link density 0.29: the share of item pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. 1.00 means every pair is linked.

For your agent

The same facts, typed.