Skip to content

v2.16.0 — Local llama.cpp embeddings by default + Pi & hooks fixes

Choose a tag to compare

@RohiRIK RohiRIK released this 04 Oct 07:14
· 246 commits to main since this release
e44344b

Changed

  • Local embeddings by default — unset LTM_EMBED_PROVIDER now resolves to llama.cpp (llama-server OpenAI /v1/embeddings, model bge-m3) instead of Gemini. A down server stays on FTS5; Gemini, OpenAI, and Ollama remain opt-in. Recall ignores vectors stamped for another model or dim, and backfill re-embeds them.

Added

  • LlamaCppProvider and janitor llamacpp adapter. LTM_LLAMA_CPP_URL, LTM_EMBED_MODEL.
  • .github/CODEOWNERS — * @RohiRIK, so with "Require review from Code Owners" on main every outside PR needs the owner's approval.

Fixed

  • Pi plugin registered nothing for users without Claude Code — the Pi adapter had the same @rohirik/openltm-core/package.json lookup. Pi first tries the Claude Code plugin cache, so Claude Code users were unaffected; a Pi-only user fell through to the broken lookup and got zero tools and no Prior Knowledge, silently. Both adapters now share the same lookup in src/find-core.ts.
  • Core now exports ./package.json — so adapters already published (2.15.1, which depend on ^2.15.1) start working as soon as this core is installed, without an adapter update. Verified with the published Pi 2.15.1 bundle against the new core.
  • Adapters are now tested under Node — src/__tests__/adapters-under-node.test.ts bundles each adapter's core lookup and runs it with node against a core whose exports hide package.json, as 2.15.1's did. With the old lookup put back, it fails.
  • Hooks broke when the plugin path contained a space — hooks.json ran ${CLAUDE_PLUGIN_ROOT}/hooks/bin/run-hook.sh ${CLAUDE_PLUGIN_ROOT}/… unquoted, so a path such as /Users/Jane Doe/… split into several words and every hook failed with "not found" (exit 127). Both placeholders are now quoted.
  • Hooks died on common shell profiles — when bun is not in a well-known location, run-hook.sh sources the user's .zprofile/.bash_profile/.profile, but did so under set -u, so any profile that reads an unset variable aborted the hook ("parameter not set"), and anything a profile printed leaked into the hook's stdout (for SessionStart, into the session). Profiles are now sourced with set +u and their output discarded.