Fixed
- Codex
config.tomlparse 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 allmcp_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.jsonbut Gemini CLI reads MCP servers from~/.gemini/settings.jsonunder themcpServerskey. The MCP config was never loaded by Gemini CLI. Fixed with a newGeminiSettingswriter that mergesmcpServersinto the existingsettings.jsonwithout overwriting other keys (e.g.hooks). - Gemini CLI
autoApprovenot recognized: Gemini CLI uses"trust": truefor auto-approval, notautoApprove. Fixed to use the correct field. - Codex
codex_hooks=falseafter reinstall: Uninstall setcodex_hooks = falsebut setup didn't reset it totrue, leaving hooks disabled.
Added
- Autonomous intent inference:
ctx_readautomatically infers aStructuredIntentfrom file access patterns (after 2+ files touched) without requiring explicit agent calls.ctx_preloadauto-sets intent from task description when none is active or confidence is low. - Auto agent registration: MCP
initializehandler automatically registers the connecting agent in theAgentRegistrybased on client name (Cursor/Claude → coder, Antigravity/Gemini → explorer, etc.). Override viaLEAN_CTX_AGENT_ROLEenv 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:
PipelineStatsandContextLedgernow persist to disk (pipeline_stats.json,context_ledger.json) so dashboard data survives server restarts. - Codex/Cursor hooks in setup:
lean-ctx setupnow 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-ctxNote: After upgrading via cargo/npm/brew, run
lean-ctx setupto refresh shell aliases.lean-ctx updatedoes this automatically.
Full Changelog: v3.2.8...v3.2.8