github yvgude/lean-ctx v2.21.2

latest releases: v3.8.11, v3.8.10, v3.8.9...
2 months ago

Critical Hook Fixes — Production Quality (Discussion #62)

Fixed — Pipe Commands Broken in Shell Hook

  • Pipe quoting fix — Hook rewrite now properly quotes commands containing pipes. Previously curl ... | python3 -m json.tool was rewritten as lean-ctx -c curl ... | python3 ... (pipe interpreted by shell). Now correctly produces lean-ctx -c "curl ... | python3 ...". This also fixes the command not found: _lc errors reported by users.

Fixed — Read/Grep/ListFiles Blocked by Hook (#62)

  • Removed tool blocking — The redirect hook no longer denies native Read, Grep, or ListFiles tools. This was causing Claude Code's Edit tool to fail ("File has not been read yet") because Edit requires a prior native Read. Native tools now pass through freely. The MCP system instructions still guide the AI to prefer ctx_read/ctx_search/ctx_tree, but blocking is removed.

Fixed — find Command Glob Pattern Support

  • Glob patternslean-ctx find "*.toml" now correctly uses glob matching instead of literal substring search. Added glob crate dependency.

Changed — README

  • RTK — Corrected "RTK" references to full name "Rust Token Killer" throughout README and FAQ section.

Housekeeping

  • Removed ~180 lines of dead code from hook_handlers.rs (unused glob matching, binary detection, path exclusion functions that were orphaned by the redirect removal).
  • Added 3 new unit tests for hook rewrite quoting behavior.
  • All 504 tests passing, zero clippy warnings.

Upgrade

cargo install lean-ctx          # or
npm update -g lean-ctx-bin      # or
brew upgrade lean-ctx

Full Changelog: v2.21.2...v2.21.2

Don't miss a new lean-ctx release

NewReleases is sending notifications on new releases.