github yvgude/lean-ctx v2.1.1
v2.1.1 — Tool Enforcement + Editor Hook Improvements

latest releases: v3.8.15, v3.8.14, vscode-v0.2.0...
3 months ago

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 cursor now auto-creates .cursor/rules/lean-ctx.mdc in the project directory
  • lean-ctx init --agent claude now auto-creates CLAUDE.md in the project directory with lean-ctx MCP tool mapping
  • lean-ctx init --agent windsurf now uses bundled template from examples/.windsurfrules

Added

  • rust/examples/CLAUDE.md — Claude Code project instructions template
  • rust/examples/.windsurfrules — Windsurf rules template

Installation

# macOS / Linux
cargo install lean-ctx

# Or download binary from this release

Full Changelog: https://github.com/yvgude/lean-ctx/blob/main/CHANGELOG.md

Don't miss a new lean-ctx release

NewReleases is sending notifications on new releases.