drolu/agent-skills/neuralos-ollama
Claude Code and agent skill by drolu/agent-skills
- community
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-ollamaSKILL.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)
- Code gate first. The lexical router /
ask.pyfloor 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.
- 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.
- 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.
- The model never computes numbers. It picks tools and fills args from
the question; code executes and verifies.
Setup
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)
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)
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)
D. Benchmark before you trust it
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).
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 menuscripts/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 worksscripts/install_think_defaults.sh— pulls models, writes env defaultsscripts/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)
| Model | Score | Gap refusal | Warm speed | RAM | |
|---|---|---|---|---|---|
| qwen3.5:9b + format | 9-10/10 | yes | 2.4-8.1s | 6.6GB | |
| deepseek-r1:7b + format | 10/10 (3q set) | yes | 8.7-10.7s | 4.7GB | |
| LFM2.5:8b + format | 2/3 | no | 0.9s | 5.2GB | |
| SmolLM2:1.7b + format | 1/3 | no + fabricated args | 0.4s | 1.8GB | |
| needle 3 (replaced) | 1/3 | no | 1.6s | 0.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
- SKILL.md in the repositoryCheckingskills/neuralos-ollama/SKILL.md
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
[](https://verified-skill.com/skills/drolu/agent-skills/neuralos-ollama)