HERMETIC

heretic's weights-level refusal removal, bound into your shell

A terminal where every model
you load is hereticed first.

Heretic takes a model's refusal behaviour out of its weights — no prompt tricks, no system-prompt scaffolding. It works, 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.

HERMETIC puts that inside a shell. 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.

$ git clone https://github.com/TheSolai/hermetic
$ cd hermetic && ./install.sh
$ ollama run qwen2.5:0.5b

  HERMETIC · resolving the model and binding its adapter
  model     qwen2.5:0.5b
  shape     qwen2 · 24 layers · hidden 896 · ffn 4864
  adapter   ~/.hermetic/adapters/qwen2-24-896-4864.gguf (ready)
  serving   http://127.0.0.1:50473/v1 (hereticed)

It is a real terminal. The panel knows your models.

Every model it can find — Ollama's store, GGUF files on disk, MLX models, the hub — listed with its size and its state. Click one and it opens in a tab.

The HERMETIC panel listing 90 models A model loaded with its Heretic adapter bound

Watch it bind an adapter.

The real terminal, on a real machine. Name a model and HERMETIC 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.

hermetic run 'qwen2.5:0.5b' — the weights are found, the shape is read, the adapter is bound, and the model is served.

An animated loop of the HERMETIC terminal binding a Heretic adapter to a local model

The same run as an animated loop, if you would rather not press play.

One terminal. Every runtime.

Two questions, and nothing runtime-specific: where are the weights, and what can serve them.

Where are the weights?

ollama~/.ollama/modelsweights can change
ggufa file on diskweights can change
mlxa directory of safetensorsadapter folds in
hfthe hubweights can change
openaia server already runningprompt policy only

How is it served?

llama.cppGGUF filesadapter bound at runtime
mlxsafetensorsfolded into the weights
ollamaOllama's storeprompt policy instead
openaiany OpenAI-compatible serverprompt 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. Where the weights cannot be modified, the terminal says so — it never fakes it.

Finding the original weights, when the name lies.

A model's name is no use at all here. A distilled deepseek-r1:8b is really a Qwen3-8B. Only the shape says so — architecture, layers, hidden size, feed-forward size — and the shape has to match to the digit, because llama.cpp will only bind an adapter whose tensors line up exactly.

  1. The name inside the weights. A GGUF file says what it is (general.name). It is also often old: a file that calls itself Qwen2-beta-4B-Chat is a Qwen1.5-4B-Chat today, and the hub redirects the old name to the new one.
  2. The organisation × family × size matrix. Qwen:latest is really Qwen/Qwen2.5-3B; llama.cpp only says the architecture is qwen2, so the minor version is guessed and crossed with the organisations that publish models of that family.
  3. The hub's search, filtered by parameter count. Ollama knows the count exactly; the hub knows each repository's count. That leaves a handful of candidates.
  4. The shape, checked to the digit. The shape is the only thing that is actually right, so it is what decides.

One adapter serves every checkpoint and every quantisation of that shape, so the second time you load a model it is instant. Gated repositories are reported as gated, using the hub's own gated field — a 401 on a download means “gated” or “does not exist” and nothing else.

It actually works.

The same weights, served twice: once plain, once with the Heretic adapter bound. Heretic's own evaluation set (mlabonne/harmful_behaviors, first 100), counted with Heretic's own refusal markers.

48refusals, before
→
4refusals, after
90models in the panel
1adapter per shape, for good

Reproduce it yourself with engine/bridge/scripts/ab_refusal_bench.py: two llama-servers, one set of weights, one with --lora.

Get it — £5

The source, the two prebuilt binaries and the installer, in one archive. Rust is not needed — install.sh uses the binaries as they are. It still builds the engine's virtualenv, because the engine is 1.6 GB of PyTorch and does not fit in a download.

The source is public either way. It is on GitHub under AGPL-3.0 and it stays there. Paying buys the binaries, an install that puts them where you want them, and an email address when it breaks — not access to the code.

Install

$ git clone https://github.com/TheSolai/hermetic
$ cd hermetic
$ ./install.sh

That is the whole thing. It checks what it needs, builds the engine's virtualenv (the vendored Heretic), builds the two binaries, and installs ~/Applications/HERMETIC.app with a shortcut on your Desktop.

macOS, Rust, and llama-server on the PATH. ollama is optional, but that is where most models come from. A Hugging Face token (HF_TOKEN) is optional too, and unlocks the gated families.