🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

LSP Code Navigation

by @adamnaghs

Multi-language code navigation via persistent LSP daemons. Supports Python (pyright), TypeScript/JS, Rust, Go, C/C++, Bash, Java, CSS, HTML, JSON. Auto-detec...

Versionv2.0.0
Installs1
πŸ’‘ Examples

export LSP_WORKSPACE=/path/to/repo

Python

lsp-query symbols src/model.py lsp-query hover src/model.py 42 10 lsp-query references src/model.py 42 10

TypeScript (auto-detected from .ts extension)

lsp-query symbols src/index.ts lsp-query definition src/app.tsx 15 8

Rust

lsp-query symbols src/main.rs lsp-query diagnostics src/lib.rs

Check what's available

lsp-query languages lsp-query servers

βš™οΈ Configuration

Set LSP_WORKSPACE to the repo root before querying. If unset, defaults to the git root or cwd.

πŸ“‹ Tips & Best Practices

  • "Server not found for X": The language server binary isn't installed. The error message includes the install command.
  • "could not connect to LSP daemon": Daemon failed to start. Verify Python 3.10+ is available.
  • Import errors in diagnostics: Expected when packages aren't installed in the current Python environment. These resolve on machines with the correct venv.
  • Stale results: Run lsp-query shutdown to restart all servers fresh.
  • Slow first query per language: Each server takes 1-2 seconds to cold-start. Subsequent queries to the same language are ~200ms.
  • Wrong language detected: Use LSP_LANG=rust lsp-query symbols myfile to force.
  • View on ClawHub
    TERMINAL
    clawhub install lsp

    πŸ§ͺ Use this skill with your agent

    Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

    πŸ” Can't find the right skill?

    Search 60,000+ AI agent skills β€” free, no login needed.

    Search Skills β†’