mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-27 17:58:07 +00:00
Add per-session lifetime caps on web_search calls and subagent spawns (defaults 200/200, matching Claude Code v2.1.212). Unlike the existing per-turn tool-loop guardrails, these count over the whole session and reset only when a fresh agent is built (/new, /clear). Hitting a cap blocks the offending call and halts the turn cleanly. - agent/tool_guardrails.py: SessionCapConfig + session counters on the controller (in __init__, not reset_for_turn, so they persist across turns). before_call() enforces caps first, independent of hard_stop_enabled. delegate_task batches count each task. - hermes_cli/config.py: tool_loop_guardrails.session_caps defaults. - docs + tests (unit + E2E validated against a real AIAgent). |
||
|---|---|---|
| .. | ||
| developer-guide | ||
| getting-started | ||
| guides | ||
| integrations | ||
| reference | ||
| user-guide | ||
| index.mdx | ||
| user-stories.mdx | ||