Two engines, one pass
Harper rules flag typos and agreement in under 10 ms. A local LLM rewrites the full sentences rules can't fix — triggered on a selection or ⌘⇧R.
Local-first · macOS
Nib pairs the Harper rule engine with a small on-device LLM to catch mistakes and rewrite whole sentences — across everyday prose apps, with zero network calls for checks and rewrites and no account.
macOS 13+ · Apple Silicon · early access — build from source
Grammarly ships a bundled browser and a cloud round-trip. Harper is a beautiful Rust grammar engine, but it deliberately refuses generative AI. Nib is both — instant rule-based catches plus a local model for the contextual rewrites rules can't reach — and checks and rewrites run offline.
Harper rules flag typos and agreement in under 10 ms. A local LLM rewrites the full sentences rules can't fix — triggered on a selection or ⌘⇧R.
No servers, no account, no telemetry. Checking and rewrites never touch a network —
the model runs entirely on-device through llama.cpp. The only network
use is fetching models from Hugging Face/GitHub plus optional cloud training you must explicitly enable.
A system overlay underlines and rewrites in TextEdit, Notes, Mail and Messages, with a clipboard fallback that reaches browsers and Electron apps.
A ~462 MB bundled model (Qwen3-0.6B) instead of a bundled Chromium and a cloud hop. The BitNet roadmap aims even smaller.
Accepted edits land in a private on-device journal that can fine-tune a personal LoRA — trained locally by default; cloud training is strictly opt-in.
The premium adapter preserves facts, numbers and technical tokens — 81.1% on our held-out eval vs 64.4% for the stock base.
The macOS Accessibility API tells Nib which text field you're in — across everyday prose apps, without a plugin.
Harper flags rule-based issues instantly. Select text or hit ⌘⇧R and the sentence goes to the local model for a rewrite.
Accepted fixes are applied directly through the Accessibility API — or pasted via a clipboard fallback where direct write isn't allowed.
| Tier | Model | Notes | Size |
|---|---|---|---|
| Default | Qwen3-0.6B (no-think) | Bundled in the app; stock 83.3% strict holdout90 (75/90) — beats the premium adapter's 81.1% at ~1/2 the download. | ~462 MB bundled |
| Legacy | LFM2.5-350M-Instruct | Legacy default, download removed – use Qwen3. | ~219 MB |
| Premium | Qwen 2.5-1.5B + Nib-Faithful LoRA | Preserves facts, numbers & technical tokens. | ~940 MB base + ~36 MB adapter |
The premium tier is an adapter applied at runtime on top of the shared Qwen base, so every future iteration ships as a tiny adapter swap. It's trained by a $0 rejection-sampling self-play loop.
Qwen3 runs with thinking disabled (no_think) so it returns clean rewrites instead of <think> traces. Stock Qwen3-0.6B scores 75/90=83.3% strict holdout90 (50/60=83.3% holdout60, 49/60=81.7% extended60; 67/90=74.4% traps, 74/90=82.2% rescored with the CJK scorer fix).
Every accepted suggestion and AI rewrite is stored in a local edit journal at
~/Library/Application Support/Nib/journal.jsonl. That journal is what
trains your personal adapter — on your own machine by default; it leaves the Mac only if
you explicitly choose the optional cloud-training run.