Hermes Agent
Let Hermes Agent run commands, write code and drive a browser for your team, with every one of those actions checked by AgentFox first.
A plugin on Hermes's pre_tool_call hook asks AgentFox about each tool call before it runs. AgentFox allows it, blocks it with the rule's reason, or holds it for an approver, and records all of them. This is an independent integration, not made or endorsed by Nous Research.
Start Hermes behind AgentFox
The kit in deploy/hermes/ starts AgentFox and builds Hermes with the AgentFox plugin loaded and AgentFox as its model endpoint.
Fill in the settings
bash git clone https://github.com/architsharm/agentfox && cd agentfox cp deploy/hermes/.env.example deploy/hermes/.envSet the two AgentFox secrets and your model provider's key. The model key stays in AgentFox: Hermes and the people using it never see it.
Start it
bash deploy/hermes/up.shIt starts AgentFox on port 3000, tells it what Hermes's tools do, grants them to the
hermesagent and builds Hermes. It then prints the command that opens a chat with Hermes.Watch, then switch to Block
AgentFox starts by watching: it records what it would have held and lets the call run. Destructive shell commands are blocked from the start. When the decisions look right:
bash docker compose --env-file deploy/hermes/.env \ -f deploy/docker-compose.yml -f deploy/hermes/compose.yml \ exec gateway agentfox policy enforce tool-containmentOr start in Block straight away with
deploy/hermes/up.sh --block.
Add it to a Hermes you already run
Install the plugin
bash pip install agentfox # into the Python environment Hermes runs in cp -r sdk/hermes ~/.hermes/plugins/agentfoxEnable it and point it at AgentFox
~/.hermes/config.yaml plugins: enabled: - agentfox~/.hermes/.env AGENTFOX_URL=http://localhost:8080 AGENTFOX_AGENT_KEY=nom_agt_…Declare and grant Hermes's tools
Where the
agentfoxCLI reaches your AgentFox database:bash deploy/hermes/agentfox-setup.sh hermes
What is checked
| Hermes does | AgentFox |
|---|---|
| Runs a terminal command or code | Blocks destructive ones (recursive delete, curl | sh, reading credential files). Holds one built from content it read. |
| Drives the browser or the desktop, sends a message | Lets it through when the arguments came from the user. Holds it when they were copied out of a web page, a file or another tool's output. |
| Writes or patches files | Checked against what the agent was granted and where the arguments came from. |
| Schedules a job, starts a subagent, edits a skill, uses stored logins | Waits for an approver every time. |
| Calls a tool nobody granted | Recorded as ungranted; refused in Block. |
Approvals
By default a held call is refused with a link. An approver decides in AgentFox under Approvals, and when Hermes tries the same call again it runs once. So the person chatting with Hermes cannot approve their own risky call. To use Hermes's own approval gate instead, set AGENTFOX_APPROVALS=hermes.
If AgentFox is down
The plugin fails closed: a call AgentFox cannot check does not run. Set AGENTFOX_FAIL_MODE=open to let calls through instead.
What it does not cover
- Code a skill or plugin runs on its own, outside a tool call.
- What a terminal command starts after AgentFox allowed it.
- A held call in a run nobody is watching, such as a cron job: it is refused, not queued.
- In Block, a browser step or file write built from a fetched page is held. Research-heavy agents should watch first.