Hermes Classifier Mode — AI skill for Claude Code
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
Related Skills
Organizador Ia
Claude-powered file organizer agent with a local ML classifier, on-device OCR and safety tests Sandboxed AI ag
Nobi
Nobi — AI agent guard. A watchful owl that reviews Claude Code, Codex and Cursor permission requests before th
Ovo Local LLM
A private Claude-Code-style coding agent for Apple Silicon — run chat, code, and local model workflows on-devi
Roughcut AI Local First Editor
Open-source, local-first AI video editor: on-device transcription (whisper.cpp), local LLM rough cuts (Gemma v
Moorai
On-device guardrails for AI coding agents. Hooks check prompts, file reads, shell commands, writes, web fetche
AI Shell
A local-first, privacy-friendly natural-language Linux/macOS command assistant. Ask in plain English or Chines
Related Agents
Feature Research
Market and growth researcher for Woolly. Use it to see where Woolly stands among local memory and local LLM to
Delegate
Expert LLM delegation specialist that seamlessly connects to external language models including GPT-4, GPT-3.5
Ollama Expert
Local LLM expert — Ollama, Gemma, Llama, quantization, Modelfiles, router fast↔heavy. Use for my-assistant (lo