HERMETIC
A terminal where every model you load is hereticed first.
ยฃ5
What it does
HERMETIC removes a model's refusal behaviour by modifying its weights โ no prompt tricks, no system-prompt scaffolding.
Upstream Heretic does this well, but it is a
one-shot program: you point it at a model, it ablates the weights, and you are left holding
a .gguf and a separate llama-server command to remember.
HERMETIC puts that inside a shell, and inside any model runtime rather than just one. Type a model name โ or click one in the panel โ and it finds the original weights, runs Heretic over them if an adapter for that shape does not exist yet, binds the adapter, and hands you a live model to talk to.
Measured on Heretic's own evaluation
set (mlabonne/harmful_behaviors, first 100), counted with Heretic's own refusal
markers, against the same weights served twice โ once plain, once with the adapter bound.
The terminal runs the probe itself, in the background, and always shows the untouched
model's number next to the adapted one.
Two questions, and nothing runtime-specific
Where are the weights, and what can serve them? Every feature in the terminal is written against those two, which is why one binary covers Ollama, GGUF on disk, MLX directories and anything speaking the OpenAI API.
Where are the weights?
ollamaโ~/.ollama/models. Weights can change.ggufโ a file on disk. Weights can change.mlxโ a directory of safetensors. The adapter folds in.hfโ the hub. Weights can change.openaiโ a server already running. Prompt policy only.
How is it served?
llama.cppโ GGUF files. Adapter bound at runtime, exactly.mlxโ safetensors. Folded into the weights.ollamaโ Ollama's store. Prompt policy instead.openaiโ any OpenAI-compatible server. Prompt policy instead.
Every runtime that can be talked to at all speaks
POST /v1/chat/completions with server-sent events. So the terminal has
one chat client and does not care what is behind the endpoint. And where
the weights cannot be modified, the terminal says so โ it never fakes it. The serving mode
is shown next to the model: hereticed, prompt policy, or
as it is.
The screens
The panel lists everything it can find โ Ollama's store, GGUF files on disk, MLX models, the hub โ with each model's size and state.
A model loaded and bound. The panel on the left, the shell on the right, the plan and the probe underneath.
What's in the box
- A real shell โ zsh in a pseudo-terminal. Your rc files, your history, your line editing.
- Tabs โ
Ctrl-Topens one. Each tab is its own shell and its own model. - Any model โ the panel lists everything it can find, wherever it lives. Click one and it opens in a tab.
- The engine โ upstream Heretic, unmodified, with every scorer and every modifier.
- Two ways to apply it โ a LoRA bound at runtime, or the adapter folded into the weights.
- Prebuilt binaries โ Rust is not needed to install it.
Adapters are keyed by shape, not by name
llama.cpp will only bind a LoRA adapter whose tensors line up with the base model
exactly, so a Qwen3-0.6B adapter cannot be used on Qwen3-4B. The
terminal keys adapters by a shape signature โ architecture, layers, hidden
size, feed-forward size โ and not by model name:
qwen3-36-4096-12288 qwen2-24-896-4864
gemma4-30-2816-2112-128
One adapter serves every checkpoint and every quantisation of that shape. Finding the
original weights is the hard part, because a model's name is no use at all there โ a
distilled deepseek-r1:8b is really a Qwen3-8B. The search is
driven by the shape and the parameter count, cross-checked against the hub, and the shape
has to match to the digit.
Commands in a model session
Typed at the model's own prompt, so they work wherever the model works.
/whyโ what this model is and how it is being served: its shape, the adapter bound to it, the runtime, the plan, and what the probe found./probeโ measure, right now, how often this model refuses โ and how often the untouched model refused the same questions./improveโ spend time on a better adapter, in the background, while the model keeps answering./model,/models,/system,/clear,/help,/exitโ the rest.
Requirements
- macOS 13 or later
- Python 3.13 (or
uv, which the installer prefers) llama-serveron thePATHโ llama.cpp's serverollamaoptional, but it is where most models come fromHF_TOKENoptional, and unlocks the gated model families
The installer builds the engine's virtualenv, because the engine is 1.6 GB of PyTorch and does not fit in a download. The binaries themselves come prebuilt, so Rust is not needed.
Please note
HERMETIC removes refusal behaviour from models. That is the entire point of it, and it is a tool for people who own the models and want to run them locally without a refusal layer in the way. It does not reach anything you have not already downloaded, and it does not send your models anywhere โ the whole thing runs on your own machine. The upstream projects stay theirs: llama.cpp for serving, Hugging Face for the weights, Ollama for the store, and Heretic for the engine.
Licence
AGPL-3.0-or-later, because the engine is. The bridge carries the same licence, and
upstream Heretic is vendored under engine/heretic/ and run unmodified.
The source is public either way โ it is on GitHub and it stays there. Paying ยฃ5 buys the prebuilt binaries, an install that puts them where you want them, and an email address when it breaks. It does not buy access to the code.