lsp-enable

lsp-enable is a skill for Claude Code, Codex from zircote/lsp-tools. It costs 98 tokens per session (2,263 once invoked), scanned A, original, MIT.

A code-navigation guide that requires semantic tools such as finding definitions, references, and diagnostics before changing unfamiliar code. LSP means Language Server Protocol, the system editors use to understand code symbols and types.

In plain words
What is it for?
It helps locate definitions, find every use of a symbol, trace callers and dependencies, inspect types, and check diagnostics after edits.
Why use it?
Text searches alone can miss how symbols are connected or affected by a change. This helps reveal usage and type problems before and after refactoring.

Skill for Claude CodeCodex

Part of the lsp-tools plugin — 1 skill, 1 command, 2 hooks shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/zircote/lsp-tools/lsp-enable
Any agent
npx skills add zircote/lsp-tools --skill lsp-enable
Clone the repo
git clone --depth 1 https://github.com/zircote/lsp-tools

Made for: Claude Code, Codex.

Or install lsp-tools, the plugin that ships this one along with the rest of its 1 skill, 1 command, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for lsp-enable

README.md
[![agentmods](https://agentmods.dev/badge/skills/zircote/lsp-tools/lsp-enable.svg)](https://agentmods.dev/skills/zircote/lsp-tools/lsp-enable)
Your own site
<a href="https://agentmods.dev/skills/zircote/lsp-tools/lsp-enable"><img src="https://agentmods.dev/badge/skills/zircote/lsp-tools/lsp-enable.svg" alt="Measured on agentmods" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,263 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00098 $0.02263
Opus 5 $0.00049 $0.01131
Sonnet 5 $0.00020 $0.00453
Haiku 4.5 $0.00010 $0.00226

Measured 5d ago against content hash bd7b1d5f11d1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

lsp-enable scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/lsp-enable/SKILL.md · 264 lines

How it starts

The opening of the file, as written. The whole thing — 264 lines — stays where its author put it; the contents beside it link to each section on GitHub.

LSP-First Code Intelligence

The Iron Laws

1. NO MODIFYING UNFAMILIAR CODE WITHOUT goToDefinition FIRST
2. NO REFACTORING WITHOUT findReferences IMPACT ANALYSIS FIRST
3. NO CLAIMING CODE WORKS WITHOUT LSP DIAGNOSTICS VERIFICATION

Violating these laws wastes tokens, introduces bugs, and produces incomplete changes.

Trigger Phrases

Activate when user says:

  • "find definition", "go to definition", "where is X defined"
  • "find references", "who uses this", "what calls this function"
  • "understand this code", "trace this function", "explore codebase"
  • "before I refactor", "impact of changing", "safe to rename"
  • "analyze dependencies", "call hierarchy", "incoming calls"
  • "check this code", "verify implementation", "LSP diagnostics"

Core Decision Tree

WHAT DO YOU NEED?
│
├─ Symbol definition or implementation
│  └─ USE LSP: goToDefinition, goToImplementation
│
├─ All usages of a symbol
│  └─ USE LSP: findReferences
│
├─ Type info, docs, or signatures
│  └─ USE LSP: hover
│
├─ File structure or symbol list
│  └─ USE LSP: documentSymbol
│
├─ Call graph or dependencies
│  └─ USE LSP: incomingCalls, outgoingCalls
│
├─ Symbol search across workspace
│  └─ USE LSP: workspaceSymbol
│
├─ Literal text search (TODOs, strings, config)
│  └─ USE: Grep (LSP doesn't do text matching)
│
└─ File discovery by pattern
   └─ USE: Glob

The Nine LSP Operations

Operation Purpose Use Before
goToDefinition Jump to where symbol is defined Modifying unfamiliar code
findReferences Find all usages of a symbol Refactoring, renaming
goToImplementation Find interface implementations Working with polymorphism
hover Get type info, docs, signatures Understanding APIs
documentSymbol List all symbols in a file Understanding large files
workspaceSymbol Search symbols across codebase Finding related code
prepareCallHierarchy Get call hierarchy info Analyzing call graphs
incomingCalls Find callers of a function Impact analysis
outgoingCalls Find functions called by target Dependency tracing

Read the full file on GitHub · 264 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 264 lines · 98 tokens per session scan A bd7b1d5f11d1

Subscribe to this mod's changes

lsp-enable is a skill published in the GitHub repository zircote/lsp-tools (12 stars, last pushed 26d ago), licensed MIT. It adds 98 tokens to every session and 2,263 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

mako-discovery

TRIGGER when: user is working in an unfamiliar repo, asks 'where is X', 'what touches Y', needs broad search across code/schema/routes, or is unsure which mako tool fits the task. Covers reefask, reefstatus, reefverify, reefimpact, makohelp, toolsearch, contextpacket, livetextsearch, lintfiles, and toolbatch.

drhalto/agentmako · 88 tokens

mako-code-intel

TRIGGER when: user wants structural code pattern search (ast-grep) or static lint against selected files, or wants to turn a fix diff into a rule-pack draft. Covers astfindpattern, lintfiles, extractruletemplate.

drhalto/agentmako · 50 tokens

mako-guide

Start here when working in a project with the mako-ai MCP server configured. Entry point that explains how mako's tool skills are organized and carries the policy for logging agentfeedback vs acknowledging static findings with findingack.

drhalto/agentmako · 47 tokens

mako-workflow

TRIGGER when: user wants an investigation packet, pre-ship artifact, recall of prior work or answers, or to log tool-run feedback / inspect telemetry. Covers suggest, investigate, workflowpacket, tenantleakaudit, healthtrend, issuesnext, sessionhandoff, all four artifact tools, recallanswers, recalltoolruns…

drhalto/agentmako · 107 tokens

mako-graph

TRIGGER when: user asks about relationships, dependency paths, import hotspots or cycles, symbol impact, or blast radius of a proposed change. Covers graphneighbors, graphpath, flowmap, changeplan, importsdeps, importsimpact, importshotspots, importscycles, symbolsof, exportsof.

drhalto/agentmako · 72 tokens

mako-trace

TRIGGER when: user asks to trace a specific route, schema object, file, table, RPC, or error string through its evidence. Covers routetrace, schemausage, filehealth, authpath, tracefile, preflighttable, traceedge, traceerror, tracetable, tracerpc.

drhalto/agentmako · 70 tokens