Evarness¶
Evarness is the governed agent harness for small local models: local by default, deterministic where it can be, governed before action, and it learns in the open. It runs an agent loop (classify, plan, act with tools, curate the answer) on models that fit on a laptop, sends every model call and every tool call in the loop through a governance kernel you cannot unplug (nine hook points), answers a turn without a model when the answer can be computed, and measures its own routing and tool use to propose changes it never applies without you (learning). Everything outside the loop and the kernel is a plugin.
The email assistant that ships with it is the proof: a private inbox assistant that reads, sorts and labels your mail on a local model, writes nothing until you approve it, and leaves an audit row for every call.
Three minutes, no credentials¶
uv tool install "evarness[email]" --upgrade # or: pipx install "evarness[email]"
evarness doctor # can Evarness run here, and what to fix
evarness email demo # a synthetic mailbox, a scripted model, no network
evarness email setup # then your own mailbox, step by step
What you can build¶
| Use case | What Evarness gives you |
|---|---|
| A private email assistant | Triage, a daily digest and labels on a local model. Personal data never reaches a cloud model; nothing changes in your mailbox until you approve it once per account. |
| Your own domain agent | A plugin registers tools, deterministic handlers and an agent on the same governed loop the email assistant uses (example). |
| Proactive routines | Heartbeats run your jobs on a schedule and deliver to a channel (Telegram, web push, the web console). |
| Governed research | One research tool over a provider chain (SearXNG, Tavily, Brave, DuckDuckGo), cached and reranked, behind the egress gate. |
| Safe code execution | A bounded model-to-sandbox loop that runs shell commands in a container. |
Why a harness, not a bigger model¶
- Determinism is a primitive. When an action is grounded and parseable, parse it and call the function. On one measured action, a 7B model called the right tool 25% of the time and a 35B model 0%; a deterministic handler did it 100% of the time. Evarness lets a plugin answer such turns with no model, and governs those answers like generated ones (deterministic handlers).
- Governance is a passage, not a filter. Data is classified before it moves; personal and secret data stays on local models; secrets reach tools as vault handles, never as prompt text; destructive actions wait for your approval (governance).
- Every call is audited. Each model call, tool call and answer writes a ledger row, and the proof bundle lets a CI job verify the email assistant's invariants offline.
- It learns in the open. Scheduled jobs mine the signals every turn leaves behind, recommend start tiers, and crystallize recurring successes into quarantined skill proposals. Nothing is applied until a documented flag is on, and what is applied goes through the same kernel (learning).
- The model-free guards hold. In an adversarial battery of 14 probes against the full guard stack, 11 were fully defended; the misses were in model-based judges, and the deterministic guards held. That result is why every answer, generated or not, now passes the model-free guards.
Where to go next¶
- Install, then try the demo and connect your mailbox.
- Write a plugin and test it against the stable API.
- Architecture for how the pieces fit.
Evarness is licensed under the Apache License 2.0, and it stays that way. It runs on macOS (Apple Silicon) and Linux; on Windows, use Docker Desktop or WSL2 (Windows). It collects no telemetry.