wesleymatosdev

Hermes Classifier Mode — AI skill for Claude Code

AI community

Claude Code's auto permission mode for Hermes Agent — a local LLM classifier reviews every shell command before it runs (Ollama, on-device).

How to install Hermes Classifier Mode

This entry records only its repository, not the path inside it, so there is no exact command to give. Open wesleymatosdev/hermes-classifier-mode and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Hermes Classifier Mode does

Claude Code's auto permission mode for Hermes Agent — a local LLM classifier reviews every shell command before it runs (Ollama, on-device).

Alternatives in AI

  • DontFeedTheAI — Transparent anonymization proxy for AI-assisted pentesting 654 ★
  • Flow Next — Plan-first AI workflow plugin for Claude Code, OpenAI Codex, and Factory Droid 569 ★
  • Code CLI — Open-source terminal coding agent 205 ★

README

hermes-classifier-mode

Claude Code's [`--permission-mode auto`](https://code.claude.com/docs/en/permission-modes) for [Hermes Agent](https://github.com/NousResearch/hermes-agent): a **local LLM classifier reviews every shell command and `execute_code` script before it runs** — autonomy with a second model judging each action, instead of approval prompts (`default`) or skipping all checks (`--yolo`).

Hermes has no classifier-gated permission mode; this plugin adds one as a `pre_tool_call` hook. Runs entirely on-device via Ollama.

How a verdict is reached

Order Layer Latency Behavior
1 force_allow / force_approve config regexes ~0 skip classification / force human gate
2 Static read-only allow (git status, ls, cat, ...) ~0 proceed, no model call
3 Static catastrophic block (fork bombs, curl|sh, disk wipes, base64-exfil one-liners) ~0 veto even if Ollama is down
4 Local LLM classifier ~0.25s warm allow → proceed, block → veto with reason and a safer alternative the agent can run instead (or ask-user when none exists)
5 Classifier unreachable / unparseable — escalate to the human approval gate (fail-closed: cron and -q runs deny, per Hermes' own gate semantics)

Model vetoes include the reason, so the agent can self-correct or surface the decision to you.

Install

git clone https://github.com/wesleymatosdev/hermes-classifier-mode ~/.hermes/plugins/hermes-classifier-mode
# requires a local Ollama; recommended model (benchmark: 7/7, ~0.25s warm):
ollama pull qwen3:30b
hermes gateway restart   # or restart your CLI session

Configuration

Settings in `config.yaml` (never `.env` — no secrets here):

classifier_mode:
  enabled: true
  model: qwen3:30b              # any Ollama model; must support /api/chat
  ollama_url: http://localhost:11434
  timeout_s: 20
  keep_alive_s: 600             # keep the model warm between verdicts
  forc