Models
Nightwatch ships four distilled models. All run locally through Ollama with temperature 0, and even the 610 MB one beats untuned Gemma 4 12B on our held-out set. The installer picks the largest one that fits in RAM.
The four sizes
When you run install.sh without --model, the installer checks system RAM and picks the largest tier that fits comfortably. All four models share the exact same 6-tool JSON contract.
| Tier | Ollama tag | Quant | Size | RAM rule | Held-out Tool+Args | Median latency |
|---|---|---|---|---|---|---|
default | nightwatch-gemma4-e2b | Q5_K_M | 3.46 GB | ≥ 12 GB | 97.5% | 203 ms |
balanced | nightwatch-qwen35-2b | Q5_K_M | 1.35 GB | 6–11 GB | 95.0% | 332 ms |
small | nightwatch-qwen35-0.8b | Q8_0 | 774 MB | 4–5 GB | 92.5% | 208 ms |
tiny | nightwatch-qwen3-0.6b | Q8_0 | 610 MB | < 4 GB | 90.0% | 104 ms |
All scores are measured on the locked 40-incident held-out benchmark at temperature=0.0 with 0.0% post-guardrail unsafe output (and 0.0% raw unsafe on default, balanced, and small). For the full comparison against untuned base models and gemma4:12b (87.5%), read the benchmark deep dive.
Choose a size when installing
All four quantized GGUF weights and Modelfiles are hosted publicly on Hugging Face (barbarosydev/nightwatch-r3-gguf) with pinned SHA-256 verification and resumable downloads. Pass --model to the installer to pin a specific tier (or all) instead of automatic RAM detection:
curl -fsSL https://raw.githubusercontent.com/barbarosydev/nightwatch-agent/main/install.sh | sh -s -- --model balanced
Already have nightwatch installed (or downloaded a release tarball) and want to pull, add, or switch model tiers without reinstalling the binary? Pass --model-only:
# Auto-select by RAM, or choose default | balanced | small | tiny | all curl -fsSL https://raw.githubusercontent.com/barbarosydev/nightwatch-agent/main/install.sh | sh -s -- --model-only --model small # Inspect which tiers are installed locally nightwatch models
If your local Ollama already has a Round 3 specialist registered (for example nightwatch-gemma4-e2b-r3-q5 or nightwatch-qwen35-2b-r3-q5), both the installer and the nightwatch binary detect and use it automatically without downloading anything.
Manual download from Hugging Face
If you prefer to download weights manually (or stage them onto an offline jump box), grab the .gguf and its matching .Modelfile from Hugging Face and register it with Ollama:
curl -fL -o nightwatch-gemma4-e2b-r3-q5-q5_k_m.gguf \
https://huggingface.co/barbarosydev/nightwatch-r3-gguf/resolve/main/nightwatch-gemma4-e2b-r3-q5-q5_k_m.gguf
curl -fL -o nightwatch-gemma4-e2b.Modelfile \
https://huggingface.co/barbarosydev/nightwatch-r3-gguf/resolve/main/modelfiles/nightwatch-gemma4-e2b.Modelfile
sed 's|{{GGUF_PATH}}|./nightwatch-gemma4-e2b-r3-q5-q5_k_m.gguf|g' nightwatch-gemma4-e2b.Modelfile > nightwatch-gemma4-e2b.rendered.Modelfile
ollama create nightwatch-gemma4-e2b -f nightwatch-gemma4-e2b.rendered.ModelfileAlways use the bundled .Modelfile rather than bare ollama run hf.co/... so Ollama applies Nightwatch's exact renderer, parser, system prompt, and temperature 0.0. Checksums for all four files live in SHA256SUMS.txt.
Install without internet
For air-gapped sites or local development where GGUF artifacts already sit on disk, point the installer at your local model folder:
sh install.sh --model default --models-dir /path/to/models/artifacts
On macOS Apple Silicon, you can also build up to four self-contained offline .tar.gz bundles (each packing the Go binary, libchdb.so, GGUF weights, Modelfile, and an offline install.sh) straight from the repository:
# Package all 4 macOS tiers into dist/ task package:macos # Or package a single tier (tiny | small | balanced | default) bash scripts/package-macos.sh balanced
Switch sizes later
By default, nightwatch inspects 127.0.0.1:11434 and picks the highest-accuracy Nightwatch specialist installed (gemma4-e2b → qwen35-2b → qwen35-0.8b → qwen3-0.6b). Override the choice on any command with --model:
nightwatch doctor --model nightwatch-qwen3-0.6b nightwatch run --simulator --model nightwatch-qwen35-2b nightwatch triage --model nightwatch-gemma4-e2b --json sample.log
Loopback-only inference
Nightwatch refuses to send raw logs over the network. If OLLAMA_HOST is set to anything other than loopback (127.0.0.1, localhost, or [::1]), the agent rejects it at startup. HTTP proxies and redirects are disabled on the Ollama client, and inference runs strictly single-turn (temperature=0.0, think=false).