Skip to content

docs: add subagent guardrail tuning guidance - #68350

Closed
ajzrva-sys wants to merge 1 commit into
NousResearch:mainfrom
ajzrva-sys:docs/subagent-guardrail-tuning
Closed

docs: add subagent guardrail tuning guidance#68350
ajzrva-sys wants to merge 1 commit into
NousResearch:mainfrom
ajzrva-sys:docs/subagent-guardrail-tuning

Conversation

@ajzrva-sys

Copy link
Copy Markdown
Contributor

What

Adds a "Subagent / Autonomous Sessions" subsection under Tool-Loop Guardrails with recommended config for delegate_task subagents and cron jobs.

Why

Defaults (hard_stop_enabled: false, loose thresholds) are right for interactive sessions where a human can intervene. Subagents running autonomously burn iteration budget on repeated failures before the guardrails kick in. Tightening thresholds saves budget for productive work.

References #414 (iteration budget pressure). Complementary to #68348 (cross-turn progress tracker).

@alt-glitch alt-glitch added type/docs Documentation improvements comp/agent Core agent runtime: loop, agent_init, prompt builder, context-compression, responses endpoint tool/delegate Subagent delegation area/config Config system, migrations, profiles P3 Low — cosmetic, nice to have labels Jul 21, 2026

@teknium1 teknium1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding operational guidance for autonomous work.

Problems

  • website/docs/user-guide/configuration.md:1448 points to delegation.progress_tracker, but current main has no such configuration or implementation. The destination fragment is also invalid: the configuration page exposes ## Delegation at website/docs/user-guide/configuration.md:2144, not #subagent-delegation.
  • The snippet is presented as subagent/cron tuning, but tool_loop_guardrails is global: agent/agent_init.py:1593-1596 loads it for AIAgent instances, including delegated children (tools/delegate_tool.py:1505) and cron jobs (cron/scheduler.py:3477). Enabling these values would also change interactive parent-session behavior.

Suggested changes

  • Remove the nonexistent progress-tracker reference until its implementation and documentation land.
  • Clarify the global scope of this configuration, or avoid framing it as a subagent/cron-only setting.

Automated hermes-sweeper review.

max_iterations: 80 # default is 50; bump for complex tasks
```

For **cross-turn non-convergence** (different tool calls each turn, no output), see `delegation.progress_tracker` in the [Delegation](#subagent-delegation) section.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delegation.progress_tracker is not implemented or documented on current main, and this page's delegation heading resolves to #delegation, not #subagent-delegation. Please remove this reference until the setting exists.

@teknium1 teknium1 added the sweeper:blast-contained Sweeper blast radius: contained — one narrow path / opt-in / few users label Jul 30, 2026
Recommend enabling hard_stop_enabled with tighter thresholds for
delegate_task subagents and cron jobs. References cross-turn progress
tracker (delegation.progress_tracker) and max_iterations config.
@ajzrva-sys
ajzrva-sys force-pushed the docs/subagent-guardrail-tuning branch 2 times, most recently from 3ee35e4 to 51212d9 Compare August 1, 2026 02:03
@ajzrva-sys

Copy link
Copy Markdown
Contributor Author

The documented feature (subagent non-convergence guardrail, #68348) hasn't landed on main yet. Closing until the implementation is ready.

@ajzrva-sys ajzrva-sys closed this Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/config Config system, migrations, profiles comp/agent Core agent runtime: loop, agent_init, prompt builder, context-compression, responses endpoint P3 Low — cosmetic, nice to have sweeper:blast-contained Sweeper blast radius: contained — one narrow path / opt-in / few users tool/delegate Subagent delegation type/docs Documentation improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants