hermes - 💡(How to fix) Fix SKILLS_GUIDANCE mentions "5+ tool calls" but the main agent has no reliable way to count them — is this guidance redundant? [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
NousResearch/hermes-agent#13570Fetched 2026-04-22 08:05:46
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Author
Participants
Timeline (top)
labeled ×3

Error Message

"After completing a complex task (5+ tool calls), fixing a tricky error, "

RAW_BUFFERClick to expand / collapse

Hi, I've been reading through the skill creation mechanism and have a question about the design intent behind SKILLS_GUIDANCE.

SKILLS_GUIDANCE (in agent/prompt_builder.py) is injected into the system prompt whenever skill_manage is available:

SKILLS_GUIDANCE = (
"After completing a complex task (5+ tool calls), fixing a tricky error, "
"or discovering a non-trivial workflow, save the approach as a "
"skill with skill_manage so you can reuse it next time.\n"
...
) At the same time, there is a separate, reliable automated mechanism:

_iters_since_skill is incremented on every tool-calling iteration (run_agent.py). When it reaches _skill_nudge_interval (default 10), _spawn_background_review(review_skills=True) is triggered. A silent background agent then reviews the conversation using _SKILL_REVIEW_PROMPT and decides whether to create or update a skill. Question

The "5+ tool calls" threshold in SKILLS_GUIDANCE is presented to the main agent as a trigger condition. However, the main agent has no reliable way to count how many tool calls have been made in the current task:

There is no counter injected into the prompt telling the model "you have made N tool calls so far." The model would have to manually count tool_calls entries in the conversation history, which it does not do in practice. After context compression, the raw tool call history is replaced by a structured summary, making counting even less reliable. Given that the actual automated skill-creation path goes through _iters_since_skill → _spawn_background_review → _SKILL_REVIEW_PROMPT, is the "5+ tool calls" description in SKILLS_GUIDANCE effectively dead guidance for the main agent? Could it be simplified or removed to reduce noise in the system prompt, or is there a design intent I'm missing?

Relevant files: agent/prompt_builder.py — SKILLS_GUIDANCE run_agent.py — _iters_since_skill, _skill_nudge_interval, _spawn_background_review run_agent.py — _SKILL_REVIEW_PROMPT

extent analysis

TL;DR

The "5+ tool calls" description in SKILLS_GUIDANCE may be unnecessary and could be simplified or removed since the main agent lacks a reliable way to count tool calls and an automated mechanism already exists for skill creation.

Guidance

  • Review the purpose of SKILLS_GUIDANCE and determine if the "5+ tool calls" threshold serves a specific design intent that is not covered by the automated skill-creation path.
  • Consider removing or simplifying the "5+ tool calls" description to reduce noise in the system prompt, as it may cause confusion for the main agent.
  • Investigate how the automated mechanism (_iters_since_skill → _spawn_background_review → _SKILL_REVIEW_PROMPT) interacts with the main agent's understanding of skill creation to ensure consistency.
  • Evaluate the impact of context compression on the main agent's ability to understand tool call history and consider alternative approaches to provide a reliable tool call count.

Example

No code snippet is provided as the issue is focused on design intent and guidance rather than a specific code problem.

Notes

The automated skill-creation mechanism seems to be the primary path for skill creation, and the "5+ tool calls" description may be redundant. However, without further information on the design intent behind SKILLS_GUIDANCE, it's difficult to provide a definitive solution.

Recommendation

Apply workaround: Remove or simplify the "5+ tool calls" description in SKILLS_GUIDANCE to reduce noise in the system prompt, as the automated mechanism already handles skill creation.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

hermes - 💡(How to fix) Fix SKILLS_GUIDANCE mentions "5+ tool calls" but the main agent has no reliable way to count them — is this guidance redundant? [1 participants]