symbolhop is designed to solve the problem that terminal coding agents rely on grep when looking up symbol definitions or references. grep returns a large amount of irrelevant content such as comments, logs, strings, and symbols with the same name, and agents must read through it and guess, which wastes tokens and may lead to errors. symbolhop lets agents ask the language server directly and get precise answers.
Purpose: to provide coding agents with "go to definition" and "find references" capabilities, and it can also be used as a CLI by terminal users or agents without MCP.
Main capabilities: it starts the language server for the corresponding language (such as clangd, typescript-language-server, pyright, gopls, rust-analyzer, etc.) and precisely answers five types of questions, with each result output as one short line. By default it supports the C family, TypeScript, Python, Go, Rust, Swift, and Lua; Java, Ruby, and Zig must be listed explicitly. Results are capped at 200 entries (unless specifically requested), and each line is truncated, so that large projects do not overwhelm the agent.
Usage: Node 20 or later is required, and the language server for the project's language must be on PATH. Running npx github:stanczykwyatt/symbolhop doctor checks which servers are found. Then add it to the agent configuration: Codex in ~/.codex/config.toml, Gemini CLI in ~/.gemini/settings.json, Cursor in .cursor/mcp.json; other MCP clients use the command npx -y github:stanczykwyatt/symbolhop#v0.1.0 serve. You can also install it via npm install -g github:stanczykwyatt/symbolhop#v0.1.0 and then use symbolhop serve. By default it runs in the folder where the agent was started; --root /path/to/project can be used to pin the project root directory.
Use cases: programming tasks that require precise lookup of symbol references, definitions, hover information, diagnostics, and outlines, especially suitable for large projects or token-sensitive scenarios.
Limitations: read-only, does not write files; only processes files within the project folder, and external results are only counted but not displayed; no network, nodependencies; on Windows, typescript-language-server and pyright installed via npm cannot currently be started; clangd and sourcekit-lsp only know about files that have been shown, and the first reference query shows at most 300 files of the same language, beyond which it may indicate that usages in other files may be missing. The official documentation states that it has not yet been actually tested with any agent, but it follows the 2025-11-25 MCP protocol and has been tested via stdio.