github yvgude/lean-ctx v3.2.8

latest releases: v3.7.4, v3.7.3, vscode-v0.1.0...
one month ago

Fixed

  • Codex config.toml parse error (empty [] section header): Uninstall left orphaned [mcp_servers.lean-ctx.tools.*] sub-sections when removing the main [mcp_servers.lean-ctx] section, producing an invalid empty [] header on re-setup. Uninstall now removes all mcp_servers.lean-ctx.* sub-sections, and the writer defensively skips [] lines.
  • Gemini CLI MCP server not loading (wrong config path): Setup wrote to ~/.gemini/settings/mcp.json but Gemini CLI reads MCP servers from ~/.gemini/settings.json under the mcpServers key. The MCP config was never loaded by Gemini CLI. Fixed with a new GeminiSettings writer that merges mcpServers into the existing settings.json without overwriting other keys (e.g. hooks).
  • Gemini CLI autoApprove not recognized: Gemini CLI uses "trust": true for auto-approval, not autoApprove. Fixed to use the correct field.
  • Codex codex_hooks=false after reinstall: Uninstall set codex_hooks = false but setup didn't reset it to true, leaving hooks disabled.

Added

  • Autonomous intent inference: ctx_read automatically infers a StructuredIntent from file access patterns (after 2+ files touched) without requiring explicit agent calls. ctx_preload auto-sets intent from task description when none is active or confidence is low.
  • Auto agent registration: MCP initialize handler automatically registers the connecting agent in the AgentRegistry based on client name (Cursor/Claude → coder, Antigravity/Gemini → explorer, etc.). Override via LEAN_CTX_AGENT_ROLE env var.
  • Context Layer dashboard tab: New "Context Layer" tab in the localhost dashboard with Pipeline Stats, Context Window pressure, Mode Distribution, and Context Ledger table. Backed by new API endpoints /api/pipeline-stats, /api/context-ledger, /api/intent.
  • Pipeline & Ledger persistence: PipelineStats and ContextLedger now persist to disk (pipeline_stats.json, context_ledger.json) so dashboard data survives server restarts.
  • Codex/Cursor hooks in setup: lean-ctx setup now explicitly installs Codex hook scripts and Cursor hooks as a dedicated step, ensuring hooks are present even on first setup.

Changed

  • IDE config audit: All 13 supported IDE configurations verified against official vendor documentation (Cursor, Claude Code, Codex, Windsurf, VS Code/Copilot, Gemini CLI, Antigravity, Amazon Q, Hermes, Cline, Roo Code, Amp, Kiro).

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

Don't miss a new lean-ctx release

NewReleases is sending notifications on new releases.