System-level Hermes agent infrastructure — global wrappers, cost guards, and orchestration tools.
- Hook:
hooks/model-cost-guard/handler.py— blocks paid models, allows free models from dynamic OpenRouter scan - State:
~/.hermes/cost-guard-state/(runtime, not repo) - Discovery: Daily OpenRouter scan populates
current_free_models.json
- Wrapper:
bin/safe_delegate_task— replaces directdelegate_taskcalls globally - Features:
- Dynamic free model pool from OpenRouter scan
- Quarantine system for rate-limited models
- Round-robin rotation with persistent state
- Exhaustion tracking per model
- Install: Symlink to
~/.local/bin/safe_delegate_task
- Path:
skills/autonomous-ai-agents/safe-delegate-task/scripts/safe_delegate_task.py - Used by:
delegate_taskwhen skillsafe-delegate-taskis active - Sync: Should mirror wrapper logic
# Install system wrapper
ln -sf ~/hermes-infra/bin/safe_delegate_task ~/.local/bin/safe_delegate_task
# Verify installation
which safe_delegate_task~/.hermes/cost-guard-state/current_free_models.json— 27+ free models~/.hermes/cost-guard-state/quarantine.json— temporarily blocked models~/.hermes/cost-guard-state/round_robin.json— rotation index~/.hermes/cost-guard-state/safe_delegate.log— operation log
MIT — part of the Hermes agent ecosystem.