drolu/agent-skills/neuralos-ollama

Claude Code and agent skill by drolu/agent-skills

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Replace the needle 3 engine in neuralOS/neuralOSd with Ollama-hosted qwen3.5:9b using format-constrained JSON (thinking disabled), keeping every deterministic code gate (lexical floor, caged args, results gate, audit). Covers constrained probe selection, the reason loop, think-disabled text generation, setup verification, and a graded 10-question benchmark. Use when swapping needle 3 for Ollama models, tuning think:false defaults, or benchmarking fallback models.

Install

npx vskill@latest install drolu/agent-skills/neuralos-ollama

SKILL.md

The same SKILL.md was published earlier as drolu/agent-skills/neuralos-ollama.

neuralOS-ollama — replace needle 3 with a constrained Ollama model

Run a neuralOS / neuralOSd instance with no needle 3 engine at all: every model call goes to an Ollama-hosted instruct model (default qwen3.5:9b) with thinking disabled, while every deterministic code gate stays intact.

The contract (do not break these)

  1. Code gate first. The lexical router / ask.py floor answers everything

it can. The model is consulted ONLY when the router is unsure. Never call the model for a question a probe already answers.

  1. Think off, always. All model calls send "think": false. Qwen3.5-family

models default to thinking and silently burn the token budget (verified: empty content with 100-500 num_predict). Set NEURALOSD_THINK=1 only when deep reasoning is explicitly wanted.

  1. Guaranteed valid, not guaranteed correct. Ollama format (JSON schema)

makes malformed output impossible; it does NOT make wrong picks impossible. Always include "none_of_these" in the enum, verify with the existing regex cages, and keep the score floor in charge.

  1. The model never computes numbers. It picks tools and fills args from

the question; code executes and verifies.

Setup

bash
ollama pull qwen3.5:9b # 6.6GB, ~24-45 tok/s on M1 Pro GPU
export NEURALOS_OLLAMA_MODEL="qwen3.5:9b"
export NEURALOSD_REASON_MODEL="qwen3.5:9b" # reason-loop default
python3 scripts/verify_setup.py # health-checks everything below

Verified on Ollama 0.35.1. Ollama has NO server-wide think default — enforce think: false per request (this skill's client does it for you). In neuralosd itself, apply the reasoning-loop patch or set the env (see references/migration-needle3.md).

Workflows

A. Constrained probe selection (replaces needle 3 selection)
bash
python3 scripts/pick_probe.py --instance-dir ./wema-bmc \
--question "how many worklog entries exist"
# -> {"probe": "...", "args": {...}} — or none_of_these for honest refusal

The client offers the model only a top-K shortlist from a lexical pre-scorer plus none_of_these. Small enum = small grammar = fast constrained decode (full-menu enums on qwen3.5:4b are pathologically slow; shortlists are not).

B. Reason loop (replaces the fallback model seat)
bash
export NEURALOSD_REASON_MODEL="qwen3.5:9b"
neuralosd reason --instance-dir ./wema-bmc --force \
"what is the ratio of open work orders to open incidents"

Certified live: installs the derived metric, 14/14 neighbours unchanged, loop closed. Use --model to override; models that reject think get an automatic retry without it.

C. Text generation (thinking disabled)
python
from ollama_client import chat
out = chat("qwen3.5:9b", [{"role": "user", "content": "Write a Python function..."}])
print(out["message"]["content"]) # direct answer, no think-budget burn
D. Benchmark before you trust it
bash
python3 scripts/bench_stress.py --instance-dir ./wema-bmc --model qwen3.5:9b

Runs the 10-question graded set (7 answerable + 3 traps) that produced the measured table in references/model-benchmarks.md. A candidate must score

= 9/10 with honest refusals on the traps to be considered a needle-3

replacement.

E. Swap the neuralOS python runtime (instance.py) selector

For classic python-runtime instances (an instance.py exposing TOOLS with @needle.tool functions), scripts/instance_ollama_runtime.py replaces the 121M selector with the Ollama model — using Ollama's native tool-calls path (needle.build_schema exports the schemas), which does NOT suffer the format-enum grammar slowness (48 schemas run fine).

bash
python3 scripts/instance_ollama_runtime.py --instance-dir /path/to/instance \
--question "How many Tracks have a song length greater than the Average song length." \
--execute

Measured on chinook (48 tools, qwen3.5:9b): sibling discrimination BOTH ways — count-probe on count-phrasing, list-probe with limit=5 extracted on list-phrasing — where needle 3 picked the LIST probe for both. Warm ~4s, cold ~30s (use ollama keep_alive). Remember: the same model still needs the none_of_these/refusal floor on gaps.

Files

  • scripts/ollama_client.py — shared client: chat() with think:false,

schema-constrained pick(), 400-retry for models without think support

  • scripts/pick_probe.py — CLI constrained selection against any instance menu
  • scripts/bench_stress.py — 10-question graded benchmark (model parameterized)
  • scripts/instance_ollama_runtime.py — swap the needle python-runtime

selector (instance.py TOOLS) for an Ollama model, native tool-calls path

  • scripts/verify_setup.py — verifies Ollama, model, think-off, format works
  • scripts/install_think_defaults.sh — pulls models, writes env defaults
  • scripts/test_neuralos_ollama.py — offline unit tests (schema, refusal, cage)
  • references/model-benchmarks.md — measured 6-model comparison (2026-10-03)
  • references/migration-needle3.md — needle 3 removal checklist + trade-offs

Measured baseline (2026-10-03, wema-bmc, 10-question set)

ModelScoreGap refusalWarm speedRAM
qwen3.5:9b + format9-10/10yes2.4-8.1s6.6GB
deepseek-r1:7b + format10/10 (3q set)yes8.7-10.7s4.7GB
LFM2.5:8b + format2/3no0.9s5.2GB
SmolLM2:1.7b + format1/3no + fabricated args0.4s1.8GB
needle 3 (replaced)1/3no1.6s0.1GB

qwen3.5:4b + format scores 3/3 but is pathologically slow (25-80s) — a build-specific grammar x prompt interaction, NOT a family trait (9b is fast).

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/drolu/agent-skills/neuralos-ollama/badge)](https://verified-skill.com/skills/drolu/agent-skills/neuralos-ollama)

Something wrong with this skill or its page? Tell us.