Skip to content

v3.12.13

Latest

Choose a tag to compare

@github-actions github-actions released this 05 Dec 01:15
d47f978

Security

  • The Pi integration's development dependencies now resolve cross-spawn 7.1.2 (Windows command and argument injection, GHSA-w3gc-668g-rf8f, GHSA-ghv9-86vm-4v8m, GHSA-m6qr-m48x-3xhh), minimatch 11.0.9 (quadratic pattern compile time, GHSA-cf2h-pxjq-68xw) and ws 8.23.0 (memory exhaustion through automatic pong replies, GHSA-37g9-w4hg-h9qr) through npm overrides; npm audit reports no vulnerabilities. The published pi-lean-ctx package ships none of them; @earendil-works/pi-coding-agent stays 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.md and CLAUDE.local.md of a subfolder (a subfolder's AGENTS.md
    in AGENTS.md projects) and .claude/rules files whose paths: match the
    file. With the native Read denied, they never arrived. ctx_read now
    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 every lean-ctx mcp process 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 --test runs 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 log and git show keep the file lists they were asked for
    (#2298).
    --stat, --numstat, --name-only, --name-status and
    --dirstat now keep every file line of every commit, and formats such as
    --format=fuller show the commit subject instead of the AuthorDate: line.

  • OpenCode 2.x sees ctx_read and ctx_search again (#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": false on 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 to ctx_* 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 with hook_mode = "replace" and their
    value is ask, which opencode run --auto approves.

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-ctx

Note: After upgrading via cargo/npm/brew, run lean-ctx setup to refresh shell aliases. lean-ctx update does this automatically.

Full Changelog: v3.12.12...v3.12.13