github yvgude/lean-ctx v3.6.5

latest releases: v3.8.18, v3.8.17, v3.8.16...
one month ago

Fixed

  • CLAUDE_CONFIG_DIR support — MCP instructions and rules file paths now respect CLAUDE_CONFIG_DIR env var instead of hardcoding ~/.claude. Absolute paths under $HOME are collapsed to tilde form for display. Includes integration tests. (#235, contributed by @cburgess)
  • OpenCode rules location — Rules are now written to ~/.config/opencode/AGENTS.md (SharedMarkdown fenced section) instead of ~/.config/opencode/rules/lean-ctx.md which OpenCode never loads. Doctor check and uninstall updated accordingly. (#237)
  • Linux CI warnings — Fixed unreachable_pub in Landlock module, borrow_as_ptr in syscall wrappers, unnecessary_wraps on remove_linux_scheduler, and unused_variables/dead_code for platform-gated items.
  • MCP Resource Notificationsnotifications/resources/updated sent to subscribed clients after significant ledger changes (new entries, pressure threshold crossings). Enables proactive context refresh in supporting IDEs.
  • ctx_load_tools — New tool for explicit category management (load/unload/list). After each change, notifications/tools/list_changed is sent to subscribed clients so they re-fetch the tool list.
  • notifications/tools/list_changed — Outbound notification sent after dynamic tool category load/unload via ctx_load_tools. Clients automatically re-fetch the tool list.
  • MCP Peer Storage — Server stores the rmcp Peer<RoleServer> from initialize() for bidirectional notification delivery.

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.6.5...v3.6.5

Don't miss a new lean-ctx release

NewReleases is sending notifications on new releases.