Skip to content

v2.5.1 — Fix ctx_read cache bypass + Pi install

Choose a tag to compare

@yvgude yvgude released this 27 Mar 12:06

Fixed

  • ctx_read cache bypass — Added start_line parameter and lines:N-M mode to MCP schema. When an LLM requests specific lines from a cached file, lean-ctx now returns actual content instead of the compact cached Nt NL stub. Fixes issue where LLMs fell back to native Read tools after wasting 3-5 minutes (#17)
  • pi install registry resolution — Fixed lean-ctx init --agent pi to use npm:pi-lean-ctx prefix so Pi resolves the package from npm registry instead of treating it as a local path
  • Improved MCP instructions — System prompt now explicitly guides LLMs to use fresh=true, start_line, or lines:N-M mode when they encounter a cache stub, preventing fallback to native tools

Install / Update

# Update existing install
lean-ctx update

# Or install fresh
curl -fsSL https://leanctx.com/install.sh | sh
lean-ctx setup

Full changelog: https://github.com/yvgude/lean-ctx/blob/main/CHANGELOG.md

Full Changelog: v2.5.0...v2.5.1