hermes - 💡(How to fix) Fix Question: Why delegation limits are enforced at both tool-call count and batch task count [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#17849Fetched 2026-05-01 05:55:34
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
labeled ×4

Root Cause

My understanding (please confirm) This seems to mean that, in one turn, the maximum possible number of child agents could be up to max_children * max_children, because: the model can emit multiple delegate_task calls (up to A), each call can include batch tasks[] (up to B).

RAW_BUFFERClick to expand / collapse

I’m trying to understand the design rationale behind delegation limits, and I’d like to confirm whether my reading is correct.

What I observed in code

  1. In run_agent.py, there is a guardrail that caps how many delegate_task tool calls can appear in a single assistant turn: It uses _get_max_concurrent_children() as the limit.

  2. In tools/delegate_tool.py, inside a single delegate_task(...) call, batch mode also enforces:
    len(tasks) <= _get_max_concurrent_children()

So the same config value (max_concurrent_children) is used in two places: Limit A: number of delegate_task calls in one turn Limit B: number of tasks[] in one delegate_task call

My understanding (please confirm) This seems to mean that, in one turn, the maximum possible number of child agents could be up to max_children * max_children, because: the model can emit multiple delegate_task calls (up to A), each call can include batch tasks[] (up to B).

Questions

  1. Is this interpretation correct?
  2. What was the intended product/architecture reason for applying the same limit at both places?
  3. For parallel work, should users prefer: one delegate_task(tasks=[...]), or multiple delegate_task(goal=...) calls?

Thanks!

extent analysis

TL;DR

The design rationale behind delegation limits in the codebase is being questioned, and clarification is needed on the intended use of max_concurrent_children in limiting delegate task calls and tasks within those calls.

Guidance

  • Review the codebase to confirm if the max_concurrent_children limit is intentionally applied to both the number of delegate_task calls and the number of tasks within a single call.
  • Investigate the product or architecture requirements that led to the implementation of these limits to understand the design rationale.
  • Consider the implications of using max_concurrent_children in both contexts, including the potential for up to max_children * max_children child agents in a single turn.
  • Evaluate the performance and scalability differences between using a single delegate_task call with batched tasks versus multiple delegate_task calls for parallel work.

Notes

The issue lacks specific information about the product or architecture requirements that drove the design decisions, making it difficult to provide a definitive answer.

Recommendation

Apply a workaround by carefully evaluating the use of max_concurrent_children in the codebase and considering alternative approaches to limiting delegate task calls and tasks, such as using separate configuration values for each limit.

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 Question: Why delegation limits are enforced at both tool-call count and batch task count [1 participants]