Skip to content

Ken 0.18.0

Latest

Choose a tag to compare

@anga anga released this 18 Oct 03:30
· 8 commits to main since this release

Ken 0.18.0

18 October 2026. Local code search with compact, inspectable results.

What changes for users

  • Search files, functions, classes and modules through the complete local search
    pipeline by default: Potion static embeddings, CodeRankEmbed INT8 context,
    structural and lexical signals, learned ranking and Ettin 68M reranking.
    The pipeline runs on CPU; no embedding API key is required.
  • CLI and MCP return compact text by default: source path, line ranges, symbol
    identity and selected, numbered code. Use CLI --json or MCP
    output_format="json" for structured responses. Scripts that parsed the old
    default output should select JSON explicitly.
  • Tool descriptions recommend English queries for the strongest current
    results. Installation can offer project instructions in AGENTS.md;
    --agents-md and --no-agents-md make the choice explicit.
  • Finding reads and writes resolve the model pinned to their project database,
    including commands run elsewhere with --path. A new default cannot mix
    old and new memory vectors, even when their dimensions happen to match.
  • C++ and Rust source extraction covers additional declaration forms. Invalid
    UTF-8 fixtures are excluded from source passages; preparation rebuilds stale
    extraction projections instead of using an obsolete index.

Updating an existing project

Install or replace an older installation with:

uv tool install --reinstall ken-rank==0.18.0
# or
pipx upgrade ken-rank

Restart the assistant so it launches the new MCP process. Re-run ken install .
to refresh project integration. Prepare the complete search index explicitly with:

ken retrieval prepare --path .

Existing project model pins and saved findings must survive the upgrade. The
complete search pipeline maintains its own retrieval representations. Preparing
it can download models and rebuild source views; first-use setup is separate
from ready-index query latency.

Measured search quality

The last complete public comparison used the benchmark created by
Semble: 1,251 queries in 63
repositories
, with the original annotations and evaluator. The measured Ken
snapshot obtained 73.78% Top1, 97.60% Hit@10 and 0.8480 macro NDCG@10.
CPU median/p95 search time was 1.97 / 4.22 seconds, with a maximum of 14.71
seconds and a highest worker peak of 1.76 GiB.

These annotations mainly identify files. This is not proof of 90% strict
requested-piece accuracy or a new benchmark run on this release.
See the full pinned report
for the measured recipe, costs and limitations. The private reserve remains
closed.

Dependency and build policy

Project resolutions through uv exclude registry artifacts uploaded within the
last 14 days, including transitive dependencies. pip and other installers do not
inherit uv project policy. CTranslate2 is pinned to 4.8.2 to satisfy that window;
the historical benchmark used 4.8.3. No benchmark numbers were relabeled.

Tensor-level regression tests declare their development dependencies explicitly.
The development group uses official PyTorch CPU wheels, without CUDA packages;
Torch is not required by a normal Ken installation.

Validation

  • Full suite: 15,051 tests passed, with 10 expected xfails. The incremental mypy
    gate checks 361 source files without new suppressions.
  • Linux and macOS CI run tests, types, package builds and installed-wheel smoke
    checks before publication. release CI.
  • Separate clean installations and direct upgrades from PyPI 0.17.0 passed on
    macOS/Python 3.12, including default CPU preparation, CLI searches and actual
    stdio MCP find/read/recall calls. All 425 installed package files matched the
    tested wheel; neither environment required Torch.
  • Upgrade checks preserved saved finding/vector bytes, the historical model pin,
    project identity, AGENTS.md and custom Claude/Codex/OpenCode entries. New
    findings stayed in the historical embedding space; reinstallation was idempotent.

The full upgrade lifecycle was tested on macOS; Linux CI independently verifies
wheel installation. See the release procedure.

Install from PyPI.