Eight pi merges on October 25-26: named-tool ranking, an undici security bump, and six more changes
Eight PRs merged in pi across October 25 and 26 — four per day, seven fixes and one CI change, none in a release: newest tag v1.4.0 predates them (October 21).
Tool search is the felt fix: #11440 (October 26) reworks ranking in tool_search and codemode searchTools(). The shared Bm25Ranker scored tool names as plain text, so the query thread_read split into thread and read, ranking a short unrelated description above the long mcp__app__thread_read one — with limit: 1, the named tool never came back. A tool now ranks first when the query is its name — the full name or any __-separated segment, case-insensitive, characters invalid in codemode identifiers treated as _. Prefixes like mcp__app are not name matches: they name a server, filtered via searchTools()’s namespace option.
The security bump is #11435 (October 26): @earendil-works/pi-coding-agent pinned undici to exactly 8.10.2, inside the range of three published advisories — GHSA-xjj6-f33q-929c, GHSA-4qv8-2p9j-2685, GHSA-f72v-6w45-q472 — so npm audit flagged every install and SDK embedder. The pin moves to 8.12.3, install lock regenerated.
Two October 25 fixes mend model and package handling. #11397 makes --model "<provider>/<id>" resolve when the provider id itself contains a slash — URL-derived ids like llama-server=http://host:10800 were the casualties; the resolver now matches against known provider ids, longest match winning. #11396 resolves the agent directory with realpathSync before npm gets it as --prefix — via a symlinked ~/.pi, installs previously nested package-lock.json entries deeper.
Environment hygiene covers the rest. #11395 (October 25) makes pi-test.sh --no-env keep its promise: its hard-coded unset list had fallen 26 variables behind env-api-keys.ts, leaving keys like DEEPSEEK_API_KEY, MOONSHOT_API_KEY, and ANTHROPIC_AUTH_TOKEN live in no-env runs. #11399 (October 25) normalizes path separators in check-entry-graphs.mjs on Windows — backslash paths never matched the slash-written allow and forbid patterns, so the check failed spuriously and missed real violations. #11436 (October 26) stops the repo’s prompt-url-widget extension from crashing on custom-message runs (it read event.prompt where none exists); the author notes .pi/extensions has no tests and, being outside any package, no changelog entry — so neither was added. #11438 (October 26) splits the build-check-test CI job into parallel pieces — a typical run took 8-11 minutes per its body, testing alone 4-6.5 — and drops apt canvas deps that npm ci --ignore-scripts never compiled.
All eight postdate the v1.4.0 tag and ship with the next release.