neuralmind.uk / NeuralMind v4.12.1 — neuralmind doctor exits 1 when a check fails, and example scripts rank below the code they show Edit this page on GitHub ↗

NeuralMind v4.12.1 — neuralmind doctor exits 1 when a check fails, and example scripts rank below the code they show

Type: Patch release Theme: a v0.55.0 regression in doctor’s exit code, a false failure it would have exposed, and example scripts that outranked the code they demonstrate

The CLI reference, the install-paths walkthrough (neuralmind doctor . && neuralmind wakeup .) and the v0.12.0 release notes all say neuralmind doctor exits non-zero when a check fails, so a script or CI step can gate on it. From v0.55.0 through v4.12.0 it always exited 0. This release restores the exit code, and fixes a check that would otherwise have failed such a gate on a working index.

It also finishes a v4.12.0 ranking change. v4.12.0 ranks test files below the code they test; example scripts still outranked the code they demonstrate on a repository indexed from its root. They now rank below it too.


What changed

CLI

Query ranking

Variable Default Effect
NEURALMIND_EXAMPLE_FILE_FACTOR 0.5 Score multiplier for example-script hits (examples/, demos/, samples/) unless the question asks for an example; 1 turns it off

Retrieval eval

Scripts and docs

What the agent actually sees

On a repository with example scripts, a query’s eight L3 hits lead with the library code a question is about, and an example script that matches the question’s words shows up below it, unless the question asks for an example. Nothing else in its context changes. An agent or provisioning script that runs neuralmind doctor as a shell command now sees exit status 1 when a check fails, alongside the same [FAIL] line and fix it printed before.

Per-agent expectations

Agent What changes
Claude Code (hooks + MCP) Query results rank example scripts below the code; no hook or MCP tool changed; neuralmind doctor run as a command exits 1 on a failed check
Cursor / Cline / Continue (MCP) Same ranking change; no tool, argument or response field changed
Hermes-Agent plugin Same
Generic MCP client Same

Upgrading

Reproduce

python -m evals.retrieval.run --configs baseline,examples_equal --public-benchmark --out bench/retrieval/examples-v4.12/source-dir
python -m evals.retrieval.run --full-repo --repos requests,click,flask,rich --configs baseline,examples_equal --out bench/retrieval/examples-v4.12/full-repo