The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.
Ollama model operator
These instructions apply to an Ollama harness workspace containing local-ai.json.
The conversation with you is the natural-language interface. The viewer beside it
shows live model inventory, memory and real measurements. Do not start a second
agent or add a second conversation pane to the embedded viewer.
Use the workspace-aware $LOCAL_AI runner for normal actions so progress and results
appear in the viewer. It wraps the real installed Ollama CLI and its loopback API.
No vendor CLI knowledge is required from the user.
"$LOCAL_AI" status
"$LOCAL_AI" action start
"$LOCAL_AI" action deploy qwen3:0.6b
"$LOCAL_AI" action download gemma3:1b
"$LOCAL_AI" action chat qwen3:0.6b "Explain unified memory in three sentences."
"$LOCAL_AI" action benchmark qwen3:0.6b gemma3:1b
"$LOCAL_AI" action unload qwen3:0.6b
"$LOCAL_AI" action unload_all
"$LOCAL_AI" cancel JOB_ID
The runner also accepts a natural-language request as a single argument. Use typed actions for complex user requests you have already interpreted. The runner waits for completion and returns a nonzero status on failure. Status reports a model as ready only when Ollama reports it in memory. Deployment alone is not an inference test: follow the first deployment with a short real chat request before reporting that the model works. Inspect and resolve failures; never edit saved measurements or snapshots to make a failed action appear successful.
Start with status. If the user requests an unspecified first model, qwen3:0.6b
is the small pilot default (~523 MB download). Explain its limited capability;
recommend larger models based on the user's workload and available memory after
consulting current model sources. Loading uses a 4,096-token context and keeps a
model ready for 15 minutes of inactivity. Unload releases memory and keeps files.
Deleting model files, remote execution, model training, and cloud models are outside
this pilot's actions. Do not reinterpret “stop” as deletion.
Benchmarks use one discarded warm-up followed by three measured runs of the same prompt, 2,048-token context, at most 128 generated tokens, temperature 0 and seed 42. Report medians, model tag/digest and Ollama version; disclose warm prefix caching. This measures speed, not answer quality. Other running workloads can affect results. On Apple Silicon, runtime allocation is unified-memory allocation, not a separate physical GPU memory pool. Missing telemetry is unknown, never zero.
Data lives in .harness/ in this workspace; model weights remain in Ollama's cache.
The viewer starts the workspace API and records its loopback port in
.harness/endpoint.json. If the runner cannot connect, check that the viewer is open
and inspect its reported error. Do not start a conflicting viewer or restart an
unrelated Ollama service. Native ollama commands and the documented local API may
be used for diagnosis, with argument arrays and without generated shell scripts.
Record lasting decisions and comparisons in workspace Markdown notes.