Agent Shipped

Directory · Hooks

LSP Enforcement Kit

A set of Claude Code hooks that block Grep, Glob, and shell grep on code symbols and steer Claude toward LSP MCP navigation tools.

★ 346 stars · last updated 2026-11-25 · Free, open source · View on GitHub

Best for

Install

git clone https://github.com/nesaminua/claude-code-lsp-enforcement-kit.git
cd claude-code-lsp-enforcement-kit
bash install.sh
# Windows: pwsh ./install.ps1

Our take

Ships six PreToolUse/SessionStart hooks plus a PostToolUse tracker, including a progressive Read gate that requires LSP warmup and navigation calls before unlimited file reads. Requires an LSP MCP server (cclsp or Serena) to be useful, and the README's token savings figures come from the author's own week of use on two TypeScript projects. The blocking is opinionated and may interrupt legitimate searches, though it allows lowercase concepts, env vars, and non-code paths.

Similar hooks

Get the field guide

Join builders who use coding agents every day. Free, twice a week, unsubscribe in one click.

No spam. The CLAUDE.md starter pack comes in your confirmation email. Not seeing it? Check spam or Promotions.