github yvgude/lean-ctx v3.1.5

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

Fixed

  • claude_config_json_path() simplified: Removed over-complex parent() fallback logic that guessed at .claude.json locations. Now directly uses $CLAUDE_CONFIG_DIR/.claude.json as documented by Claude Code.
  • lean-ctx init --agent claude now prints config path: Previously gave zero feedback about where MCP config was written. Now shows ✓ Claude Code: MCP config created at /path/to/.claude.json — immediately reveals path mismatches (e.g. Docker USER mismatch writing to /root/.claude.json instead of /home/node/.claude.json).
  • refresh_installed_hooks() hardcoded ~/.claude/: Hook detection in hooks.rs ignored $CLAUDE_CONFIG_DIR, always checking ~/.claude/hooks/ and ~/.claude/settings.json. Now uses claude_config_dir().
  • Rules injection hardcoded ~/.claude/CLAUDE.md: rules_inject.rs always wrote to ~/.claude/CLAUDE.md regardless of $CLAUDE_CONFIG_DIR. Now uses claude_config_dir().
  • Uninstall hardcoded ~/.claude/: remove_rules_files() and remove_hook_files() couldn't find Claude Code files when $CLAUDE_CONFIG_DIR was set. Now uses claude_config_dir().
  • Doctor display hardcoded ~/.claude.json: lean-ctx doctor always showed ~/.claude.json even when $CLAUDE_CONFIG_DIR pointed elsewhere. Now shows the actual resolved path.

Upgrade

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

Full Changelog: v3.1.5...v3.1.5

Don't miss a new lean-ctx release

NewReleases is sending notifications on new releases.