Quick Start
1
Simplest local run
Ask a question with the default model (
llama3.2:3b) and auto-enabled WMP.2
Pick a model
Point at any model you have pulled locally.
3
Disable WMP
Turn WMP off for benchmarking raw output or when the model is already reliable.
How It Works
The CLI wraps each request in WMP hooks that validate and retry weak-model output before returning the answer. The handler detects model size from the name and selects a matching WMP profile:Choosing WMP mode
Match the WMP flag to model size and task complexity.Command options
Every flag comes fromadd_ollama_arguments in the SDK.
Environment variables
Local Ollama needs no API key; only the server URL matters.--ollama-host always overrides OLLAMA_HOST:
Common patterns
Fast local chat on a capable model:Best Practices
Pin a model per project
Pin a model per project
Set
--ollama-model explicitly so runs are reproducible instead of relying on the default llama3.2:3b.Keep the server running
Keep the server running
Start
ollama serve (or the desktop app) before running the command — the CLI exits with a “Make sure Ollama is running” hint if the server is unreachable.Prefer --wmp-fast on 7B+ models
Prefer --wmp-fast on 7B+ models
Larger models rarely need many retries, so
--wmp-fast cuts latency without hurting reliability.Raise --step-budget only when needed
Raise --step-budget only when needed
The default of
10 steps handles most tasks; increase it only for genuinely multi-step work to avoid wasted local compute.Related
Ollama as a model provider
Run agents against Ollama with
llm="ollama/…", env vars, and YAML.Background CLI
Run long agent jobs in the background.

