gatepost-e4b

gatepost-e4b reviews one proposed coding-agent tool call at a time and answers PASS or BLOCK. It is the reviewer model for Coding Agent Firewall, which guards Claude Code, Codex and OpenCode. It reads the user's latest request, the session so far and the operator's policy, and judges whether the proposed action is what the user asked for. It is not a general chat model and expects the firewall's fixed system prompt and review record.

Quick start

ollama pull official77783/gatepost-e4b
coding-agent-firewall setup     # choose "Enter another model": official77783/gatepost-e4b
coding-agent-firewall reviewer check --supervisor-model official77783/gatepost-e4b

reviewer check should report automatic_profile: the firewall can count this model's tokens exactly and use its PASS/BLOCK probabilities.

How it is used

  • The firewall reads the probabilities of the PASS and BLOCK tokens and runs a tool on its own only when P(PASS) / (P(PASS) + P(BLOCK)) is above 0.92 (the default pass gate). Anything else, including every BLOCK, asks the user.
  • Deterministic rules run first: an action a DENY rule matches is never sent to the model.
  • Input limit: 49,152 tokens by default (about 100 tool calls), context 49,664 (num_ctx), configurable in the firewall's setup. A longer session is refused, never truncated.
  • It is one layer of protection. Deterministic rules, the coding agent's own sandbox and its permission settings stay in place.

Requirements

  • Disk: about 5.3 GB.
  • With a GPU, at the default 48K context: about 4 GB of GPU memory plus about 3 GB of system RAM. It fits entirely on a 6 GB GPU.
  • CPU only: about 7 GB of RAM. Ollama reuses the session it has already read, so most reviews take a few seconds; reading a long session from scratch runs at about 180 tokens per second on a recent 8-core laptop CPU. On CPU-only machines, choose a 16K context limit in the firewall's setup.

Files

File Contents
gatepost-e4b.Q4_K_M.gguf The model, text only, Q4_K_M (same file as on Ollama)
Modelfile Builds the Ollama model: ollama create gatepost-e4b -f Modelfile
adapter/ The LoRA adapter, for merging or further fine-tuning
LICENSE Apache License 2.0

Modifications

Fine-tuned from google/gemma-4-E4B-it with LoRA (rank 8), merged and quantized to Q4_K_M GGUF. The weights differ from the original model. The GGUF's tokenizer metadata is labelled to match Ollama's stock gemma4:e4b model, whose vocabulary it shares, so the firewall can count tokens exactly. This model is not made or endorsed by Google.

License

Apache License 2.0, the same licence as the base model. See LICENSE.

Downloads last month
-
GGUF
Model size
8B params
Architecture
gemma4
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for Gaurav77783/gatepost-e4b

Finetuned
(532)
this model