mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-10-20 05:15:31 +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). |
||
|---|---|---|
| .. | ||
| egress | ||
| features | ||
| messaging | ||
| secrets | ||
| skills | ||
| _category_.json | ||
| checkpoints-and-rollback.md | ||
| cli.md | ||
| configuration.md | ||
| configuring-models.md | ||
| desktop.md | ||
| docker.md | ||
| git-worktrees.md | ||
| import-from-other-agents.md | ||
| managed-scope.md | ||
| multi-profile-gateways.md | ||
| profile-distributions.md | ||
| profiles.md | ||
| security.md | ||
| sessions.md | ||
| tui.md | ||
| windows-native.md | ||
| windows-wsl-quickstart.md | ||