github yvgude/lean-ctx v3.1.4

latest releases: v3.7.0, v3.6.26, v3.6.25...
one month ago

Added

  • CLAUDE_CONFIG_DIR support: lean-ctx init --agent claude, lean-ctx doctor, lean-ctx uninstall, hook installation, and all Claude Code detection paths now respect the $CLAUDE_CONFIG_DIR environment variable. Previously hardcoded to ~/.claude.json and ~/.claude/.
  • CLAUDE_ENV_FILE Docker hint: lean-ctx init --global and lean-ctx doctor now recommend setting ENV CLAUDE_ENV_FILE alongside ENV BASH_ENV in Docker containers. Claude Code sources CLAUDE_ENV_FILE before every command — this is the officially recommended shell environment mechanism.
  • Doctor check for CLAUDE_ENV_FILE: In Docker environments, lean-ctx doctor now shows separate checks for both BASH_ENV and CLAUDE_ENV_FILE.

Fixed

  • Claude Code _lc not found in Docker (#89): Root cause was that BASH_ENV alone doesn't work for Claude Code — it uses CLAUDE_ENV_FILE to source shell hooks before each command. Recommended Dockerfile now includes ENV CLAUDE_ENV_FILE="/root/.lean-ctx/env.sh".
  • CLAUDE_CONFIG_DIR ignored everywhere: setup.rs, rules_inject.rs, doctor.rs, hooks.rs, uninstall.rs, and report.rs all hardcoded ~/.claude.json / ~/.claude/. Now all paths go through claude_config_json_path() / claude_config_dir() which check $CLAUDE_CONFIG_DIR first.

Upgrade

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

Full Changelog: v3.1.4...v3.1.4

Don't miss a new lean-ctx release

NewReleases is sending notifications on new releases.