you ‧ notes ‧ unread ‧ starred ‧ add url

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

https://github.com/nesaminua/claude-code-lsp-enforcement-kit

april 2026 ‧ claudeai reddit imported ‧ open in karakeep

by nesaminua ‧ GitHub ‧ saved copy from 2026.08.28

From Reddit saved post — r/ClaudeAI, u/Ok-Motor-9812, Apr 10 2026 https://www.reddit.com/r/ClaudeAI/comments/1shlcf0/hooks_that_force_claude_code_to_use_lsp_instead/
The Claude Code LSP Enforcement Kit is a set of hooks that force Claude Code to use Language Server Protocol (LSP) instead of Grep for code navigation, drastically reducing token usage by approximately 80-90%. By blocking Grep commands and guiding Claude to use precise LSP queries, it mimics IDE-like navigation, saving tokens and improving efficiency. The kit supports multiple LSP servers, dynamically tailoring suggestions based on the user's setup, and includes progressive gating to ensure LSP warmup before code reads. Real-world testing shows significant token savings and reduced redundant file reads, making code exploration more cost-effective.

regenerate summary

page description:

Hooks that force Claude Code to use LSP instead of Grep for code navigation. Saves ~80% tokens - nesaminua/claude-code-lsp-enforcement-kit
screenshot of the page

« back to bookmarks

top tags     all tags ‧ 2 ‧ 5 ‧ 10 ‧ 20 ‧ manage

*bookmark *download *tobuy *tofollow 2d 360 3d 3dprinting abandonware actionscript air algorithm android api app apple appstore arcade arduino art article askreddit asm audio automation backlight backup bambulab bbs berlin bitcoin blipfm blipster blog bluetooth book bookmark bootcamp brasil bug c c# c++ carro casa chiptune claudeai cocoa cocoa-touch code collection component controller css database debug demoscene design deutschland dev diy doc dos dosbox dotnet download electronics emu emudev emulation emulator example famicom feedbin fix flash flex forum freeware gadget game gameboy gamecollecting gamedev germany git GoogleReader hack hacks hardware home home-automation homeassistant homebrew howto htpc http IFTTT image imported inspiration ios iosprogramming ipad iphone iso itunes jailbreak japan java javascript lcd lib library linux mac mame math mce mediacenter megadrive midi mod mp3 mpd music mythtv nas nes objective-c opengl opensource osx pc piracy plex plugin Pocket programming ps2 ps3 ps4 pvr raspberrypi recipe reddit reddit-comment reddit-post remote repro resource retrogaming retropc retropie rgb roms rubyonrails saopaulo sdk shmups shop shopping sms snes software soundblaster source star steamdeck svn swift synology synth terminal tips tool toread torrent travel tutorial twitter twitter-post ubuntu ui uitableview unix unlock veralite viagem vista vita vpn vps walkthrough warez web2.0 webservices wii windows wishlist wordpress xbmc xbox xcode xna z80