Fixed
- CLAUDE_CONFIG_DIR support — MCP instructions and rules file paths now respect
CLAUDE_CONFIG_DIRenv var instead of hardcoding~/.claude. Absolute paths under$HOMEare 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.mdwhich OpenCode never loads. Doctor check and uninstall updated accordingly. (#237) - Linux CI warnings — Fixed
unreachable_pubin Landlock module,borrow_as_ptrin syscall wrappers,unnecessary_wrapsonremove_linux_scheduler, andunused_variables/dead_codefor platform-gated items. - MCP Resource Notifications —
notifications/resources/updatedsent 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_changedis sent to subscribed clients so they re-fetch the tool list.notifications/tools/list_changed— Outbound notification sent after dynamic tool category load/unload viactx_load_tools. Clients automatically re-fetch the tool list.- MCP Peer Storage — Server stores the rmcp
Peer<RoleServer>frominitialize()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-ctxNote: After upgrading via cargo/npm/brew, run
lean-ctx setupto refresh shell aliases.lean-ctx updatedoes this automatically.
Full Changelog: v3.6.5...v3.6.5