Tool Enforcement + Editor Hook Improvements
This release ensures AI coding tools (Cursor, Claude Code, Windsurf, etc.) reliably use lean-ctx MCP tools instead of built-in alternatives.
Changed
- MCP tool descriptions now start with "REPLACES built-in X tool — ALWAYS use this instead of X" so LLMs see the replacement directive directly in the tool listing
- Server instructions include a LITM-optimized REMINDER at the end: "NEVER use Read, Shell, or Grep directly"
lean-ctx init --agent cursornow auto-creates.cursor/rules/lean-ctx.mdcin the project directorylean-ctx init --agent claudenow auto-createsCLAUDE.mdin the project directory with lean-ctx MCP tool mappinglean-ctx init --agent windsurfnow uses bundled template fromexamples/.windsurfrules
Added
rust/examples/CLAUDE.md— Claude Code project instructions templaterust/examples/.windsurfrules— Windsurf rules template
Installation
# macOS / Linux
cargo install lean-ctx
# Or download binary from this releaseFull Changelog: https://github.com/yvgude/lean-ctx/blob/main/CHANGELOG.md