Claude Code Lsp Enforcement Kit banner
nesaminua nesaminua

Claude Code Lsp Enforcement Kit

Development community

Description

Hooks that force Claude Code to use LSP instead of Grep for code navigation. Saves ~80% tokens

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

LSP Enforcement Kit

Physical enforcement of LSP-first navigation in Claude Code.
Stop burning tokens on Grep. Make Claude navigate code like an IDE — 100% of the time.

Release License Stars Claude Code compatible

Quick StartWhySavingsArchitectureHooksChangelog

LSP vs Grep token savings — 73% per week


In Action

When Claude tries to `Grep` for a code symbol, the hook blocks with a copy-pasteable LSP command:

⛔ LSP-FIRST BLOCK: Pattern contains code symbol(s) — use LSP instead
Symbols: handleSubmit, UserService

LSP tools:
  handleSubmit:
    mcp__cclsp__find_references("handleSubmit")  (cclsp)

  UserService:
    mcp__cclsp__find_workspace_symbols("UserService")  (cclsp)

When Claude tries to `Read` a code file without warming up LSP, the progressive gate blocks:

🛡️  LSP-FIRST READ GATE — G