What Hermes Agent's Blocklist Taught Us About Blocking Dangerous Commands
Running Hermes? See and control every tool call it makes — allow/ask/deny before each call, the reason on every row, one installer:
curl -sf https://agenticcontrolplane.com/install.sh | bash
irm https://agenticcontrolplane.com/install.ps1 | iex
Full Hermes guide → · see your first checked call → · free up to 5 agents
Hermes Agent publishes exactly what it refuses to run. As of July 2026, its approval module has 12 hardline patterns, blocked even in yolo mode, and about 47 dangerous patterns that stop for an inline human prompt. It’s all readable source.
We read it, compared it line by line to ACP’s risk classifier, and adopted five categories. This post covers the comparison, what Hermes does better than we do, and why we still run a check outside the harness as well.
What their list gets right
The patterns show scars from real use. rm -rf "/" is quoted, because a plain path match misses the quotes. /private/etc/sudoers is there because on macOS /etc is a symlink into /private, so a check for /etc/ is bypassed by spelling the path differently. git reset --h is there because git accepts unambiguous prefixes of long flags, so matching the literal --hard isn’t enough. Each one is a lesson someone learned the hard way and wrote down as a regex. You don’t get that from a threat-modeling meeting. You get it from running agents.
Here are the categories we adopted into ACP’s classifier, credited to their list.
Self-protection. Hermes blocks commands that kill or reconfigure its own gateway. An agent shouldn’t be able to switch off the thing that checks it. We had nothing like that: an agent could edit the hook config or credentials that govern it and go dark. Now governance-tamper is its own category. Editing ~/.acp, hook settings, or uninstalling the plugin classifies as high risk for both shell commands and file edits. This was their best idea, and we adopted it the week we read it.
Update (2026-07-22). Four days after publishing, self-protection stopped being theoretical, and the paragraph above was only half true. The detection existed. Enforcement had never been wired to it. We found out because our own agent, after its session lost its governance hook to a setup bug, edited the agent-launch wrapper in the founder’s dotfiles to put the hook back. Good intent, but exactly the class this category exists to stop, because intent can’t be the control. The same day,
governance-tamperwent from classification to an unconditional floor like the hardline tier: above policy, and no approval can allow it. The path list grew to match what the incident showed: shell rc files that host the launch wrapper, PATH-shadowing of governed binaries, and scheduler persistence. Within its first hour live, the floor denied its own author twice more. Once was for blog copy that only mentioned the protected paths. Once was for the regression tests inside the fix. Prose isn’t a change to a file, so the floor now ignores quoted text, the way the hardline tier always did. Two lessons if you adopt Hermes’s list: detection without enforcement is a comment, not a control, and your first hour of real enforcement will teach you more than four days of review. Full entries are in the wild log.
Decode-pipe obfuscation. base64 -d | sh, xxd -r | sh, echo | tr | sh, openssl enc -d | sh, heredocs, powershell -enc. We caught curl | sh and sh -c but none of the decode pipes. The payload reaches the shell in an encoding no pattern can read.
Path beats tool. Writing a file in src/ and writing ~/.ssh/authorized_keys are different actions. A classifier that rates “Write” as one thing misses that. Writes to SSH keys, shell rc files (a way to persist), ~/.netrc, .npmrc and .pypirc (credential theft and supply-chain risk), /etc and /private/etc, and project .env files now classify as high risk however the write happens: redirect, tee, cp/mv, sed -i, or the edit tools.
Destructive SQL. DROP, TRUNCATE, DELETE without WHERE, scoped to database command-line clients so the word “DROP” in ordinary text never fires. Agents run SQL all the time and few guardrails look at it. In ACP’s current safety floor, destructive SQL through a db client waits for your approval. It isn’t a hard block.
A hardline floor. ACP had no tier that policy couldn’t override. Now a short list of catastrophic commands is always denied: recursive delete of root, home or system directories (with the quoting fixes above), mkfs, dd onto a raw disk, fork bombs, kill -1 and shutdown. No workspace setting can allow them. The bar for that list is that no legitimate agent task ever needs them.
What a harness blocklist can’t do
Hermes’s guardrails are good. They are also local: one machine, one harness, one process, regex only, set up by whoever runs the agent. That is often the agent’s own environment.
The gaps a control plane covers aren’t about better regexes.
Who did it. A local blocklist knows what ran, not who ran it. ACP attributes each call to a user, a key and an agent. “Which agent did this, and under whose key” isn’t a question a regex answers.
Policy that isn’t one machine’s config file. Local config can be edited by anything with file access, including the agent it constrains. That is the self-protection story above. To be exact about where ACP stands: its check runs as a hook on your machine, so it can also be switched off there, and that is why tampering with it is a category we block. What you gain is one workspace policy applied across harnesses, Hermes, Claude Code, Codex and more, so you don’t keep separate rule files in sync.
Approvals that find you. Hermes’s inline prompt is good UX, and we send holds into it rather than around it. But a local prompt at 3am on a server you’re not watching is a denial, not an approval. ACP can also send a hold to the console or to your email, and you approve there.
The log and the bill. What ran, across everything, with cost. Guardrails block, but they don’t explain. Most of what we’ve learned about our own agents came from the log, not the blocks.
Use both. The harness’s guardrails catch things first, and the control plane keeps the record and the shared policy. The acp-hermes plugin sends ACP holds into Hermes’s own approval flow, so you keep their prompt and get our floor.
This is part one of a series. Part two covers what every agent harness ships by default and what survives yolo mode.
Credit to NousResearch/hermes-agent, tools/approval.py.