Repository navigation
Security
- The Pi integration's development dependencies now resolve
cross-spawn7.1.2 (Windows command and argument injection, GHSA-w3gc-668g-rf8f, GHSA-ghv9-86vm-4v8m, GHSA-m6qr-m48x-3xhh),minimatch11.0.9 (quadratic pattern compile time, GHSA-cf2h-pxjq-68xw) andws8.23.0 (memory exhaustion through automatic pong replies, GHSA-37g9-w4hg-h9qr) through npm overrides;npm auditreports no vulnerabilities. The publishedpi-lean-ctxpackage ships none of them;@earendil-works/pi-coding-agentstays at 1.5.0.
Fixed
-
Claude Code in replace mode sees its per-folder instructions again.
Claude Code loads some instructions only when it reads a file: the
CLAUDE.mdandCLAUDE.local.mdof a subfolder (a subfolder'sAGENTS.md
in AGENTS.md projects) and.claude/rulesfiles whosepaths:match the
file. With the native Read denied, they never arrived.ctx_readnow
delivers them once per session, including the YAML list and brace forms of
paths:, on Windows paths as well. The root instructions Claude Code loads
at launch are still not repeated. -
An idle MCP server gives the tokenizer tables back (#2291). The
tokenizer tables (about 60 MB) stayed in everylean-ctx mcpprocess for
its whole life, and on Linux sat in swap while the server was idle. The
idle release now drops them too; the next token count loads them again. -
node --testruns are no longer reported as "mocha: 0 passed" (#2294).
Any output containing " passing" or " failing" was taken for mocha, which
turned node:test runs, failures included, into a bogus summary. Mocha now
needs its own summary lines, and node:test runs (spec and TAP reporter) get
their own summary that keeps every failure in full; output cut before the
failure details stays uncompressed. -
git logandgit showkeep the file lists they were asked for
(#2298).--stat,--numstat,--name-only,--name-statusand
--dirstatnow keep every file line of every commit, and formats such as
--format=fullershow the commit subject instead of theAuthorDate:line. -
OpenCode 2.x sees
ctx_readandctx_searchagain (#2295). OpenCode
2.x exposes MCP servers through Code Mode by default, which hides part of
lean-ctx's tools. lean-ctx now writes"codemode": falseon its server
entry when the installed OpenCode is 2.x or newer, keeps a value you set,
and leaves OpenCode 1.x configs without the key, which 1.x rejects. -
Clients without tool hooks get the tool mapping in their rules (#2296).
The rules block told OpenCode and other hook-less clients that native calls
auto-route toctx_*whenever shadow mode was on, which only clients with
tool hooks do. They now get the explicit tool mapping, like the MCP
instructions. -
The OpenCode guide matches the code (#2297). Shadow mode is on by
default, permissions are written only withhook_mode = "replace"and their
value isask, whichopencode run --autoapproves.
Upgrade
lean-ctx update # recommended (auto-downloads + refreshes shell hooks)
cargo install lean-ctx # or
npm update -g lean-ctx-bin # or
brew upgrade lean-ctxNote: After upgrading via cargo/npm/brew, run
lean-ctx setupto refresh shell aliases.lean-ctx updatedoes this automatically.
Full Changelog: v3.12.12...v3.12.13